From 5ead08977509234edff9152a90c05ddcd1a3cc2f Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 19 Aug 2026 17:07:10 -0700 Subject: [PATCH] fix(desktop): cron panel empty states stop suggesting a broader search when no search is active Both cron empty states used search-flavored copy unconditionally; a fresh panel with zero jobs and no query told users 'Try a broader search query'. Copy now follows the query state, reusing existing i18n keys. --- apps/desktop/src/app/cron/index.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/app/cron/index.tsx b/apps/desktop/src/app/cron/index.tsx index 9bf6923b5c..135ca2a8b7 100644 --- a/apps/desktop/src/app/cron/index.tsx +++ b/apps/desktop/src/app/cron/index.tsx @@ -682,7 +682,9 @@ export function CronView({ onClose, onOpenSession, setStatusbarItemGroup: _setSt /> ))} {visibleJobs.length === 0 && ( -

{c.emptyTitleSearch}

+

+ {query.trim() ? c.emptyTitleSearch : c.emptyTitleNew} +

)} setEditor({ mode: 'create' })} /> {visibleBlueprints.length > 0 && ( @@ -711,8 +713,13 @@ export function CronView({ onClose, onOpenSession, setStatusbarItemGroup: _setSt onPauseResume={() => void handlePauseResume(selectedJob)} onTrigger={() => void handleTrigger(selectedJob)} /> - ) : ( + ) : query.trim() ? ( + // A search with no selected job: search-flavored copy is right. + ) : ( + // No selection and no search — "Try a broader search query" here + // just confused people staring at an empty panel with zero jobs. + )} )}