diff --git a/apps/web/src/components/AppSidebarLayout.tsx b/apps/web/src/components/AppSidebarLayout.tsx index 104340cb96..9ff0c90d29 100644 --- a/apps/web/src/components/AppSidebarLayout.tsx +++ b/apps/web/src/components/AppSidebarLayout.tsx @@ -90,7 +90,14 @@ export function AppSidebarLayout({ children }: { children: ReactNode }) { diff --git a/apps/web/src/components/SidebarV2.tsx b/apps/web/src/components/SidebarV2.tsx index b00abee5b8..67057d5553 100644 --- a/apps/web/src/components/SidebarV2.tsx +++ b/apps/web/src/components/SidebarV2.tsx @@ -93,27 +93,20 @@ import { Tooltip, TooltipPopup, TooltipTrigger } from "./ui/tooltip"; // Row heights are fixed per variant so the list only changes shape at // lifecycle transitions (settle/unsettle), never from streaming updates. -// Cards are bordered islands (the mock's language): the border carries the -// state color, faint enough to read as a glow rather than a box. -const CARD_BORDER_BY_STATUS: Record = { - approval: "border-amber-500/45 dark:border-amber-300/35", - working: "border-sky-500/40 dark:border-sky-300/30", - failed: "border-red-500/45 dark:border-red-400/35", - ready: "border-border", -}; - -const STATUS_DOT_BY_STATUS: Partial> = { - approval: "bg-amber-500 dark:bg-amber-300/90", - working: "bg-sky-500 dark:bg-sky-300/80 animate-pulse", - failed: "bg-red-500 dark:bg-red-400/90", +// Cards are square, hard-edged blocks: a solid full-saturation edge strip +// carries the state color; the border stays neutral and high-contrast. +const CARD_EDGE_BY_STATUS: Partial> = { + approval: "bg-amber-500 dark:bg-amber-400", + working: "bg-sky-500 animate-status-pulse dark:bg-sky-400", + failed: "bg-red-500", }; const STATUS_WORD_BY_STATUS: Partial< Record > = { - approval: { label: "Needs approval", className: "text-amber-600 dark:text-amber-300/90" }, - working: { label: "Working", className: "text-sky-600 dark:text-sky-300/80" }, - failed: { label: "Failed", className: "text-red-600 dark:text-red-400/90" }, + approval: { label: "Needs approval", className: "text-amber-600 dark:text-amber-400" }, + working: { label: "Working", className: "text-sky-600 dark:text-sky-400" }, + failed: { label: "Failed", className: "text-red-600 dark:text-red-400" }, }; // The working timer re-renders once per second only for rows that show it. @@ -309,12 +302,12 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { ); const rowClassName = cn( - "group/v2-row relative w-full cursor-pointer select-none rounded-md text-left", + "group/v2-row relative w-full cursor-pointer select-none text-left", props.isActive - ? "bg-accent/85 dark:bg-accent/55" + ? "bg-foreground/10 dark:bg-white/[0.12]" : isSelected - ? "bg-primary/15 dark:bg-primary/22" - : "hover:bg-accent/60 dark:hover:bg-accent/40", + ? "bg-primary/15 dark:bg-primary/20" + : "hover:bg-foreground/5 dark:hover:bg-white/[0.06]", ); const favicon = ( @@ -336,19 +329,26 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { onBlur={handleRenameBlur} onClick={(event) => event.stopPropagation()} onDoubleClick={(event) => event.stopPropagation()} - className="min-w-0 flex-1 rounded border border-border bg-background px-1 text-[13px] text-foreground outline-none focus:border-ring" + className="min-w-0 flex-1 border border-border bg-background px-1 text-[13px] text-foreground outline-none focus:border-foreground" /> ) : ( {thread.title} @@ -374,23 +374,38 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { className="list-none [content-visibility:auto] [contain-intrinsic-size:auto_34px]" > {props.showQuietDivider ? ( -
+
+ + Settled + + +
) : null}
- {favicon} + {/* Settled history recedes: desaturated and dimmed at rest, restored + on hover so the tail stays scannable when you're hunting. */} + + {favicon} + {title} {prBadge} - + {props.jumpLabel ?? formatRelativeTimeLabel(thread.latestUserMessageAt ?? thread.updatedAt)} @@ -399,7 +414,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { type="button" aria-label="Un-settle thread" onClick={handleUnsettleClick} - 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" + 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" > @@ -408,7 +423,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { type="button" aria-label="Settle thread" onClick={handleSettleClick} - 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" + 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" > @@ -419,7 +434,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { ); } - const statusDot = STATUS_DOT_BY_STATUS[status]; + const statusEdge = CARD_EDGE_BY_STATUS[status]; const statusWord = STATUS_WORD_BY_STATUS[status]; const diff = latestTurnDiff(thread); const workingTimer = @@ -430,46 +445,44 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { return (
  • -
    - {statusDot ? ( - - ) : ( - favicon - )} + {statusEdge ? ( + + ) : null} +
    + {favicon} {title} {diff ? ( - + +{diff.insertions}{" "} −{diff.deletions} ) : null} - + {props.jumpLabel ?? workingTimer ?? threadTimeLabel(thread, status)} @@ -478,16 +491,21 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { type="button" aria-label="Settle thread" onClick={handleSettleClick} - 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" + 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" > Settle
    -
    +
    {statusWord ? ( - + {statusWord.label} ) : null} @@ -498,7 +516,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { ) : ( <> {thread.branch ? ( - + {thread.branch} ) : null} @@ -1242,10 +1260,10 @@ export default function SidebarV2() { aria-selected={projectScopeKey === null} onClick={() => setProjectScopeKey(null)} className={cn( - "shrink-0 rounded-full border px-2.5 py-1 text-[11px] font-medium transition-colors", + "shrink-0 border px-2.5 py-1 font-mono text-[11px] font-medium uppercase tracking-wide transition-colors", projectScopeKey === null - ? "border-foreground/25 bg-accent text-foreground" - : "border-border bg-transparent text-muted-foreground hover:bg-accent/60 hover:text-foreground", + ? "border-foreground bg-foreground text-background" + : "border-black/15 text-muted-foreground hover:border-black/40 hover:text-foreground dark:border-white/15 dark:hover:border-white/40", )} > All @@ -1262,10 +1280,10 @@ export default function SidebarV2() { aria-selected={isScoped} onClick={() => setProjectScopeKey(isScoped ? null : scopeKey)} className={cn( - "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", + "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", isScoped - ? "border-foreground/25 bg-accent text-foreground" - : "border-border bg-transparent text-muted-foreground hover:bg-accent/60 hover:text-foreground", + ? "border-foreground bg-foreground/10 text-foreground dark:bg-white/[0.1]" + : "border-black/15 text-muted-foreground hover:border-black/40 hover:text-foreground dark:border-white/15 dark:hover:border-white/40", )} > } > @@ -1351,7 +1369,7 @@ export default function SidebarV2() {