Skip to content

feat(ui): replace the Automations table with its sidebar and Run history - #200010

Merged
vyctorbrzezowski merged 20 commits into
mainfrom
brzezowski/side-rail-14-automations-details
Nov 17, 2026
Merged

vyctorbrzezowski merged 20 commits into
mainfrom
brzezowski/side-rail-14-automations-details

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

An open automation was hard to follow: choosing another one in the sidebar only moved the highlight, a linked automation was never marked, the detail header showed raw cron, a failed automation opened on its history, one-day intervals read "Every 1 day", and the sidebar read only the first 200 automations while the page hides its own list beside it.

User Impact

Choosing an automation in the sidebar opens it and marks it; Automations always starts over when chosen again; the detail header reads the cadence ("Daily · Next in 10h") and the description as a subtitle; automations open on Settings with the failure in the banner and a Review run link; whole hours, days and weeks read Hourly, Daily and Weekly; the sidebar lists every automation.

Why This Change Was Made

Fixes and polish on top of the Automations sidebar. The page records the open automation as section memory and the sidebar marks what the page has open, instead of keeping its own highlight.

Evidence

Screenshots come from the Control UI mock at the end of the series, so the after image can show later parts too.

An open automation before and after (left: main, right: after):

An open automation before and after

  • pnpm tsgo:ui passes at this PR's head.
  • The unit tests of the files this PR touches pass at its head; the full UI unit suite passes at the end of the series (one failure also on main: a Workboard German relative-time string, "vor 1min", from the local ICU).
  • Local autoreview (Codex) over the whole series; its three findings are fixed in this series.
  • The full UI e2e suite was not run locally.

Update: Automations table removed

The Automations page no longer has a table. The list lives only in the sidebar, whose header filter already carries the table's filters; the page shows the open automation or an empty state.

  • A "Run history" row under "New automation" opens every automation's runs (?activity), the old table's Activity tab.
  • The iPad app opens /automations with no web sidebar, so in the native embed the page renders the sidebar's own list.
  • Gone with the table: its search, tabs, row controls, starter suggestions, the manual Refresh button and the ?session= filtered view (nothing links to it). Failed reads show Retry in the empty state.
  • E2E tests reach automations through the sidebar; 18 cron e2e files pass at this head. Tests that only covered the table were deleted.

Side rail series, part 13 of 16. Stacked on #199833; review only this PR's commits.

Update: e2e repair

The full Control UI e2e run on the stack found tests this PR broke or product gaps it introduced; this PR now carries their fixes:

  • feat(ui): offer the Automations table's filters in the Automations sidebar filter
  • test(ui): expect cadence words in the automation detail header e2e
  • test(ui): open a failed automation on its settings in the attention e2e

Moved to an earlier PR or folded into another commit:

  • fix(ui): switch between automations from the Automations sidebar

Update: no sidebar without an automation

With no automation in the agent's scope, Automations now shows only the rail beside its "No automations yet" empty state and its New automation button; the sidebar (with New automation and Run history) returns once an automation exists. An agent picked in the sidebar's filter keeps the sidebar, so the filter stays reachable.

  • feat(ui): show only the rail beside Automations without an automation
  • New cron-filters e2e case: no automation → .shell--nav-page-hidden and no visible sidebar; it fails without the shell rule.
  • Tests that opened Run history or New automation from the sidebar without an automation now use ?activity or the empty state's button; cron-select-values gets one automation so it keeps using the sidebar. The rail-peek instant-open case now opens People.
  • All 21 Automations/sidebar e2e files pass at this head (81 tests).

Maintainer verification

The compact sidebar inventory now keeps read failures visible and retries the same inventory owner. The native embedded list exposes the existing shared filters again, with the same options and state, and uses the existing loading boundary. Regression checks reproduce the failures before the fix and verify retry, filtering, reset and focus afterward. Removed unused sidebar-reporting wiring, the retired table's exported helper surface and fixtures, and two stale E2E inventory entries. Current main's deliberately retired transcript reader stays removed; run history remains. The integrated stack passed 558 unit/browser tests and 20 bundled E2E cases; the final cleanup additionally passed 38 shell/navigation/history tests, the permission-revocation case and the focused settings-header browser case. Independent reviews found no actionable P0–P2 issues.

Approved navigation-stack JS budget

Vyctor approved the measured JavaScript byte cost for this navigation stack. These cumulative measurements compare this layer with paired main base 1d82bed0a7fef79012c38ea7e6184911aba27e63. Each cap equals the original main cap plus the measured delta, preserving existing headroom without adding another margin.

Metric Cumulative gzip delta Cap
Largest JS asset +3,615 B 576,055 B
Chat boot JS +4,128 B 1,329,708 B
New Session boot JS +3,997 B 820,629 B

CSS ceilings, request counts, startup ceilings and gate logic are unchanged. Byte measurements are delivery-size evidence, not latency measurements.

Maintainer validation

Reviewed and rebased this layer on predecessor 3a0ca90b383a2f7fd6d55529f968053231aacf87; current head is bb451408b1fc810c9d6c719edf0aa10087e7eecc. The own-layer tree, original human authors and signatures were checked. UI typechecking passed on this candidate. Previously verified functional and integrated visual proof was reused where inputs are unchanged; the maintainer also exercised the integrated stack on a real Gateway.

The section-location comparison now uses the existing signal updater instead of a separate untracked read. The controller guard and 45 existing owner cases passed.

The maintainer authorized sequential CI bypass after repairing known PR-caused failures. Hosted CI may still be running; this is not a claim of full hosted CI success. The unrelated owner-approval timing failure is tracked separately in #200810.

@clawsweeper

clawsweeper Bot commented Nov 16, 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:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 16, 2026
@clawsweeper

clawsweeper Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR fixes automation selection and highlighting, loads every sidebar automation, and simplifies detail captions and default tabs.

Example: The sidebar contains 250 automations.

  • Before: Only the first 200 appear, while the page hides its own list.
  • After: The sidebar follows pagination and displays all 250.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful, bounded changes with visual evidence, an introduced guard failure, and incomplete behavioral proof.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Sidebar selections can fail to open the requested automation, linked selections are not tracked reliably, and automations beyond the first inventory page are unreachable.
Reason: The navigation repairs have clear value, and the maintainer-authored PR explicitly approves its associated caption and Settings-first preferences.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this maintainer-authored draft open: it contains useful navigation fixes, but its new untrack call violates the enforced UI guard.

Priority: P2
Reviewed head: 5227dac9c1dd0ae171e08cf4524711d34fd80574

Before merge

  • Move the equality check into the signal updater (P2) - The added untrack(opened) introduces one untrack call in a file with zero allowance in config/control-ui-untrack-baseline.txt. scripts/check-control-ui-controllers.mts scans this module and rejects that increase, so the shipped controller guard cannot pass this head. Compare the existing entry inside setOpened’s updater and return the unchanged map when equal, then remove the untrack import; do not raise the baseline.

Findings

  • [P2] Move the equality check into the signal updater — ui/src/lib/section-navigation.ts:38

Tests

  • Missing end-to-end proof: Provide redacted UI recording or live output showing sidebar switching, linked selection, section reset, Review run, and access beyond 200 automations; base-failing/head-passing navigation regression evidence is also absent.
Agent review details

How this fits together

The Control UI reads automation inventory from the Gateway, routes sidebar selections to the Cron page, and presents the selected job’s settings and history.

flowchart LR
  A[Gateway cron inventory] --> B[Inventory reader]
  B --> C[Automations sidebar]
  C --> D[Cron route]
  D --> E[Cron page owner]
  E --> F[Settings and history]
  D --> G[Section memory]
  G --> C
Loading

Technical review

Best possible solution:

Keep the existing navigation owner and move its location equality check inside setOpened’s updater, removing the untrack call.

Do we have a high-confidence way to reproduce the issue?

The base source establishes the 200-row truncation and pending-route fallback, and the head source establishes the new guard violation; no target code was executed.

Is this the best way to solve the issue?

Reusing section memory, the inventory reader, and the existing detail owner is appropriately scoped; the equality check can use the signal setter without adding an untrack exception.

Full review comments:

  • [P2] Move the equality check into the signal updater — ui/src/lib/section-navigation.ts:38
    The added untrack(opened) introduces one untrack call in a file with zero allowance in config/control-ui-untrack-baseline.txt. scripts/check-control-ui-controllers.mts scans this module and rejects that increase, so the shipped controller guard cannot pass this head. Compare the existing entry inside setOpened’s updater and return the unchanged map when equal, then remove the untrack import; do not raise the baseline.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm check:control-ui-controllers
  • pnpm tsgo:ui
  • pnpm --dir ui test src/components/app-sidebar-automations.test.ts src/lib/presenter.test.ts src/pages/cron/cron-page.attention.test.ts src/pages/cron/view-description.test.ts
  • git diff --check

What I checked:

PR surface

Source +33, Tests +50. Total +83 across 13 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 9 115 82 +33
Tests 4 64 14 +50
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 179 96 +83

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: The PR addresses bounded automation-navigation defects and contains a focused UI guard violation.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish 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: The PR addresses bounded automation-navigation defects and contains a focused UI guard violation.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish 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 16, 2026, 2:26 AM ET / 07:26 UTC.

@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-13-systems-sidebar branch from f928c61 to 00d5dcb Compare November 16, 2026 16:09
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-14-automations-details branch from 5227dac to fdc2493 Compare November 16, 2026 16:09
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-13-systems-sidebar branch from 00d5dcb to 777ef4a Compare November 16, 2026 16:34
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-14-automations-details branch from fdc2493 to 162e340 Compare November 16, 2026 16:34
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-13-systems-sidebar branch from 777ef4a to 050be7b Compare November 16, 2026 18:12
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-14-automations-details branch from 162e340 to b894f61 Compare November 16, 2026 18:12
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-13-systems-sidebar branch from 050be7b to 23f62ad Compare November 16, 2026 22:53
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-14-automations-details branch from b894f61 to a717b94 Compare November 16, 2026 22:53
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XL and removed size: L labels Nov 16, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-13-systems-sidebar branch from 23f62ad to 37bcd4a Compare November 17, 2026 00:44
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-14-automations-details branch from a717b94 to 5334373 Compare November 17, 2026 00:44
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-13-systems-sidebar branch from 37bcd4a to 8b13abd Compare November 17, 2026 16:54
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-14-automations-details branch from 7b72846 to 8a8a4d9 Compare November 17, 2026 16:54
@vyctorbrzezowski vyctorbrzezowski changed the title improve(ui): follow and read the open automation feat(ui): replace the Automations table with its sidebar and Run history Nov 17, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-14-automations-details branch from 2c8e808 to bb45140 Compare November 17, 2026 22:18
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 17, 2026 22:19
@vyctorbrzezowski
vyctorbrzezowski merged commit d103997 into main Nov 17, 2026
116 of 120 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/side-rail-14-automations-details branch November 17, 2026 22:19
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged as d103997 after reviewing the layer and its integration with main. Preserved the approved design and human credit. Known PR-caused failures were repaired and focused checks passed; CI bypass was explicitly authorized by the maintainer. The inherited owner-approval test timing issue is tracked separately in #200810.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
…ory (openclaw#200010)

Preserve the approved navigation design. Reviewed the own-layer change, current main integration and applicable focused proof. Known PR-caused failures were repaired before landing; the maintainer explicitly authorized CI bypass. The unrelated owner-approval test timing issue is tracked separately in openclaw#200810.

Co-authored-by: Vyctor H. Brzezowski <[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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts 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