Skip to content

improve(ui): redesign the automation editor into prompt, general, schedule, and delivery cards - #105254

Merged
steipete merged 4 commits into
mainfrom
claude/automations-editor-redesign
Jul 12, 2026
Merged

steipete merged 4 commits into
mainfrom
claude/automations-editor-redesign

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Follow-up to #105174 / #105141.

What Problem This Solves

The Automations list got its redesign in #105174, but the editor form inside the new detail view was carried over almost unchanged: one flat "Details" list of heavy label-left rows with right-aligned help text, a plain prompt textarea disconnected from the model choice, a Repeat dropdown for the schedule, and chip bubbles cluttering the table's Last run column.

Why This Change Was Made

  • Prompt card: the instructions textarea becomes a borderless card with Action / Model / Reasoning as compact inline controls in its footer (the in-box model-picker pattern); the card border carries the keyboard focus ring since the textarea outline is suppressed.
  • General / Schedule / Delivery cards: the flat row list splits into three stacked-field cards in a responsive grid, with help text left-aligned under each field.
  • Schedule: kind selection becomes a segmented Interval / Once / Cron control (On exit appears only while it is the current value, as before), with a live human-readable summary under the inputs ("Runs every 30 minutes", singular-aware). The saved job's next run moved to the detail header subtitle so an edited-but-unsaved schedule can never contradict it.
  • Table polish: the Last run column drops the OK/Error chip bubbles for a bare status glyph (✓ green / ✕ red / ↪ skipped) plus the relative time; the status word stays on hover and for assistive tech via aria-label.
  • Sticky save bar: Create/Save + Cancel stay visible while the long form scrolls.

Same cron.* RPCs, ids, and validation layer; #cron-* input ids and test ids are preserved except the schedule-kind select, which became segmented buttons (cron-schedule-kind-<value>).

User Impact

Editing an automation now reads like a settings page instead of a config table: instructions front and center with the model beside them, the schedule as one glanceable card with a plain-English readback, and a calmer list table.

Before (shipped in #105174)

Editor Create
before editor before create

After

Editor Create
after editor after create
List (calmer Last run column) Dark
after overview after dark

dark overview

Evidence

  • Remote (Blacksmith Testbox): pnpm test ui/src/i18n ui/src/pages/cron ui/src/lib/cron ui/src/e2e/cron-filters.e2e.test.ts — green, including the locale key-alignment gate with synced bundles (ui:i18n:check fallbacks=0 for all 20 locales).
  • Component tests updated/added: segmented schedule-kind wiring and on-exit pill visibility, live schedule summary (plural, singular, invalid-hidden), last-run glyph + aria-label, prompt/create card structure.
  • Codex autoreview (gpt-5.6-sol, xhigh): both accepted findings fixed pre-land — stale saved next-run no longer renders beside an edited schedule (moved to the header, which always describes the saved job), and the prompt card now carries a :focus-within ring replacing the suppressed textarea outline.
  • Screenshots from the deterministic mock-gateway Playwright harness, light and dark.

@openclaw-barnacle openclaw-barnacle Bot added 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: d6fe6d0fd7

ℹ️ 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 +775 to +776
if (status === "unknown" || !rel) {
return html`<span class="muted">${t("common.na")}</span>`;

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 Preserve status when the run timestamp is missing

When a job has state.lastRunStatus but no state.lastRunAtMs, this now returns n/a and suppresses the saved status entirely. The gateway schema makes lastRunAtMs and lastRunStatus independently optional (packages/gateway-protocol/src/schema/cron.ts:428-429), and existing UI status helpers/tests already treat status-only jobs as meaningful, so imported/doctor-repaired or otherwise status-only failed/skipped jobs will still match status filters or failure counts while the table shows no status. Render the status glyph/label even when the timestamp is absent, and only omit the time text.

Useful? React with 👍 / 👎.

@steipete
steipete merged commit cfe8019 into main Jul 12, 2026
101 of 107 checks passed
@steipete
steipete deleted the claude/automations-editor-redesign branch July 12, 2026 09:47
@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
…edule, and delivery cards (openclaw#105254)

* improve(ui): redesign the automation editor into prompt, general, schedule, and delivery cards

* fix(ui): calm last-run glyphs, saved next-run in header, prompt focus ring

* chore(ui): sync locale bundles for editor redesign keys

* test(ui): cover one-shot schedule summary formatting
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 maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant