Skip to content

improve(ui): redesign the automation page around its prompt and results - #200808

Merged
vyctorbrzezowski merged 6 commits into
mainfrom
brzezowski/automations-detail-redesign
Nov 18, 2026
Merged

vyctorbrzezowski merged 6 commits into
mainfrom
brzezowski/automations-detail-redesign

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

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.

State Before (main) After
Automation, light Before (main): Automation, light After: Automation, light
Last run failed, light Before (main): Last run failed, light After: Last run failed, light
Last run failed, error open, light Before (main): Last run failed, error open, light After: Last run failed, error open, light
Edit, light Before (main): Edit, light After: Edit, light
Edit with Advanced open, light Before (main): Edit with Advanced open, light After: Edit with Advanced open, light
Create, light Before (main): Create, light After: Create, light
Activity history filters open, light Before (main): Activity history filters open, light After: Activity history filters open, light
Automation, dark Before (main): Automation, dark After: Automation, dark
Edit, dark Before (main): Edit, dark After: Edit, dark
Automation, phone Before (main): Automation, phone After: Automation, phone
Create, phone Before (main): Create, phone After: Create, phone

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

  • Rebased on 0c19bcdf293 and 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.
  • Verified the dark before/after images already in this description. The Automations suite passed 190 tests. After updating the one-shot regression to reopen Edit after Save, all 46 bundled Chromium Automations scenarios passed; the test still verifies that saving metadata leaves the authored time and runtime deadline unchanged. UI types, controller and lint suppression checks passed.
  • Chromium with an isolated real Gateway verified prompt save/reload, catalog updates, timeout clearing, stagger precision, alert overrides and cloning ordinary payloads. The existing partial-alert clone fixture received the same INVALID_REQUEST on the PR and on exact main (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.

@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR reorganizes automation details around the saved prompt and activity history, with settings behind Edit.

Example: Open the automation “Publish release digest.”

  • Before: Settings and Activity history occupy separate tabs.
  • After: The saved prompt and Activity history appear together, with Edit opening the form.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful, approved design direction, with three source-verifiable repair items and mock-only behavior proof.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 3 actionable review findings remain.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Users must switch between settings and history to read an automation’s instructions and results.
Reason: The maintainer-authored direction puts the prompt and results together while retaining the established cron operations.

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
Reviewed head: bcf5e659413073b98f53d8d32e998c4dd56d54e3

Before merge

  • Restore visible keyboard focus on the name and prompt fields (P2) - Tabbing into either new textarea removes the previous settings-input focus treatment: these selectors set outline: 0 and box-shadow: none, and neither the fields nor their sheet supplies a replacement focus indicator. The later cron stylesheet also overrides the generic :focus-visible outline. Restore a visible field or sheet focus treatment so keyboard users can identify the active editing control.
  • Keep the new disclosures within the Solid shrink-only guard (P2) - The added createEffect has no allowance in config/control-ui-createEffect-baseline.txt, and the new untrack call in view-attention.tsx likewise has none in its baseline. scripts/check-control-ui-controllers.mts counts both, so the existing guard rejects this patch. The Solid guidance explicitly forbids increasing these allowances. Use a permitted derivation for Advanced auto-opening and remove the unused fullCause snapshot path, whose sole production caller no longer supplies that prop.
  • Migrate the real-Gateway ownership flow to Edit and Advanced (P2) - Returning history for every saved job leaves the form unmounted on arrival, but cron-human-owner.real-gateway.e2e.test.ts still navigates to automations?job=… and immediately waits for #cron-name at line 342. That test now times out before checking owner permissions. It also expects the owner picker to be visible without Advanced and continues editing after Save, which now closes the form. Update this consumer to enter Edit, reveal Advanced where needed, and reopen editing after successful saves.

Findings

  • [P2] Restore visible keyboard focus on the name and prompt fields — ui/src/styles/cron.css:407-409
  • [P2] Keep the new disclosures within the Solid shrink-only guard — ui/src/pages/cron/view-delivery.tsx:189-193
  • [P2] Migrate the real-Gateway ownership flow to Edit and Advanced — ui/src/pages/cron/route-model.ts:81-83

Tests

  • Missing end-to-end proof: Provide redacted shipped-Control-UI evidence against an isolated Gateway covering opening an automation, Edit, Advanced validation, Save/Cancel, and run expansion, including keyboard focus.
Agent review details

How this fits together

The 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
Loading

Technical review

Best 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:

  • [P2] Restore visible keyboard focus on the name and prompt fields — ui/src/styles/cron.css:407-409
    Tabbing into either new textarea removes the previous settings-input focus treatment: these selectors set outline: 0 and box-shadow: none, and neither the fields nor their sheet supplies a replacement focus indicator. The later cron stylesheet also overrides the generic :focus-visible outline. Restore a visible field or sheet focus treatment so keyboard users can identify the active editing control.
    Confidence: 0.99
  • [P2] Keep the new disclosures within the Solid shrink-only guard — ui/src/pages/cron/view-delivery.tsx:189-193
    The added createEffect has no allowance in config/control-ui-createEffect-baseline.txt, and the new untrack call in view-attention.tsx likewise has none in its baseline. scripts/check-control-ui-controllers.mts counts both, so the existing guard rejects this patch. The Solid guidance explicitly forbids increasing these allowances. Use a permitted derivation for Advanced auto-opening and remove the unused fullCause snapshot path, whose sole production caller no longer supplies that prop.
    Confidence: 0.99
  • [P2] Migrate the real-Gateway ownership flow to Edit and Advanced — ui/src/pages/cron/route-model.ts:81-83
    Returning history for every saved job leaves the form unmounted on arrival, but cron-human-owner.real-gateway.e2e.test.ts still navigates to automations?job=… and immediately waits for #cron-name at line 342. That test now times out before checking owner permissions. It also expects the owner picker to be visible without Advanced and continues editing after Save, which now closes the form. Update this consumer to enter Edit, reveal Advanced where needed, and reopen editing after successful saves.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against b60b11474606.

Provenance checked

  • Sticky editor actions changes intended behavior with a stated reason (improve(ui): redesign the automation editor into prompt, general, schedule, and delivery cards #105254: Keep Save, Create, and Cancel visible while the long form scrolls; later layout repairs preserved that sticky boundary.)
  • Markdown prompt preview keeps the original intent (e057c73: Render agent-turn Markdown through the existing sanitized preview while preserving editable prompt bytes; this PR relocates that preview to Advanced.)
  • Failure diagnostics keeps the original intent (c230ae5: Keep the saved failure cause available even when its historical run is no longer retained; the redesigned disclosure retains that source.)
  • One-shot schedule presentation keeps the original intent (0b1cd5f: Distinguish the configured occurrence from the effective runtime deadline without rewriting the authored time; the extracted summary preserves this distinction.)
  • Settings-first navigation in the stack changes intended behavior with a stated reason (82ea39f: Open automations on Settings while keeping failure review available; this PR explicitly replaces that choice with prompt and history first.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Reviewed introduction: Reviewed the pinned merge-base-to-head changes; the checkout matches the original PR head, and the live PR remains a cleanly mergeable draft. (bcf5e6594130)
  • Keyboard focus regression: The new name and prompt textareas lose settings-input styling and explicitly suppress outlines and shadows; no replacement focus treatment exists for either textarea or its sheet. (ui/src/styles/cron.css:407, bcf5e6594130)
  • Solid guard violation: Advanced adds createEffect and FailureDetails adds untrack, while neither file has an allowance in the corresponding shrink-only baselines; the existing guard counts these calls. (ui/src/pages/cron/view-delivery.tsx:189, bcf5e6594130)
  • Unmigrated real-Gateway consumer: The ownership E2E test navigates directly to an automation and waits for #cron-name without clicking Edit; it also continues editing after Save and accesses the newly collapsed owner control. (ui/src/e2e/cron-human-owner.real-gateway.e2e.test.ts:342, bcf5e6594130)
  • Supplied visual evidence: Inspected the four prepared before/after images showing ordinary and failed automation details. The complete PR body identifies its screenshots as mock Control UI previews. Additional image downloads were blocked because the designated scratch directory also returned “Read-only file system”; this inspection limit is not a contributor defect. (bcf5e6594130)
  • Current-main boundary: Current main retains the settings/history tabs and sticky editor actions, so the central redesign is not already implemented there. (ui/src/pages/cron/view-detail.tsx:82, b60b11474606)

PR surface

Source +904, Tests -133. Total +771 across 39 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 13 1614 710 +904
Tests 26 184 317 -133
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 39 1798 1027 +771

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: This is a useful UI improvement with bounded accessibility and validation defects, without evidence of an urgent production outage.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This is a useful UI improvement with bounded accessibility and validation defects, without evidence of an urgent production outage.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 17, 2026, 5:05 PM ET / 22:05 UTC.

@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-17-sidebar-corners branch from 986d111 to 44209b0 Compare November 17, 2026 22:23
Base automatically changed from brzezowski/side-rail-17-sidebar-corners to main November 17, 2026 22:30
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/automations-detail-redesign branch from bcf5e65 to 3c088b5 Compare November 17, 2026 22:49
@openclaw-barnacle openclaw-barnacle Bot removed docs Improvements or additions to documentation scripts Repository scripts plugin: workboard extensions: clawrouter Extension: clawrouter channel: x plugin: knowledge plugin: openclaw-id-access labels Nov 17, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 18, 2026 01:37
@vyctorbrzezowski
vyctorbrzezowski merged commit dce9dd1 into main Nov 18, 2026
148 of 152 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/automations-detail-redesign branch November 18, 2026 01:50
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
…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]>
obviyus added a commit that referenced this pull request Nov 22, 2026
… 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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 23, 2026
… 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]>
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 P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant