feat(web,mobile): waiting status shows a dot-dashed icon and a timer (#19617)
This commit is contained in:
1 parent
21bedfb175
commit
e536bfd33b
3 files changed
+12
-2
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user