Repository navigation
feat(ui): list automations in the Automations sidebar - #199827
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 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.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e693b3323e90. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +380. Total +380 across 10 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: No label 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 15, 2026, 6:04 PM ET / 23:04 UTC. |
795c353 to
301972b
Compare
adff614 to
646c112
Compare
301972b to
32d8082
Compare
646c112 to
c0a9a37
Compare
32d8082 to
dabd89e
Compare
c0a9a37 to
3b3483a
Compare
dabd89e to
e235fbb
Compare
3b3483a to
0ba09bc
Compare
e235fbb to
074a995
Compare
0ba09bc to
c7d2fab
Compare
074a995 to
71f356d
Compare
43633f9 to
bbbc356
Compare
71f356d to
227ef1e
Compare
7114c78 to
4f44382
Compare
bbbc356 to
207dffe
Compare
207dffe to
dd91268
Compare
…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.
dd91268 to
6491440
Compare
|
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. |
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]>
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):
pnpm tsgo:uipasses at this PR's head.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:
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.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 is695494bdce379fa61d863a79f1ef4c012194e5f5. 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.