Align sidebar v2 status hues with the system-wide convention
Sidebar v1 and the mobile Live Activity/widgets established amber for approval, indigo for input, and sky for working — but sidebar v2 (web and the mobile thread list) collapsed input into approval's amber and shifted working to plain blue, so the same thread wore different colors across surfaces and the two waiting-on-you states were indistinguishable at a glance. Restore the convention in both v2 lists. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
b4fafe6a95
commit
9bd9f7811d
2 files changed
+10
-4
No files matched your search
@@ -31,12 +31,15 @@ const MONO_FONT = Platform.select({
|
||||
default: "monospace",
|
||||
});
|
||||
|
||||
// Status hues follow the system-wide convention set by sidebar v1 and the
|
||||
// Live Activity/widgets (amber approval, indigo input, sky working) so a
|
||||
// thread reads the same color everywhere it surfaces.
|
||||
const STATUS_LABEL_BY_STATUS: Partial<
|
||||
Record<ThreadListV2Status, { label: string; className: string }>
|
||||
> = {
|
||||
approval: { label: "Approval", className: "text-amber-700 dark:text-amber-300" },
|
||||
input: { label: "Input", className: "text-amber-700 dark:text-amber-300" },
|
||||
working: { label: "Working", className: "text-blue-600 dark:text-blue-400" },
|
||||
input: { label: "Input", className: "text-indigo-600 dark:text-indigo-300" },
|
||||
working: { label: "Working", className: "text-sky-600 dark:text-sky-400" },
|
||||
failed: { label: "Failed", className: "text-red-700 dark:text-red-300" },
|
||||
};
|
||||
|
||||
|
||||
@@ -183,13 +183,16 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
|
||||
const isUnread = hasUnseenCompletion({ ...thread, lastVisitedAt });
|
||||
const status = resolveSidebarV2Status(thread);
|
||||
const shouldRecede = status === "ready" && !isUnread && !props.isActive && !isSelected;
|
||||
// Status hues follow the system-wide convention set by sidebar v1 and the
|
||||
// mobile Live Activity/widgets (amber approval, indigo input, sky working)
|
||||
// so a thread reads the same color everywhere it surfaces.
|
||||
const topStatus =
|
||||
status === "working"
|
||||
? {
|
||||
label: "Working",
|
||||
icon: "working" as const,
|
||||
className:
|
||||
"animate-sidebar-working-text font-semibold text-blue-600 motion-reduce:animate-none dark:text-blue-400",
|
||||
"animate-sidebar-working-text font-semibold text-sky-600 motion-reduce:animate-none dark:text-sky-400",
|
||||
}
|
||||
: status === "approval"
|
||||
? {
|
||||
@@ -201,7 +204,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
|
||||
? {
|
||||
label: "Input",
|
||||
icon: null,
|
||||
className: "font-semibold text-amber-700 dark:text-amber-300",
|
||||
className: "font-semibold text-indigo-600 dark:text-indigo-300",
|
||||
}
|
||||
: status === "failed"
|
||||
? {
|
||||
|
||||
Reference in new issue
Block a user