@@ -7,6 +7,7 @@ import type { components } from "@/api/schema.d.ts";
77import { ErrorAlert } from "@/components/shared/ErrorAlert" ;
88import { PageLoader } from "@/components/shared/LoadingSpinner" ;
99import { Body , Muted , PageTitle , SectionHeading } from "@/components/ui/typography" ;
10+ import { useDemo } from "@/hooks/useDemo" ;
1011import { COLOR } from "@/lib/constants" ;
1112import { formatCount } from "@/lib/utils" ;
1213
@@ -15,6 +16,7 @@ type QueueStatus = components["schemas"]["QueueStatus"];
1516// ─── Per-workspace queue row ─────────────────────────────────────────────────
1617
1718function WorkspaceQueueRow ( { workspaceId } : { workspaceId : string } ) {
19+ const { mask } = useDemo ( ) ;
1820 const { data, isLoading } = useQueueStatus ( workspaceId ) ;
1921
2022 const pending = data ?. pending_work_units ?? 0 ;
@@ -40,7 +42,7 @@ function WorkspaceQueueRow({ workspaceId }: { workspaceId: string }) {
4042 className = "font-mono text-xs truncate max-w-[200px] group-hover:underline"
4143 style = { { color : "var(--accent-text)" } }
4244 >
43- { workspaceId }
45+ { mask ( workspaceId ) }
4446 </ span >
4547 < ChevronRight
4648 className = "w-3 h-3 opacity-0 group-hover:opacity-60 transition-opacity flex-shrink-0"
@@ -79,15 +81,14 @@ function WorkspaceQueueRow({ workspaceId }: { workspaceId: string }) {
7981
8082 { (
8183 [
82- { val : total , color : "var(--text-2)" } ,
83- { val : done , color : COLOR . success } ,
84- { val : active , color : COLOR . warning } ,
85- { val : pending , color : "var(--text-3)" } ,
86- ] as Array < { val : number ; color : string } >
87- ) . map ( ( { val, color } , i ) => (
84+ { key : "total" , val : total , color : "var(--text-2)" } ,
85+ { key : "done" , val : done , color : COLOR . success } ,
86+ { key : "active" , val : active , color : COLOR . warning } ,
87+ { key : "pending" , val : pending , color : "var(--text-3)" } ,
88+ ] satisfies Array < { key : string ; val : number ; color : string } >
89+ ) . map ( ( { key , val, color } ) => (
8890 < td
89- // biome-ignore lint/suspicious/noArrayIndexKey: static positional columns
90- key = { i }
91+ key = { key }
9192 className = "py-2 px-4 text-right font-mono text-xs"
9293 style = { { color : isLoading ? "var(--text-4)" : color } }
9394 >
0 commit comments