Skip to content

improve(ui): redesign the Automations tab with stats, a table list, and a full-page detail view - #105174

Merged
steipete merged 5 commits into
mainfrom
claude/automations-tab-redesign-74321c
Jul 12, 2026
Merged

steipete merged 5 commits into
mainfrom
claude/automations-tab-redesign-74321c

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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:

  • List view (full width): stat cards for automation count, actively failing count, scheduler state, and next wake; an Automations / Run history tab switch; a proper table (Name with live-status dot, Schedule, Next run, Last run chip + relative time, per-row ⋯ menu with Run now / Run if due / Pause / Clone / Remove); starter suggestions as a card grid with Add affordances.
  • Detail view (full page, replaces the side pane): back link, large title, an Active/Paused switch, Run now + overflow menu, and Settings / Run history tabs. The settings form (prompt, details, frequency, advanced) is unchanged functionally.
  • The page now scrolls normally instead of the bespoke fixed-height two-pane scroll model; the run-history section distinguishes "no runs yet" from "no matches".
  • Wording moves from "task" to "automation" on the primary surfaces; docs/web/control-ui.md updated 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

List + activity Editing a task
before overview before detail

After

List view Detail (Settings)
after overview after detail
Detail (Run history) Create
after history after create

Dark theme:

after dark

Evidence

  • Screenshots above were produced with the deterministic mock-gateway Playwright harness (installMockGateway + startControlUiE2eServer) with fixture jobs/runs, light and dark.
  • Unit/component tests updated for the new DOM (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.
  • E2E (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.
  • Remote (Blacksmith Testbox): pnpm test ui/src/i18n ui/src/pages/cron ui/src/lib/cron ui/src/e2e/cron-filters.e2e.test.ts plus check:changed lanes.
  • pnpm ui:i18n:sync run with provider auth after rebasing onto the refreshed-locales main (chore(ui): refresh locales and repair cron lifecycle fixtures #105100); ui:i18n:check reports fallbacks=0 for all 20 locales.
  • Codex autoreview (gpt-5.6-sol, xhigh): two accepted findings fixed — the Failing stat now comes from a dedicated unfiltered cron.list { enabled: "enabled", lastRunStatus: "error" } total that also refreshes after add/toggle/remove, and the jobs table no longer overflow: hidden-clips row action menus. One finding rejected with proof: lastRunStatus is part of CronListParamsSchema (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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Jul 12, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread ui/src/pages/cron/view.ts
Comment on lines +734 to +737
<div
class="cron-table__row ${job.enabled ? "" : "cron-table__row--paused"}"
role="button"
tabindex="0"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@steipete
steipete merged commit 17a533c into main Jul 12, 2026
108 of 112 checks passed
@steipete
steipete deleted the claude/automations-tab-redesign-74321c branch July 12, 2026 08:51
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 13, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Redesign the Automations tab (stats, table list, full-page detail)

1 participant