From 1db7241bb6cd811425cf85acfff95c6f4cb637ae Mon Sep 17 00:00:00 2001 From: Daniel Ehrhardt Date: Mon, 19 Oct 2026 12:05:32 +0200 Subject: [PATCH] Sidebar: chat source tabs use the same segmented style as the status tabs --- .../src/components/layout/recent-chats.tsx | 40 +++++++------------ 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/apps/desktop/src/components/layout/recent-chats.tsx b/apps/desktop/src/components/layout/recent-chats.tsx index 735cb2db..b188469e 100644 --- a/apps/desktop/src/components/layout/recent-chats.tsx +++ b/apps/desktop/src/components/layout/recent-chats.tsx @@ -281,6 +281,12 @@ function WorkspaceChip({ workspace, kind = "Workspace" }: { workspace: Pick; /** Mine: chats the human started, here or from Slack, Telegram or Teams. Automations: started by a trigger. Agents: an agent started it itself. */ @@ -339,7 +345,7 @@ function SourceTabs({ }; return ( -
+
{SOURCES.map((t, i) => { const active = t.value === value; const { unread, needsYou } = stats[t.value]; @@ -356,26 +362,17 @@ function SourceTabs({ aria-selected={active} tabIndex={active ? 0 : -1} onClick={() => onChange(t.value)} - className={cn( - "relative flex h-7 items-center gap-1 text-[12px] font-medium outline-none transition-colors focus-visible:text-foreground", - active ? "text-foreground" : "text-muted-foreground hover:text-foreground", - )} + className={cn(TAB, active ? "text-foreground" : "text-muted-foreground hover:text-foreground")} > - {t.label} + {active && } + {t.label} {signal && ( )} - {active && ( - - )} @@ -435,7 +432,7 @@ function RecentTabs({ return (
{children} -
+
{TABS.map((t, i) => { const active = t.value === value; const count = t.value === "running" || t.value === "scheduled" ? counts[t.value] : 0; @@ -454,18 +451,9 @@ function RecentTabs({ aria-controls="recent-chats-panel" tabIndex={active ? 0 : -1} onClick={() => onChange(t.value)} - className={cn( - "relative flex h-6.5 min-w-0 flex-auto items-center justify-center gap-1 rounded-md px-1.5 text-[11.5px] font-medium outline-none transition-colors focus-visible:ring-[3px] focus-visible:ring-ring/50", - active ? "text-foreground" : "text-muted-foreground hover:text-foreground", - )} + className={cn(TAB, active ? "text-foreground" : "text-muted-foreground hover:text-foreground")} > - {active && ( - - )} + {active && } {t.label} {count > 0 && (