Repository navigation
improve(ui): redesign the automation editor into prompt, general, schedule, and delivery cards - #105254
Conversation
…edule, and delivery cards
There was a problem hiding this comment.
💡 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".
| if (status === "unknown" || !rel) { | ||
| return html`<span class="muted">${t("common.na")}</span>`; |
There was a problem hiding this comment.
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 👍 / 👎.
|
Merged via squash.
|
…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
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
Repeatdropdown for the schedule, and chip bubbles cluttering the table's Last run column.Why This Change Was Made
aria-label.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)
After
Evidence
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:checkfallbacks=0 for all 20 locales).aria-label, prompt/create card structure.:focus-withinring replacing the suppressed textarea outline.