diff options
| author | Adam Malczewski <[email protected]> | 2026-06-28 15:26:40 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-28 15:26:40 +0900 |
| commit | 007cf6cbc9de20a17010beb67945199b811d7050 (patch) | |
| tree | 5adc2707a0ebedfd05e2484faab1612feba8ee55 /src/features/workspaces/ui/WorkspacesHome.svelte | |
| parent | d1c7cb125f199ce078c226ddadc1100813fe1e03 (diff) | |
| parent | 0bf3e840dc5c995942aa44082d7b43a64f4e5e26 (diff) | |
| download | dispatch-web-007cf6cbc9de20a17010beb67945199b811d7050.tar.gz dispatch-web-007cf6cbc9de20a17010beb67945199b811d7050.zip | |
Merge branch 'feature/workspace-active-indicator' into predev
Diffstat (limited to 'src/features/workspaces/ui/WorkspacesHome.svelte')
| -rw-r--r-- | src/features/workspaces/ui/WorkspacesHome.svelte | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/features/workspaces/ui/WorkspacesHome.svelte b/src/features/workspaces/ui/WorkspacesHome.svelte index 02e92b4..d97eab7 100644 --- a/src/features/workspaces/ui/WorkspacesHome.svelte +++ b/src/features/workspaces/ui/WorkspacesHome.svelte @@ -9,10 +9,17 @@ store, onNavigate, computers, + hasActive, }: { store: WorkspaceStore; onNavigate: (path: string) => void; computers: readonly ComputerEntry[]; + /** + * Optional port forwarded to each {@link WorkspaceCard}: whether the + * workspace has at least one active (generating / queued) conversation. + * Wired by the composition root to the app store. Absent → no indicator. + */ + hasActive?: (workspaceId: string) => boolean; } = $props(); onMount(() => { @@ -89,7 +96,13 @@ {:else} <ul class="flex flex-col gap-2"> {#each store.list as ws (ws.id)} - <WorkspaceCard {ws} {store} {onNavigate} {computers} /> + <WorkspaceCard + {ws} + {store} + {onNavigate} + {computers} + {...(hasActive ? { hasActive } : {})} + /> {/each} </ul> {/if} |
