From e04ed64637d1de9405c05c6730c0c51c2862098f Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Mon, 27 Jul 2026 16:25:51 -0500 Subject: [PATCH] style(desktop): drop the session counts inside an entered project The sidebar's flat session list lost its `x/` chip in #72336, but the project drill-in kept counting: WorkspaceHeader still rendered a SidebarCount for every repo and every branch/worktree lane. Entering a project put a number next to each label again. Remove the header's count slot and both call sites, along with the now dead repo total. --- .../src/app/chat/sidebar/projects/entered-content.tsx | 3 --- .../src/app/chat/sidebar/projects/workspace-group.tsx | 1 - .../src/app/chat/sidebar/projects/workspace-header.tsx | 7 +------ 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/apps/desktop/src/app/chat/sidebar/projects/entered-content.tsx b/apps/desktop/src/app/chat/sidebar/projects/entered-content.tsx index 9851e12e33b6..49faf092b123 100644 --- a/apps/desktop/src/app/chat/sidebar/projects/entered-content.tsx +++ b/apps/desktop/src/app/chat/sidebar/projects/entered-content.tsx @@ -133,8 +133,6 @@ function RepoFlatSection({ group.isMain || !dismissedWorktrees.includes(group.id) || (group.path && discoveredWorktreePaths.has(group.path)) ) - const repoCount = ordered.reduce((sum, group) => sum + group.sessions.length, 0) - // Removal asks how: actually `git worktree remove` it, or just hide the lane // and leave the worktree on disk. A dirty worktree escalates to a force prompt // instead of erroring (those changes are usually throwaway). @@ -268,7 +266,6 @@ function RepoFlatSection({ /> ) } - count={repoCount} emphasis icon={} label={repo.label} diff --git a/apps/desktop/src/app/chat/sidebar/projects/workspace-group.tsx b/apps/desktop/src/app/chat/sidebar/projects/workspace-group.tsx index bb0ae30cff12..21a89f03b618 100644 --- a/apps/desktop/src/app/chat/sidebar/projects/workspace-group.tsx +++ b/apps/desktop/src/app/chat/sidebar/projects/workspace-group.tsx @@ -121,7 +121,6 @@ export function SidebarWorkspaceGroup({ group, renderRows, onNewSession, onRemov ) } - count={visibleSessions.length} icon={leadingIcon} label={group.label} onToggle={toggleOpen} diff --git a/apps/desktop/src/app/chat/sidebar/projects/workspace-header.tsx b/apps/desktop/src/app/chat/sidebar/projects/workspace-header.tsx index da3431cf2400..1cfb12ea5eed 100644 --- a/apps/desktop/src/app/chat/sidebar/projects/workspace-header.tsx +++ b/apps/desktop/src/app/chat/sidebar/projects/workspace-header.tsx @@ -15,7 +15,7 @@ import { useI18n } from '@/i18n' import { cn } from '@/lib/utils' import { copyPath, revealPath } from '@/store/projects' -import { SidebarCount, SidebarRowLead } from '../chrome' +import { SidebarRowLead } from '../chrome' import { WorktreeDialog } from './worktree-dialog' @@ -151,7 +151,6 @@ export function StartWorkButton({ repoPath, onStarted }: { repoPath: string; onS // button with a leading glyph, plus an optional trailing action (the +). export function WorkspaceHeader({ action, - count, emphasis = false, icon, label, @@ -160,7 +159,6 @@ export function WorkspaceHeader({ title }: { action?: React.ReactNode - count: React.ReactNode emphasis?: boolean icon: React.ReactNode label: string @@ -186,9 +184,6 @@ export function WorkspaceHeader({ > {icon} - - {count} -