From 67ea00327da6bd515a447c8917655762419b19bb Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Mon, 27 Jul 2026 22:27:26 -0500 Subject: [PATCH] style(desktop): drop the remaining sidebar session counts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #72336 removed the count from the flat list and #72912 from the entered project, but three sites still tallied rows: search results, each messaging group (Telegram, Discord, …), and cron jobs. With them gone SidebarCount never renders a count — its one caller is the projects-loading spinner — so rename it SidebarSectionMeta. --- apps/desktop/src/app/chat/sidebar/chrome.tsx | 4 ++-- apps/desktop/src/app/chat/sidebar/cron-jobs-section.tsx | 3 --- apps/desktop/src/app/chat/sidebar/index.tsx | 2 -- apps/desktop/src/app/chat/sidebar/sessions-section.tsx | 4 ++-- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/apps/desktop/src/app/chat/sidebar/chrome.tsx b/apps/desktop/src/app/chat/sidebar/chrome.tsx index 36d97e03f2c5b..196c71768a914 100644 --- a/apps/desktop/src/app/chat/sidebar/chrome.tsx +++ b/apps/desktop/src/app/chat/sidebar/chrome.tsx @@ -8,8 +8,8 @@ import { cn } from '@/lib/utils' // sections and the project/workspace tree, so it lives outside either to keep // imports one-directional (no index <-> projects cycle). -/** The muted count chip next to a section/workspace label. */ -export function SidebarCount({ children }: { children: React.ReactNode }) { +/** The muted slot beside a section label (loading glyph, status hint). */ +export function SidebarSectionMeta({ children }: { children: React.ReactNode }) { return {children} } diff --git a/apps/desktop/src/app/chat/sidebar/cron-jobs-section.tsx b/apps/desktop/src/app/chat/sidebar/cron-jobs-section.tsx index b4b0feaf95ac3..376f11108ac80 100644 --- a/apps/desktop/src/app/chat/sidebar/cron-jobs-section.tsx +++ b/apps/desktop/src/app/chat/sidebar/cron-jobs-section.tsx @@ -127,8 +127,6 @@ export function SidebarCronJobsSection({ const cap = Math.min(visibleCount, max) const shown = sorted.slice(0, cap) const hiddenCount = Math.min(sorted.length, max) - shown.length - // When capped, signal "50+" rather than implying the list is complete. - const countLabel = jobs.length > max ? `${max}+` : String(jobs.length) return ( @@ -139,7 +137,6 @@ export function SidebarCronJobsSection({ type="button" > {label} - {countLabel} } - labelMeta={String(shownSessions.length)} onArchiveSession={onArchiveSession} onDeleteSession={onDeleteSession} onResumeSession={onResumeSession} diff --git a/apps/desktop/src/app/chat/sidebar/sessions-section.tsx b/apps/desktop/src/app/chat/sidebar/sessions-section.tsx index 9998d01c41a23..b880eb87a9293 100644 --- a/apps/desktop/src/app/chat/sidebar/sessions-section.tsx +++ b/apps/desktop/src/app/chat/sidebar/sessions-section.tsx @@ -14,7 +14,7 @@ import { sessionBucketLabel } from '@/lib/time' import { cn } from '@/lib/utils' import { sessionPinId } from '@/store/session' -import { SidebarCount, SidebarDateDivider } from './chrome' +import { SidebarDateDivider, SidebarSectionMeta } from './chrome' import { EnteredProjectContent, ProjectOverviewRow, @@ -56,7 +56,7 @@ function SidebarSectionHeader({ <> {icon} {label} - {meta && {meta}} + {meta && {meta}} )