feat(TRUEREF-0023): add sqlite-vec search pipeline
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<script lang="ts">
|
||||
interface Props {
|
||||
status: 'queued' | 'running' | 'paused' | 'cancelled' | 'done' | 'failed';
|
||||
spinning?: boolean;
|
||||
}
|
||||
|
||||
let { status }: Props = $props();
|
||||
let { status, spinning = false }: Props = $props();
|
||||
|
||||
const statusConfig: Record<typeof status, { bg: string; text: string; label: string }> = {
|
||||
queued: { bg: 'bg-blue-100', text: 'text-blue-800', label: 'Queued' },
|
||||
@@ -21,4 +22,9 @@
|
||||
class="inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium {config.bg} {config.text}"
|
||||
>
|
||||
{config.label}
|
||||
{#if spinning}
|
||||
<span
|
||||
class="ml-1 inline-block h-3 w-3 animate-spin rounded-full border-2 border-current border-r-transparent"
|
||||
></span>
|
||||
{/if}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user