fix: Bot Mode cronjobs panel no longer shows two empty-state markers

The empty cronjobs list rendered both a calendar-icon placeholder blurb
("Cronjobs are recurring tasks this agent runs on a schedule.") and the
Create Cronjob button — two elements saying the same thing (empty).
Per Teknium's review, drop the generic placeholder and keep only the
create button. The filter hint ("jobs exist but are hidden by the bot
filter") still renders, since it carries real information rather than
just marking emptiness.
This commit is contained in:
Teknium
2026-08-17 21:44:58 -07:00
parent e9cefa4d75
commit cb337d39ba
+10 -7
View File
@@ -6967,13 +6967,16 @@ function RoutinesPane() {
? jsxs('div', {
className: 'flex flex-1 flex-col items-center justify-center gap-3 px-4 text-center',
children: [
jsx(Codicon, { name: 'calendar', className: 'text-[1.6rem] text-(--ui-text-quaternary)' }),
jsx('div', {
className: 'text-xs leading-5 text-(--ui-text-tertiary)',
children: filterHint
? filterHint
: 'Cronjobs are recurring tasks this agent runs on a schedule.'
}),
// No generic placeholder here: an icon + "cronjobs are…" blurb and the
// create button both just said "empty" (Teknium, Aug 2026). The hint
// text stays only when jobs exist but are hidden by the bot filter —
// that carries real information, not an empty-state marker.
filterHint
? jsx('div', {
className: 'text-xs leading-5 text-(--ui-text-tertiary)',
children: filterHint
})
: null,
jsx(Button, {
variant: 'secondary',
size: 'sm',