Skip to content

feat(ui): list automations in the Automations sidebar - #199827

Merged
vyctorbrzezowski merged 11 commits into
mainfrom
brzezowski/side-rail-07-automations-sidebar
Nov 17, 2026
Merged

vyctorbrzezowski merged 11 commits into
mainfrom
brzezowski/side-rail-07-automations-sidebar

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The Automations sidebar has no automations in it, and returning to Automations loses the automation that was open.

User Impact

The sidebar lists the automations; Automations opens on an empty state with New automation the first time and reopens the last automation within the tab; a header filter narrows the list.

Why This Change Was Made

Adds the list, the empty state, section memory and the filter. Section memory and the filter popover are shared so Dashboards can reuse them.

Evidence

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

Automations before and after (left: main, right: after):

Automations 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.

Side rail series, part 6 of 16. Stacked on #199826; 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:

  • fix(ui): say why Automations can't list beside its sidebar
  • test(ui): reach the Automations list or create panel beside the sidebar in e2e tests
  • fix(ui): switch between automations from the Automations sidebar
  • fix(ui): act only on a real change of the Automations route search

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 +13,558 B 585,998 B
Chat boot JS +13,521 B 1,339,101 B
New Session boot JS +13,660 B 830,292 B

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

This intermediate layer still loads the Automations filter eagerly. The next layer removes that unnecessary loading and reduces the caps to its measured footprint.

Maintainer validation

Reviewed and rebased this layer on predecessor b255cc584c9b5b31de7f89df56357bdfe4b317f9; current head is 695494bdce379fa61d863a79f1ef4c012194e5f5. 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 mounted Automations list registers its reactive presence reader; the page derives visibility without a second observer. This preserves expanded/collapsed and mobile ownership. Controller guard, UI types, lint, format and 16 Chromium E2E 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 15, 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 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR adds sidebar filters and tab-local automation selection memory, and replaces the expanded-sidebar overview with a New automation prompt.

Example: Open automation job-42, visit another section, then return to Automations in the same browser tab.

  • Before: Automations returns without restoring job-42.
  • After: Automations restores job-42 when its selection was recorded through a job URL.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful owner-directed feature work, with concrete workflow regressions and no supplied proof of the changed behavior.
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) 6 actionable review findings remain.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Users need automation navigation, filtering, and restoration of the automation they were viewing.
Reason: The maintainer-authored direction improves section navigation, and the next stacked PR already consumes the shared helpers.

Merge readiness

⛔ Needs changes before merge - 7 items remain

Keep this maintainer-authored draft open: the sidebar direction has clear value, but replacing the overview hides existing capabilities and selection memory misses supported navigation paths.

Priority: P2
Reviewed head: adff61418ada4f6c0ce6a73dac2740112d055c8c

Before merge

  • [P2] Preserve access to jobs beyond the first sidebar page (P2) - With 201 automations and the desktop sidebar expanded, this branch removes the paginated ListView. SidebarAutomations requests only limit=200, offset=0 and returns result.jobs; readCronInventory also slices its complete internal inventory to that requested page. Consequently the 201st job has no row or load-more control in this layout, and local filtering cannot discover it. Complete or paginate the sidebar inventory before making it the sole list.
  • [P2] Retain the global Run history entry point (P2) - Opening Automations with an expanded desktop sidebar now skips ListView, which owns both ListTabs and the global RunsSection. The replacement sidebar offers job links and New automation only. Users can no longer select global Run history in this layout, including history for removed jobs; they must collapse the sidebar to recover it. Preserve the history navigation and content while removing duplicate job rows.
  • [P2] Keep scheduler warnings and read recovery outside the hidden list (P2) - If the scheduler is disabled or cron.list fails, ListView currently renders the scheduler warning or error with Retry. The new overview renders only PanelEmptyState, while the sidebar catches inventory errors and turns them into an empty array. Thus a failed read looks like an empty installation, and a stopped scheduler loses its warning. Retain the existing status, error, and retry presentation independently of the job-row layout.
  • [P2] Record selections made through the retained page list (P2) - On a phone or with the sidebar collapsed, selecting job-42 calls createCronPage.selectJob without changing routeSearch. This effect therefore never records that selection. Leaving the section and returning cannot reopen job-42; if a different job URL was previously remembered, it can reopen that older job instead. Update section memory through the existing selection owner so both sidebar links and retained-list selections participate.
  • [P2] Preserve the session scope when closing an automation (P2) - For /cron?session=session-42&agent=writer, the PR intentionally retains the session-specific list. Opening one of its jobs and pressing Back now unconditionally replaces the URL with /cron and an empty query. setRouteSearch detects the removed session filter and reloads the unscoped inventory, so Back leaves the session the user was inspecting. Restrict query clearing to the job/create navigation being closed and retain the session query.
  • [P2] Provide a keyboard focus destination in the new overview (P2) - Keyboard-activating Back from an automation detail prepares a return-focus request in CronView. Previously the mounted ListView supplied the originating row or search fallback; the new empty state supplies neither, and its New automation button has no focus registration. Removing the focused detail therefore leaves focus on BODY, reintroducing the behavior repaired in fix: preserve keyboard focus when navigating scheduled tasks #168732. Connect closing to an existing visible sidebar row or the new creation control through the current focus owner.
  • Explain or restore the original intent of Keyboard return focus - b807fb5: fix: preserve keyboard focus when navigating scheduled tasks #168732 restored focus to a surviving control after closing or deleting an automation; losing that handoff is unexplained.

Findings

  • [P2] [P2] Preserve access to jobs beyond the first sidebar page — ui/src/pages/cron/view.tsx:81-85
  • [P2] [P2] Retain the global Run history entry point — ui/src/pages/cron/view.tsx:81-85
  • [P2] [P2] Keep scheduler warnings and read recovery outside the hidden list — ui/src/pages/cron/view.tsx:83-89

Provenance

Tests

  • Missing end-to-end proof: Supply sanitized before/after browser evidence covering the expanded sidebar, more than 200 jobs, overview history and recovery controls, phone selection restoration, session-scoped Back, keyboard return focus, and the filter popover in Chromium and WebKit.
Agent review details

How this fits together

The Control UI reads automation inventories through the shared Cron inventory owner; sidebar navigation and page-local selection determine which automation editor or overview appears.

flowchart LR
  Gateway[Gateway cron API] --> Inventory[Cron inventory owner]
  Inventory --> Sidebar[Automations sidebar]
  Filter[Sidebar filters] --> Sidebar
  Sidebar --> Router[Application router]
  Memory[Section navigation memory] --> Router
  Router --> Page[Cron page and editor]
Loading

Technical review

Best possible solution:

Extend the existing Cron inventory, selection, overview, and focus owners so the sidebar layout preserves complete job access and existing controls.

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

Source traces establish the affected branches and inputs; no target code or tests were executed under this read-only review.

Is this the best way to solve the issue?

The shared filter and section memory fit the stacked sidebar work, but replacing the entire overview is broader than removing duplicate rows and bypasses capabilities already owned there.

Full review comments:

  • [P2] [P2] Preserve access to jobs beyond the first sidebar page — ui/src/pages/cron/view.tsx:81-85
    With 201 automations and the desktop sidebar expanded, this branch removes the paginated ListView. SidebarAutomations requests only limit=200, offset=0 and returns result.jobs; readCronInventory also slices its complete internal inventory to that requested page. Consequently the 201st job has no row or load-more control in this layout, and local filtering cannot discover it. Complete or paginate the sidebar inventory before making it the sole list.
    Confidence: 0.99
  • [P2] [P2] Retain the global Run history entry point — ui/src/pages/cron/view.tsx:81-85
    Opening Automations with an expanded desktop sidebar now skips ListView, which owns both ListTabs and the global RunsSection. The replacement sidebar offers job links and New automation only. Users can no longer select global Run history in this layout, including history for removed jobs; they must collapse the sidebar to recover it. Preserve the history navigation and content while removing duplicate job rows.
    Confidence: 0.99
  • [P2] [P2] Keep scheduler warnings and read recovery outside the hidden list — ui/src/pages/cron/view.tsx:83-89
    If the scheduler is disabled or cron.list fails, ListView currently renders the scheduler warning or error with Retry. The new overview renders only PanelEmptyState, while the sidebar catches inventory errors and turns them into an empty array. Thus a failed read looks like an empty installation, and a stopped scheduler loses its warning. Retain the existing status, error, and retry presentation independently of the job-row layout.
    Confidence: 0.99
  • [P2] [P2] Record selections made through the retained page list — ui/src/pages/cron/cron-page.tsx:157-164
    On a phone or with the sidebar collapsed, selecting job-42 calls createCronPage.selectJob without changing routeSearch. This effect therefore never records that selection. Leaving the section and returning cannot reopen job-42; if a different job URL was previously remembered, it can reopen that older job instead. Update section memory through the existing selection owner so both sidebar links and retained-list selections participate.
    Confidence: 0.98
  • [P2] [P2] Preserve the session scope when closing an automation — ui/src/pages/cron/cron-page.tsx:121-126
    For /cron?session=session-42&agent=writer, the PR intentionally retains the session-specific list. Opening one of its jobs and pressing Back now unconditionally replaces the URL with /cron and an empty query. setRouteSearch detects the removed session filter and reloads the unscoped inventory, so Back leaves the session the user was inspecting. Restrict query clearing to the job/create navigation being closed and retain the session query.
    Confidence: 0.98
  • [P2] [P2] Provide a keyboard focus destination in the new overview — ui/src/pages/cron/view.tsx:90-98
    Keyboard-activating Back from an automation detail prepares a return-focus request in CronView. Previously the mounted ListView supplied the originating row or search fallback; the new empty state supplies neither, and its New automation button has no focus registration. Removing the focused detail therefore leaves focus on BODY, reintroducing the behavior repaired in fix: preserve keyboard focus when navigating scheduled tasks #168732. Connect closing to an existing visible sidebar row or the new creation control through the current focus owner.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

  • Maintainer-authored draft: The live PR remains a MEMBER-authored draft at the reviewed head, with clean mergeability metadata; its complete body explicitly says screenshots, end-to-end validation, typechecks, and CI validation are unfinished. (adff61418ada)
  • Introduced change boundary: The pinned introduction replaces the desktop overview and adds filtering and section memory; the sidebar's existing inventory request and row navigation predate this PR. (ui/src/pages/cron/view.tsx:81, adff61418ada)
  • Sidebar inventory is bounded: The sidebar requests limit 200 at offset zero and discards pagination metadata; readCronInventory ultimately slices its canonical inventory to the requested page even when its internal fetch collected every row. (ui/src/lib/cron/inventory.ts:193, adff61418ada)
  • Overview owns more than job rows: ListView contains global Run history, scheduler-disabled warnings, error and notice banners, refresh, search, and pagination; the new empty-state branch renders none of these. (ui/src/pages/cron/view-list.tsx:118, adff61418ada)
  • Existing selection owner: The retained phone and collapsed-sidebar lists call selectJob without changing the URL, while the new memory writer observes only routeSearch; closePanel previously retained the session query. (ui/src/pages/cron/cron-page-state.ts:506, adff61418ada)
  • Earlier keyboard repair: fix: preserve keyboard focus when navigating scheduled tasks #168732 deliberately restored focus after Back and deletion; its authored focus handoff remains in the current view, but the new overview supplies no return target. (ui/src/pages/cron/view.tsx:61, b807fb5eef96)

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 740334c adds ui/src/pages/cron/cron-page.tsx:18 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 740334cfae6b; files: ui/src/pages/cron/cron-page.tsx)
  • Peter Steinberger: Raw commit 0f548ca adds ui/src/pages/cron/cron-page.tsx:21 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0f548caee9b8; files: ui/src/pages/cron/cron-page.tsx)
  • Pavel Zun: Raw commit b807fb5 adds ui/src/pages/cron/view.tsx:17 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b807fb5eef96; files: ui/src/pages/cron/view.tsx)

PR surface

Source +380. Total +380 across 10 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 10 389 9 +380
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 389 9 +380

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:

No label changes.

Label justifications:

  • P2: This useful navigation feature needs focused corrections to preserve existing automation workflows before merge.
  • 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 15, 2026, 6:04 PM ET / 23:04 UTC.

@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch from 795c353 to 301972b Compare November 16, 2026 07:05
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-07-automations-sidebar branch from adff614 to 646c112 Compare November 16, 2026 07:05
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch from 301972b to 32d8082 Compare November 16, 2026 16:08
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-07-automations-sidebar branch from 646c112 to c0a9a37 Compare November 16, 2026 16:08
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch from 32d8082 to dabd89e Compare November 16, 2026 18:11
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-07-automations-sidebar branch from c0a9a37 to 3b3483a Compare November 16, 2026 18:11
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch from dabd89e to e235fbb Compare November 16, 2026 22:53
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-07-automations-sidebar branch from 3b3483a to 0ba09bc Compare November 16, 2026 22:53
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch from e235fbb to 074a995 Compare November 17, 2026 00:43
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-07-automations-sidebar branch from 0ba09bc to c7d2fab Compare November 17, 2026 00:43
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch from 074a995 to 71f356d Compare November 17, 2026 18:31
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-07-automations-sidebar branch 2 times, most recently from 43633f9 to bbbc356 Compare November 17, 2026 19:22
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch from 71f356d to 227ef1e Compare November 17, 2026 19:22
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Nov 17, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch 2 times, most recently from 7114c78 to 4f44382 Compare November 17, 2026 21:56
@vyctorbrzezowski
vyctorbrzezowski changed the base branch from brzezowski/side-rail-06-rail-peek to main November 17, 2026 21:57
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-07-automations-sidebar branch from bbbc356 to 207dffe Compare November 17, 2026 21:57
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 17, 2026 21:57
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-07-automations-sidebar branch from 207dffe to dd91268 Compare November 17, 2026 22:02
vyctorbrzezowski and others added 10 commits November 17, 2026 15:04
…mation

While the Automations sidebar stands open beside the page, it lists every automation, so the page opens on an empty state with a centered New automation action instead of repeating the list. With the sidebar collapsed, on a phone, or for one session's automations, the page keeps its list.

Within a browser tab, returning to Automations reopens the automation left open there, and the sidebar keeps it selected. Closing the automation forgets it and returns to the empty state.
The Automations sidebar header gains a filter button like the Users one. Its popover filters by status (all, active or paused) and last activity (all, completed or error) and sorts by name, next activity or recent update; Reset appears once anything differs from the defaults, and the button shows a dot while it does. The filter lasts for the browser tab and applies to the rows already loaded.
A small section-navigation owner now keeps, per browser tab and Gateway, the page last opened from a section, and which section's sidebar stands open beside its page. Automations moves onto it; its own module keeps only the sidebar filter.
Closing an automation replaces the location with the empty Automations page, so the shared test context needs replace as well as navigate; without it the reconnect and conflict tests threw unhandled errors.
The Automations filter button and popover become a generic section filter that takes its pickers, filtered state and reset; Automations configures it with the same choices as before.
…ar in e2e tests

Beside the open Automations sidebar, /cron is an empty state. Tests of the table, its filters, tabs and Activity history collapse the sidebar to reach the list view. Tests that only need the create panel open it with ?new or the sidebar's New automation, and the direct-route CSS check waits for the empty state.
Choosing a second automation in the sidebar only moved the highlight: while the next route loaded, the page read its search as empty, took that for a return to Automations, and reopened the automation left open. The page now waits for the route's search instead of treating the loading route as empty.
Route data republishes the same search, and effects never compare, so each repeat ran the route handling again. A repeated ?new reopened the create panel and dropped the draft, and a repeated ?job= right after Back re-recorded the automation just closed, so it reopened. The page now reacts only when its search really changes.
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-07-automations-sidebar branch from dd91268 to 6491440 Compare November 17, 2026 22:04
@vyctorbrzezowski
vyctorbrzezowski merged commit a749c7f into main Nov 17, 2026
30 of 32 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/side-rail-07-automations-sidebar branch November 17, 2026 22:09
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged as a749c7f 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
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: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: L 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