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 aa70b93ac3ad7..86e0f39d03817 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}} )