Repository navigation
improve(ui): redesign the automation page around its prompt and results - #200808
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR reorganizes automation details around the saved prompt and activity history, with settings behind Edit. Example: Open the automation “Publish release digest.”
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 3 items remain Keep open: this maintainer-authored redesign has clear value, but keyboard focus, Solid guard compliance, and the test cutover need repair. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI cron page consumes Gateway automation definitions and run records, renders their details, and sends edits through the existing cron mutation owner. flowchart TD
A[Automations sidebar or link] --> B[Cron page state]
B --> C[Prompt and activity view]
C --> D[Edit form]
D --> E[Cron mutation owner]
E --> F[Gateway cron API]
F --> B
Technical reviewBest possible solution: Keep the redesign within the existing cron owners while restoring keyboard focus, using permitted disclosure primitives, and completing the affected test migration. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the suppressed focus indicator, forbidden Solid calls, and ownership-test waits for controls no longer rendered on arrival; no runtime reproduction was attempted. Is this the best way to solve the issue? The prompt-first presentation reuses the existing mutation, validation, sanitization, and run-history owners, but the listed regressions need focused repairs. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b60b11474606. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +904, Tests -133. Total +771 across 39 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 17, 2026, 5:05 PM ET / 22:05 UTC. |
986d111 to
44209b0
Compare
bcf5e65 to
3c088b5
Compare
…ts (openclaw#200808) Rework the Automations detail view around the prompt and run history. Maintainer approved the CI budget exception: total CSS 337,923 B gzip / 1,743,065 B raw, 611 B / 2,831 B above the ceilings. Startup CSS is unchanged. The other CI failure is the inherited Pages stylesheet fixture already fixed by openclaw#200847. Co-authored-by: Vyctor H. Brzezowski <[email protected]>
… and catalog redesigns (#203448) Related: #203445 ## What Problem This Solves `pnpm ui:check-performance` fails on main for total Control UI CSS. The automations redesign (#200808, #200817) and the catalog and Skill Workshop redesign (#202515, #202537, #202531, #202572, #202532) added real styles. The fixed total-CSS ceilings were never raised for them, so every local run of the check reports them as violations. ## User Impact No user-visible change. Developers who run `pnpm ui:check-performance` no longer see the total-CSS violations for the accepted redesigns. Any further CSS growth fails the check again, because the new ceilings have no headroom. ## Why This Change Was Made The ceilings are set to the measured size on main, with no headroom. The redesign growth is intentional. Unused CSS accounts for only about 3.5 KB of it, so the bytes cannot be removed without a design change. #203445 tracks the trim and lists the unused-CSS candidates. | Ceiling | Before | After (measured on main `265577c4`) | | --- | ---: | ---: | | Total CSS gzip | 337,312 B | 344,948 B (+7,636 B) | | Total CSS raw | 1,740,234 B | 1,779,112 B (+38,878 B) | Pre-redesign base `8f321bcc` (parent of #200808) measured 336,340 B gzip / 1,733,953 B raw. Per-file growth is in #203445. The largest growth is in `plugins.css`, `cron.css` and `skill-workshop.css`, plus the new skill page and skills discovery sheets. Not changed, because the redesign did not cause them. Both were already over at base `8f321bcc`, before #200808: - **Largest CSS** (`control-ui-boot-shared-styles.css`): 58,957 B gzip at base, 58,587 B on main, ceiling 58,315 B. - **Chat boot JS requests**: 21 at base and on main, limit 20. These two still fail `pnpm ui:check-performance`. ## Evidence - `pnpm ui:check-performance` on main `265577c4` before this change: total CSS 344,948 B gzip / 1,779,112 B raw, violations for total CSS gzip, total CSS raw, largest CSS and chat boot JS requests. - After this change, on the same build: the total-CSS violations are gone. Only the two inherited violations above remain. - `test/scripts/control-ui-performance.test.ts` passes. Merge risk: two-way door. The change only edits two budget constants in a dev and CI check script. A revert restores the old ceilings. It changes no runtime code, state or contract. Co-authored-by: Ayaan Zaidi <[email protected]>
… and catalog redesigns (openclaw#203448) Related: openclaw#203445 ## What Problem This Solves `pnpm ui:check-performance` fails on main for total Control UI CSS. The automations redesign (openclaw#200808, openclaw#200817) and the catalog and Skill Workshop redesign (openclaw#202515, openclaw#202537, openclaw#202531, openclaw#202572, openclaw#202532) added real styles. The fixed total-CSS ceilings were never raised for them, so every local run of the check reports them as violations. ## User Impact No user-visible change. Developers who run `pnpm ui:check-performance` no longer see the total-CSS violations for the accepted redesigns. Any further CSS growth fails the check again, because the new ceilings have no headroom. ## Why This Change Was Made The ceilings are set to the measured size on main, with no headroom. The redesign growth is intentional. Unused CSS accounts for only about 3.5 KB of it, so the bytes cannot be removed without a design change. openclaw#203445 tracks the trim and lists the unused-CSS candidates. | Ceiling | Before | After (measured on main `31a53bb4`) | | --- | ---: | ---: | | Total CSS gzip | 337,312 B | 344,948 B (+7,636 B) | | Total CSS raw | 1,740,234 B | 1,779,112 B (+38,878 B) | Pre-redesign base `77ac0764` (parent of openclaw#200808) measured 336,340 B gzip / 1,733,953 B raw. Per-file growth is in openclaw#203445. The largest growth is in `plugins.css`, `cron.css` and `skill-workshop.css`, plus the new skill page and skills discovery sheets. Not changed, because the redesign did not cause them. Both were already over at base `77ac0764`, before openclaw#200808: - **Largest CSS** (`control-ui-boot-shared-styles.css`): 58,957 B gzip at base, 58,587 B on main, ceiling 58,315 B. - **Chat boot JS requests**: 21 at base and on main, limit 20. These two still fail `pnpm ui:check-performance`. ## Evidence - `pnpm ui:check-performance` on main `31a53bb4` before this change: total CSS 344,948 B gzip / 1,779,112 B raw, violations for total CSS gzip, total CSS raw, largest CSS and chat boot JS requests. - After this change, on the same build: the total-CSS violations are gone. Only the two inherited violations above remain. - `test/scripts/control-ui-performance.test.ts` passes. Merge risk: two-way door. The change only edits two budget constants in a dev and CI check script. A revert restores the old ceilings. It changes no runtime code, state or contract. Co-authored-by: Ayaan Zaidi <[email protected]>
Opening an automation now shows its prompt and its Activity history first. Its settings open from Edit beside the prompt.
The head shows the automation's name as the page title, with its schedule and next run on one muted line under it, plus its description when it has one. The Active toggle, the run button and the overflow menu stay on the right.
The saved prompt is shown the way the chat composer looks: the prompt on a sheet, and under it a tray with the schedule, model and delivery summary and an Edit button.
When the last run failed, one line under the prompt says so and keeps the Review run link. The error opens on demand.
Activity history shows each run as a block: status, facts and time on the first line, the summary under it, with the rest of the run on click. The search, Status, Delivery and sort controls now sit behind one filter button next to the heading.
Editing keeps the same layout. The name and prompt are on the sheet, and the schedule, model and reasoning controls are in the tray. Agent and Runs in share one card. Every other field is under Advanced, grouped as Task, Conditions, Delivery and Timing. Advanced is closed by default and opens by itself when a field inside needs attention. Cancel and Save are in the head, and the sticky footer is gone. Saving returns to the prompt.
Creating uses the same form. It starts lower on the page, and Cancel and the create actions sit at the end of the form.
The Run history page, the Automations sidebar and the list are unchanged, apart from run entries now sharing the new run block.
Screenshots come from the mock Control UI preview at 1440 px wide (390 px for phone), with every state reached by clicking. Before shows main.
Maintainer verification
0c19bcdf293and reviewed the history, editor, recipient discovery and read-only paths. Collapsed history has no hidden link stops; long prompts remain scrollable by keyboard. Cancel restores the saved recipient list, and an old save cannot dismiss a replacement editor.INVALID_REQUESTon the PR and on exactmain(0c19bcdf293): the Gateway could not retain the original authenticated authority. No Gateway or permission logic changed here.Asset budget
The paired CI build measured total CSS at 337,923 bytes gzip and 1,743,065 bytes raw, 611 and 2,831 bytes over the respective fixed ceilings. Initial-load CSS and JavaScript were unchanged; the growth is in the Automations route stylesheet. The PR is draft pending a decision on this total budget.