TypeScript
feat(web,mobile): waiting status shows a dot-dashed icon and a timer (#19617)
mariae536bfd33bc3
diff --git a/apps/mobile/src/components/AppSymbol.tsx b/apps/mobile/src/components/AppSymbol.tsxindex 64b74b0e9fd..da1e41f521b 100644--- a/apps/mobile/src/components/AppSymbol.tsx+++ b/apps/mobile/src/components/AppSymbol.tsx@@ -175,6 +175,7 @@ const ANDROID_ICON_BY_SF_SYMBOL = {circle: IconCircle,"circle.dashed": IconCircleDashed,"circle.inset.filled": IconCircleDot,+ "circle.dashed.inset.filled": IconCircleDot,clock: IconClock,timer: IconClock,ticket: IconTicket,diff --git a/apps/mobile/src/features/threads/thread-list-v2-items.tsx b/apps/mobile/src/features/threads/thread-list-v2-items.tsxindex d7596305cff..9c1cbe34bb2 100644--- a/apps/mobile/src/features/threads/thread-list-v2-items.tsx+++ b/apps/mobile/src/features/threads/thread-list-v2-items.tsx@@ -92,7 +92,7 @@ const STATUS_LABEL_BY_STATUS: Partial<Record<ThreadListV2Status, StatusLabel>> =},waiting: {label: "Waiting",- icon: "clock",+ icon: "circle.dashed.inset.filled",className: "text-foreground-muted",iconTintClassName: "accent-foreground-muted",},diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsxindex 5771a1100a1..246a075bf93 100644--- a/apps/web/src/components/Sidebar.tsx+++ b/apps/web/src/components/Sidebar.tsx@@ -72,6 +72,7 @@ import {CircleAlertIcon,CircleCheckIcon,CircleDashedIcon,+ CircleDotDashedIcon,ClockIcon,EyeIcon,FolderIcon,@@ -1313,7 +1314,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {// Waiting is calm background presence (post-settle background// roster), not active progress, so the label keeps full strength.label: "Waiting",- icon: null,+ icon: "waiting" as const,className: "text-muted-foreground",}: status === "approval"@@ -2061,6 +2062,8 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {>{topStatus.icon === "working" ? (<CircleDashedIcon aria-hidden className="size-4 shrink-0" />+ ) : topStatus.icon === "waiting" ? (+ <CircleDotDashedIcon aria-hidden className="size-4 shrink-0" />) : topStatus.icon === "input" ? (<MessageCircleQuestionIcon aria-hidden className="size-4 shrink-0" />) : topStatus.icon === "approval" ? (@@ -2078,6 +2081,12 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {<span aria-hidden><WorkingDuration startedAt={resolveWorkingStartedAt(thread)} /></span>+ ) : status === "waiting" ? (+ // Waiting starts when the turn ends and background+ // work keeps the thread held.+ <span aria-hidden>+ <WorkingDuration startedAt={thread.latestRun?.completedAt ?? null} />+ </span>) : null}</span>)