Repository navigation
improve(ui): redesign the Automations tab with stats, a table list, and a full-page detail view - #105174
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 06ceb0787d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <div | ||
| class="cron-table__row ${job.enabled ? "" : "cron-table__row--paused"}" | ||
| role="button" | ||
| tabindex="0" |
There was a problem hiding this comment.
Keep row actions out of the row button
When keyboard or screen-reader users reach a cron row, this element exposes the whole row as a single button while the same row also contains the overflow <details> menu in .cron-table__actions. Button roles are not meant to own nested interactive controls, so Run/Pause/Remove can be hidden or announced as part of the row button instead of separate menu actions. Keep the row as a non-interactive grid/table row and put the open-detail action on a dedicated button or cell so the menu remains independently accessible.
Useful? React with 👍 / 👎.
|
Merged via squash.
|
…nd a full-page detail view (openclaw#105174) * feat(ui): redesign Automations tab with stats, table list, and detail tabs * docs(web): describe redesigned Automations page layout * fix(ui): global failing-count stat via filtered cron.list and unclipped row menus * fix(ui): refresh failing-count stat after cron job mutations * chore(ui): sync locale bundles for automations redesign keys
Closes #105141
What Problem This Solves
The Automations page still used the original two-pane layout: a narrow task list squeezed next to an inline editor pane. The list showed only name + schedule, run status was a bare red dot, run history and the editor fought for the same pane, and the page had no at-a-glance health summary. It looked and navigated noticeably worse than the recently redesigned Plugins/Devices/Sessions surfaces.
Why This Change Was Made
Redesign of the Automations tab (requested by @steipete, with a stats-cards + table + full-page-detail layout as inspiration), blended with OpenClaw's existing design language:
docs/web/control-ui.mdupdated to match.No gateway/RPC changes: same
cron.*methods, same form state and validation layer (ui/src/lib/cron), view + CSS only, plus two page-local tab states.User Impact
The Automations tab reads like a dashboard: you see how many automations exist, whether any are failing, and when the scheduler wakes next, then drill into a focused full-page editor with its own run history. All previous functionality (filters, search, quick actions, create-and-run, advanced overrides, webhook/announce delivery) is preserved.
Before
After
Dark theme:
Evidence
installMockGateway+startControlUiE2eServer) with fixture jobs/runs, light and dark.ui/src/pages/cron/view.test.ts,cron-page.test.ts) including new coverage: failing-stat counts only enabled jobs, list-tab switching, row-menu click containment, detail-tab history view, switch aria state, run-history empty states.ui/src/e2e/cron-filters.e2e.test.ts) updated: table selectors and back-navigation before quick-create; filter round-trips through the mock gateway unchanged.pnpm test ui/src/i18n ui/src/pages/cron ui/src/lib/cron ui/src/e2e/cron-filters.e2e.test.tspluscheck:changedlanes.pnpm ui:i18n:syncrun with provider auth after rebasing onto the refreshed-locales main (chore(ui): refresh locales and repair cron lifecycle fixtures #105100);ui:i18n:checkreports fallbacks=0 for all 20 locales.cron.list { enabled: "enabled", lastRunStatus: "error" }total that also refreshes after add/toggle/remove, and the jobs table no longeroverflow: hidden-clips row action menus. One finding rejected with proof:lastRunStatusis part ofCronListParamsSchema(packages/gateway-protocol/src/schema/cron.ts:520) and the gateway forwards it (src/gateway/server-methods/cron.ts:440); the shipped table filter already uses this path.