@@ -93,27 +93,20 @@ import { Tooltip, TooltipPopup, TooltipTrigger } from "./ui/tooltip";
9393
9494// Row heights are fixed per variant so the list only changes shape at
9595// lifecycle transitions (settle/unsettle), never from streaming updates.
96- // Cards are bordered islands (the mock's language): the border carries the
97- // state color, faint enough to read as a glow rather than a box.
98- const CARD_BORDER_BY_STATUS : Record < SidebarV2Status , string > = {
99- approval : "border-amber-500/45 dark:border-amber-300/35" ,
100- working : "border-sky-500/40 dark:border-sky-300/30" ,
101- failed : "border-red-500/45 dark:border-red-400/35" ,
102- ready : "border-border" ,
103- } ;
104-
105- const STATUS_DOT_BY_STATUS : Partial < Record < SidebarV2Status , string > > = {
106- approval : "bg-amber-500 dark:bg-amber-300/90" ,
107- working : "bg-sky-500 dark:bg-sky-300/80 animate-pulse" ,
108- failed : "bg-red-500 dark:bg-red-400/90" ,
96+ // Cards are square, hard-edged blocks: a solid full-saturation edge strip
97+ // carries the state color; the border stays neutral and high-contrast.
98+ const CARD_EDGE_BY_STATUS : Partial < Record < SidebarV2Status , string > > = {
99+ approval : "bg-amber-500 dark:bg-amber-400" ,
100+ working : "bg-sky-500 animate-status-pulse dark:bg-sky-400" ,
101+ failed : "bg-red-500" ,
109102} ;
110103
111104const STATUS_WORD_BY_STATUS : Partial <
112105 Record < SidebarV2Status , { label : string ; className : string } >
113106> = {
114- approval : { label : "Needs approval" , className : "text-amber-600 dark:text-amber-300/90 " } ,
115- working : { label : "Working" , className : "text-sky-600 dark:text-sky-300/80 " } ,
116- failed : { label : "Failed" , className : "text-red-600 dark:text-red-400/90 " } ,
107+ approval : { label : "Needs approval" , className : "text-amber-600 dark:text-amber-400 " } ,
108+ working : { label : "Working" , className : "text-sky-600 dark:text-sky-400 " } ,
109+ failed : { label : "Failed" , className : "text-red-600 dark:text-red-400" } ,
117110} ;
118111
119112// The working timer re-renders once per second only for rows that show it.
@@ -309,12 +302,12 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
309302 ) ;
310303
311304 const rowClassName = cn (
312- "group/v2-row relative w-full cursor-pointer select-none rounded-md text-left" ,
305+ "group/v2-row relative w-full cursor-pointer select-none text-left" ,
313306 props . isActive
314- ? "bg-accent/85 dark:bg-accent/55 "
307+ ? "bg-foreground/10 dark:bg-white/[0.12] "
315308 : isSelected
316- ? "bg-primary/15 dark:bg-primary/22 "
317- : "hover:bg-accent/60 dark:hover:bg-accent/40 " ,
309+ ? "bg-primary/15 dark:bg-primary/20 "
310+ : "hover:bg-foreground/5 dark:hover:bg-white/[0.06] " ,
318311 ) ;
319312
320313 const favicon = (
@@ -336,19 +329,26 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
336329 onBlur = { handleRenameBlur }
337330 onClick = { ( event ) => event . stopPropagation ( ) }
338331 onDoubleClick = { ( event ) => event . stopPropagation ( ) }
339- className = "min-w-0 flex-1 rounded border border-border bg-background px-1 text-[13px] text-foreground outline-none focus:border-ring "
332+ className = "min-w-0 flex-1 border border-border bg-background px-1 text-[13px] text-foreground outline-none focus:border-foreground "
340333 />
341334 ) : (
342335 < span
343336 className = { cn (
344- "min-w-0 flex-1 truncate text-[13px]" ,
337+ "min-w-0 flex-1 text-[13px] leading-5" ,
338+ // Cards get two lines of title — a truncated single line hid too much.
345339 variant === "card"
346- ? isUnread
347- ? "font-semibold text-foreground"
348- : "font-medium text-foreground/85"
349- : isUnread
350- ? "font-medium text-foreground"
351- : "text-muted-foreground" ,
340+ ? cn (
341+ "line-clamp-2 break-words" ,
342+ isUnread ? "font-semibold text-foreground" : "font-medium text-foreground/90" ,
343+ )
344+ : cn (
345+ "truncate transition-colors group-hover/v2-row:text-foreground" ,
346+ props . isActive
347+ ? "text-foreground"
348+ : isUnread
349+ ? "font-medium text-muted-foreground"
350+ : "text-muted-foreground/60" ,
351+ ) ,
352352 ) }
353353 >
354354 { thread . title }
@@ -374,23 +374,38 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
374374 className = "list-none [content-visibility:auto] [contain-intrinsic-size:auto_34px]"
375375 >
376376 { props . showQuietDivider ? (
377- < div aria-hidden className = "mx-2.5 mb-1 mt-2 h-px bg-border/60" />
377+ < div aria-hidden className = "mb-1.5 mt-2.5 flex items-center gap-2 px-0.5" >
378+ < span className = "font-mono text-[9px] font-semibold uppercase tracking-[0.18em] text-muted-foreground/60" >
379+ Settled
380+ </ span >
381+ < span className = "h-px flex-1 bg-border" />
382+ </ div >
378383 ) : null }
379384 < div
380385 role = "button"
381386 tabIndex = { 0 }
382387 data-testid = "sidebar-v2-row-slim"
383- className = { cn ( rowClassName , "flex h-[34px] items-center gap-2.5 rounded-lg px-2.5" ) }
388+ className = { cn ( rowClassName , "flex h-[34px] items-center gap-2.5 px-2.5" ) }
384389 onClick = { handleClick }
385390 onDoubleClick = { handleDoubleClick }
386391 onKeyDown = { handleKeyDown }
387392 onContextMenu = { handleContextMenu }
388393 >
389- { favicon }
394+ { /* Settled history recedes: desaturated and dimmed at rest, restored
395+ on hover so the tail stays scannable when you're hunting. */ }
396+ < span
397+ className = { cn (
398+ "shrink-0 transition-opacity" ,
399+ ! props . isActive &&
400+ "opacity-40 grayscale group-hover/v2-row:opacity-100 group-hover/v2-row:grayscale-0" ,
401+ ) }
402+ >
403+ { favicon }
404+ </ span >
390405 { title }
391406 { prBadge }
392407 < span className = "relative flex h-6 w-14 shrink-0 items-center justify-end" >
393- < span className = "text-[11px] tabular-nums text-muted-foreground/40 transition-opacity group-hover/v2-row:opacity-0" >
408+ < span className = "font-mono text-[11px] tabular-nums text-muted-foreground/40 transition-opacity group-hover/v2-row:opacity-0" >
394409 { props . jumpLabel ??
395410 formatRelativeTimeLabel ( thread . latestUserMessageAt ?? thread . updatedAt ) }
396411 </ span >
@@ -399,7 +414,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
399414 type = "button"
400415 aria-label = "Un-settle thread"
401416 onClick = { handleUnsettleClick }
402- className = "absolute inset-y-0 right-0 inline-flex items-center gap-1 rounded-md border border-border bg-card px-2 text-[11px] text-muted-foreground opacity-0 transition-opacity hover:text-foreground group-hover/v2-row:opacity-100"
417+ className = "absolute inset-y-0 right-0 inline-flex items-center gap-1 border border-border bg-background px-2 text-[11px] text-muted-foreground opacity-0 transition-opacity hover:text-foreground group-hover/v2-row:opacity-100"
403418 >
404419 < Undo2Icon className = "size-3" />
405420 </ button >
@@ -408,7 +423,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
408423 type = "button"
409424 aria-label = "Settle thread"
410425 onClick = { handleSettleClick }
411- className = "absolute inset-y-0 right-0 inline-flex items-center gap-1 rounded-md border border-border bg-card px-2 text-[11px] text-muted-foreground opacity-0 transition-opacity hover:text-foreground group-hover/v2-row:opacity-100"
426+ className = "absolute inset-y-0 right-0 inline-flex items-center gap-1 border border-border bg-background px-2 text-[11px] text-muted-foreground opacity-0 transition-opacity hover:text-foreground group-hover/v2-row:opacity-100"
412427 >
413428 < CheckIcon className = "size-3" />
414429 </ button >
@@ -419,7 +434,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
419434 ) ;
420435 }
421436
422- const statusDot = STATUS_DOT_BY_STATUS [ status ] ;
437+ const statusEdge = CARD_EDGE_BY_STATUS [ status ] ;
423438 const statusWord = STATUS_WORD_BY_STATUS [ status ] ;
424439 const diff = latestTurnDiff ( thread ) ;
425440 const workingTimer =
@@ -430,46 +445,44 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
430445 return (
431446 < li
432447 data-thread-item
433- className = "list-none py-0.5 [content-visibility:auto] [contain-intrinsic-size:auto_74px ]"
448+ className = "list-none py-0.5 [content-visibility:auto] [contain-intrinsic-size:auto_88px ]"
434449 >
435450 < div
436451 role = "button"
437452 tabIndex = { 0 }
438453 data-testid = "sidebar-v2-row-card"
439454 className = { cn (
440- "group/v2-row relative w-full cursor-pointer select-none rounded-xl border bg-card/60 px-3 py-2.5 text-left transition-colors" ,
441- CARD_BORDER_BY_STATUS [ status ] ,
455+ "group/v2-row relative w-full cursor-pointer select-none overflow-hidden border bg-card py-2 pl-[15px] pr-3 text-left transition-colors dark:bg-white/[0.04]" ,
442456 props . isActive
443- ? "bg-accent /70 dark:bg-accent/40 "
457+ ? "border-foreground /70 bg-foreground/5 dark:border-foreground/75 dark: bg-white/[0.08] "
444458 : isSelected
445- ? "bg-primary/12 dark:bg-primary/18 "
446- : "hover:bg-accent/50 dark:hover:bg-accent /30" ,
459+ ? "border-primary/70 bg-primary/10 dark:bg-primary/15 "
460+ : "border-black/12 hover:border-black/30 dark:border-white/12 dark: hover:border-white /30" ,
447461 ) }
448462 onClick = { handleClick }
449463 onDoubleClick = { handleDoubleClick }
450464 onKeyDown = { handleKeyDown }
451465 onContextMenu = { handleContextMenu }
452466 >
453- < div className = "flex items-center gap-2.5" >
454- { statusDot ? (
455- < span aria-hidden className = { cn ( "size-2 shrink-0 rounded-full" , statusDot ) } />
456- ) : (
457- favicon
458- ) }
467+ { statusEdge ? (
468+ < span aria-hidden className = { cn ( "absolute inset-y-0 left-0 w-[3px]" , statusEdge ) } />
469+ ) : null }
470+ < div className = "flex items-start gap-2.5" >
471+ < span className = "mt-0.5 shrink-0" > { favicon } </ span >
459472 { title }
460473 { diff ? (
461- < span className = "shrink-0 font-mono text-[11px]" >
474+ < span className = "shrink-0 font-mono text-[11px] leading-5 " >
462475 < span className = "text-emerald-600 dark:text-emerald-400" > +{ diff . insertions } </ span > { " " }
463476 < span className = "text-red-600 dark:text-red-400" > −{ diff . deletions } </ span >
464477 </ span >
465478 ) : null }
466- < span className = "relative flex h-6 w-16 shrink-0 items-center justify-end" >
479+ < span className = "relative flex h-5 w-16 shrink-0 items-center justify-end" >
467480 < span
468481 className = { cn (
469482 "font-mono text-[11px] tabular-nums transition-opacity group-hover/v2-row:opacity-0" ,
470483 status === "approval"
471- ? "text-amber-600 dark:text-amber-300/90 "
472- : "text-muted-foreground/50 " ,
484+ ? "text-amber-600 dark:text-amber-400 "
485+ : "text-muted-foreground/70 " ,
473486 ) }
474487 >
475488 { props . jumpLabel ?? workingTimer ?? threadTimeLabel ( thread , status ) }
@@ -478,16 +491,21 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
478491 type = "button"
479492 aria-label = "Settle thread"
480493 onClick = { handleSettleClick }
481- className = "absolute inset-y-0 right-0 inline-flex items-center gap-1 rounded-md border border-border bg-card px-2 text-[11px] text-muted-foreground opacity-0 transition-opacity hover:text-foreground group-hover/v2-row:opacity-100"
494+ className = "absolute inset-y-0 right-0 inline-flex items-center gap-1 border border-border bg-background px-2 text-[11px] text-muted-foreground opacity-0 transition-opacity hover:text-foreground group-hover/v2-row:opacity-100"
482495 >
483496 < CheckIcon className = "size-3" />
484497 Settle
485498 </ button >
486499 </ span >
487500 </ div >
488- < div className = "mt-1.5 flex items-center gap-2 pl-[18px ] text-[11px] text-muted-foreground/60 " >
501+ < div className = "mt-1.5 flex items-center gap-2 pl-[26px ] text-[11px] text-muted-foreground/70 " >
489502 { statusWord ? (
490- < span className = { cn ( "shrink-0 font-medium" , statusWord . className ) } >
503+ < span
504+ className = { cn (
505+ "shrink-0 font-mono text-[10px] font-semibold uppercase tracking-[0.08em]" ,
506+ statusWord . className ,
507+ ) }
508+ >
491509 { statusWord . label }
492510 </ span >
493511 ) : null }
@@ -498,7 +516,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
498516 ) : (
499517 < >
500518 { thread . branch ? (
501- < span className = "min-w-0 truncate font-mono text-muted-foreground/50 " >
519+ < span className = "min-w-0 truncate font-mono text-muted-foreground/70 " >
502520 { thread . branch }
503521 </ span >
504522 ) : null }
@@ -1242,10 +1260,10 @@ export default function SidebarV2() {
12421260 aria-selected = { projectScopeKey === null }
12431261 onClick = { ( ) => setProjectScopeKey ( null ) }
12441262 className = { cn (
1245- "shrink-0 rounded-full border px-2.5 py-1 text-[11px] font-medium transition-colors" ,
1263+ "shrink-0 border px-2.5 py-1 font-mono text-[11px] font-medium uppercase tracking-wide transition-colors" ,
12461264 projectScopeKey === null
1247- ? "border-foreground/25 bg-accent text-foreground "
1248- : "border-border bg-transparent text-muted-foreground hover:bg-accent/60 hover:text-foreground" ,
1265+ ? "border-foreground bg-foreground text-background "
1266+ : "border-black/15 text-muted-foreground hover:border-black/40 hover:text-foreground dark:border-white/15 dark:hover:border-white/40 " ,
12491267 ) }
12501268 >
12511269 All
@@ -1262,10 +1280,10 @@ export default function SidebarV2() {
12621280 aria-selected = { isScoped }
12631281 onClick = { ( ) => setProjectScopeKey ( isScoped ? null : scopeKey ) }
12641282 className = { cn (
1265- "flex shrink-0 items-center gap-1.5 rounded-full border py-1 pl-1.5 pr-2.5 text-[11px] font-medium transition-colors" ,
1283+ "flex shrink-0 items-center gap-1.5 border py-1 pl-1.5 pr-2.5 font-mono text-[11px] font-medium transition-colors" ,
12661284 isScoped
1267- ? "border-foreground/25 bg-accent text-foreground"
1268- : "border-border bg-transparent text-muted-foreground hover:bg-accent/60 hover:text-foreground" ,
1285+ ? "border-foreground bg-foreground/10 text-foreground dark:bg-white/[0.1] "
1286+ : "border-black/15 text-muted-foreground hover:border-black/40 hover:text-foreground dark:border-white/15 dark:hover:border-white/40 " ,
12691287 ) }
12701288 >
12711289 < ProjectFavicon
@@ -1284,7 +1302,7 @@ export default function SidebarV2() {
12841302 type = "button"
12851303 aria-label = "Add project"
12861304 onClick = { openAddProjectCommandPalette }
1287- className = "flex size-6 shrink-0 items-center justify-center rounded-full border border-dashed border-border text-muted-foreground/60 transition-colors hover:border-solid hover:bg-accent/60 hover:text-foreground"
1305+ className = "flex size-6 shrink-0 items-center justify-center border border-dashed border-black/20 text-muted-foreground/60 transition-colors hover:border-solid hover:border-black/40 hover:text-foreground dark:border-white/20 dark:hover:border-white/40 "
12881306 />
12891307 }
12901308 >
@@ -1351,7 +1369,7 @@ export default function SidebarV2() {
13511369 < button
13521370 type = "button"
13531371 onClick = { openAddProjectCommandPalette }
1354- className = "inline-flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1 text-[11px] font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"
1372+ className = "inline-flex items-center gap-1.5 border border-border px-2.5 py-1 text-[11px] font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"
13551373 >
13561374 < PlusIcon className = "size-3" />
13571375 Add project
0 commit comments