diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsx index 6cb1e722322b7..5c9203742578c 100644 --- a/apps/web/src/components/Sidebar.tsx +++ b/apps/web/src/components/Sidebar.tsx @@ -3285,6 +3285,51 @@ export default function Sidebar({ routeReveal }: { routeReveal: SidebarRouteReve

) ) : null} + {/* A scope can hide every active thread; say so even when its project still has settled ones. */} + {!isSearchingThreads && + !hasProjectFolders && + visibleDraftSessionCount === 0 && + pinnedThreads.length + + activeThreads.length + + workingThreads.length + + snoozedThreads.length === + 0 && + (settledCount === 0 || scopedProjectGroups.length > 0) ? ( +
+ {projects.length === 0 ? ( + <> + No projects yet + + + ) : scopedProjectGroups.length > 0 ? ( + <> + + {`No ${settledCount > 0 ? "active threads" : "threads"} in ${ + scopedProjectGroups.length > 1 + ? "these projects" + : scopedProjectGroups[0]!.displayName + }${settledCount > 0 ? "" : " yet"}`} + + + + ) : ( + "No threads yet" + )} +
+ ) : null} {!isSearchingThreads ? ( ) : null} - {!isSearchingThreads && - !hasProjectFolders && - visibleDraftSessionCount === 0 && - pinnedThreads.length + - activeThreads.length + - workingThreads.length + - snoozedThreads.length + - settledCount === - 0 ? ( -
- {projects.length === 0 ? ( - <> - No projects yet - - - ) : scopedProjectGroups.length > 1 ? ( - "No threads in these projects yet" - ) : scopedProjectGroups[0] ? ( - `No threads in ${scopedProjectGroups[0].displayName} yet` - ) : ( - "No threads yet" - )} -
- ) : null}