Skip to content

Commit 4512b82

Browse files
t3dotggclaude
andcommitted
fix(web): recede in-flight thread text — only the status label stands out
Working/approval/input cards were rendering bold titles, making busy threads the loudest thing in the list. Inbox-zero: in-flight threads aren't your problem yet, so their title and project text now use the receded treatment (normal weight, muted color) exactly like read-ready rows. The colored status label ('Working', 'Approval', 'Input') is the only emphasized element. Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent 21b6bf7 commit 4512b82

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

‎apps/web/src/components/SidebarV2.tsx‎

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,15 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
304304
// flag must not light up every historical thread as unread.
305305
const isUnread = hasUnseenCompletion({ ...thread, lastVisitedAt });
306306
const status = resolveSidebarV2Status(thread);
307-
const shouldRecede = status === "ready" && !isUnread && !props.isActive && !isSelected;
308307
// In-flight rows (working, or waiting on approval/input) fade as a whole:
309308
// there is nothing for the user to do yet, so prominence is reserved for
310309
// rows that need a human — done (unread), read-but-unsettled, and failed.
311-
// The status label keeps its hue, so waiting rows stay findable.
310+
// The status label keeps its hue, so waiting rows stay findable. In-flight
311+
// rows recede the same as read-ready ones (inbox-zero: working threads
312+
// aren't your problem yet) — only the colored status label stands out.
312313
const isInFlight = status === "working" || status === "approval" || status === "input";
314+
const shouldRecede =
315+
(status === "ready" || isInFlight) && !isUnread && !props.isActive && !isSelected;
313316
// Status hues follow the system-wide convention set by sidebar v1 and the
314317
// mobile Live Activity/widgets (amber approval, indigo input, sky working)
315318
// so a thread reads the same color everywhere it surfaces.
@@ -524,10 +527,10 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
524527
"truncate",
525528
isUnread
526529
? "text-foreground"
527-
: status !== "ready"
528-
? "text-foreground/95"
529-
: shouldRecede
530-
? "text-muted-foreground/80"
530+
: shouldRecede
531+
? "text-muted-foreground/80"
532+
: status === "failed"
533+
? "text-foreground/95"
531534
: "text-foreground/90",
532535
)
533536
: cn(
@@ -671,7 +674,12 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
671674
className="size-4 shrink-0"
672675
/>
673676
{props.projectTitle ? (
674-
<span className="min-w-0 flex-1 truncate text-xs font-medium text-muted-foreground/85">
677+
<span
678+
className={cn(
679+
"min-w-0 flex-1 truncate text-xs text-muted-foreground/85",
680+
shouldRecede ? "font-normal" : "font-medium",
681+
)}
682+
>
675683
{props.projectTitle}
676684
</span>
677685
) : (

0 commit comments

Comments
 (0)