Repository navigation
Closed as duplicate
Description
Parent: #2210. Follow-up to #2194, from its second review.
Outcome
Correctness and accessibility details on the schedule detail page and the inventory that #2194 left for later. None blocks use today.
Behavior
- Run now leaves history stale.
runActioninschedules-workspace.tsxno longer invalidates the fires query, so reopening the detail within the 30sstaleTimeshows history without the new fire. - Delete flashes "not found". The detail page awaits the list invalidation before
navigate, soDetailState(role="alert") renders for a moment and screen readers announce an error after a successful delete. Navigate first, or drop the item from the cache instead of refetching. - Run limit is invisible before the first fire.
describeRunsreturns "None yet" and dropsmaxFires, and the form no longer shows it, so a cron created withmaxFires=10never says it will stop.
Focus and keyboard
- Focus after Edit from a row menu.
openEditorsavesdocument.activeElement, which is the menu item and is gone once the menu closes, so focus lands on<body>. Pass the trigger, asopenDeletedoes. The detail page's edit dialog doesn't restore focus at all. /while a dialog is open. WithoutuseShortcutSuppression,/inside the Schedule or Edit dialog jumps to the search behind the modal. It is also swallowed in the loading and empty states where there is no search box.
Code
- Duplicate relative-time formatting.
formatSpan,describeNextRunanddescribeLastRuninschedule-detail.tsxre-implementformatUntilTimeandformatRelativeTimefromlib/formatters.ts. - Cron parsing in hot paths.
describeCronruns inside the sort comparator (schedule-inventory.ts), and filtering runs twice per change (desktop and mobile). Compute the labels once per list, filter once, then sort. refactor(studio): describe cron schedules with cronstrue #2285 removed the cron parse from the comparator and memoizesdescribeCron; the double filtering remains. - Outcome mapping location. The fire outcome mapping from
session.StopReasonlives in the web app (fireOutcomeinschedule-detail.tsx). Reviewers preferred the BFF so every client reads the same vocabulary.
Not included
The detail page does not poll while a schedule is merely scheduled, so "in 30m" and a newly fired run can go stale until the window regains focus. Judged low value, since the page is mostly static configuration and the inventory polls every 5s.
Fully or partially written by an AI agent.
Metadata
Metadata
Assignees
Labels
No labels
Activity
kantord commentedon Oct 14, 2026
Merged into #2303: all items were copied there (section C). Closing as a duplicate. Fully or partially written by an AI agent.