style(desktop): hide search when there's nothing to search

Empty datasets no longer render a search field. Adds a `searchHidden` prop
to PageSearchShell (artifacts/skills/messaging) and gates cron + command
center sessions search on a non-empty list. The chat sidebar already did
this via showSessionSections.
This commit is contained in:
Brooklyn Nicholson 2026-06-03 23:55:04 -05:00
parent 9e02b18828
commit aecdc75bb0
6 changed files with 33 additions and 21 deletions

View file

@ -300,7 +300,7 @@ export function CommandCenterView({
</p>
</div>
<div className="flex shrink-0 items-center gap-2">
{section === 'sessions' && (
{section === 'sessions' && sessions.length > 0 && (
<SearchField
containerClassName="max-w-[40vw]"
onChange={next => setQuery(next)}