Skip to content

improve(ui): read Automations sidebar rows like Sessions - #199829

Merged
vyctorbrzezowski merged 5 commits into
mainfrom
brzezowski/side-rail-09-automations-rows
Nov 17, 2026
Merged

vyctorbrzezowski merged 5 commits into
mainfrom
brzezowski/side-rail-09-automations-rows

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Automation rows in the sidebar are hard to scan, and the agent selector sits in a page header that the sidebar makes redundant.

User Impact

Rows show the next run and cadence ("Today 5:05 PM · Every 20 minutes", "Paused · Every 5 hours") with a failure dot; Active and Paused are collapsible groups in the Sessions heading style; the agent moves into the filter, defaulting to the current agent; the page header steps aside beside the sidebar.

Why This Change Was Made

Cadence words reuse the existing unit formatter.

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 8 of 16. Stacked on #199828; 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:

  • test(ui): close the Automations sidebar to reach the agent scope in the Inbox scope e2e
  • test(ui): return to Sessions from the rail in the Inbox scope e2e

Maintainer verification

Corrected cadence labels for nonuniform cron steps. Expressions such as */7 * * * * and 0 */5 * * * now retain their literal expression instead of claiming a uniform interval; the scheduler is unchanged. Added these two cases to the existing presenter test. The cases failed before the correction and passed afterward, alongside the existing uniform-step cases. Independent review 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,338 B 575,778 B
Chat boot JS +3,567 B 1,329,147 B
New Session boot JS +3,458 B 820,090 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 e69daeb6bc3db118d91ef0f354fdc82a5ffb5f87; current head is f0c005c235ae62a0f057d9a854dd19a04dfc309a. 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 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.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: M labels Nov 15, 2026
@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 restyles automation rows, adds an agent filter and collapsible groups, and hides redundant page navigation beside the sidebar.

Example: An enabled automation runs every 20 minutes and next runs today at 5:05 PM.

  • Before: The sidebar shows the next timestamp beside the complete schedule description.
  • After: The byline reads “Today 5:05 PM · Every 20 minutes,” with a failure dot when applicable.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful, focused direction, but the cadence formatter has a blocking semantic defect and the visual behavior remains unproven.
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) 2 actionable review findings remain.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Automation rows are difficult to scan, and page-level navigation duplicates the expanded sidebar.
Reason: The maintainer-authored direction improves scanability using existing UI owners without adding persistence or runtime services.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-authored draft offers a useful sidebar improvement, but introduces misleading cadence labels and a smaller disclosure defect.

Priority: P2
Reviewed head: 119463c3b9a2db6ff5cd4047ffcb2f1694685165

Before merge

  • Preserve expressions for cron steps that are not uniform intervals (P2) - The wildcard-step branches assume a cron field step is an elapsed interval. For */7 * * * *, runs occur at minutes 00, 07, …, 56, then 00: the boundary gap is four minutes, but the sidebar says “Every 7 minutes.” Likewise, 0 */5 * * * has a four-hour gap from 20:00 to midnight while displaying “Every 5 hours.” Restrict these labels to steps that divide the enclosing field evenly, and retain the raw expression otherwise.

Findings

  • [P2] Preserve expressions for cron steps that are not uniform intervals — ui/src/lib/presenter.ts:117-122
  • [P3] Allow the Paused heading to collapse under the Paused filter — ui/src/components/app-sidebar-automations.tsx:193-194

Tests

  • Missing end-to-end proof: Provide sanitized before/after browser captures and real-Gateway results for cadence rows, agent filtering, disclosures and sidebar-dependent navigation, including layout-shift observations at 400, 820 and 1280 px; the added unit test has no supplied execution result.
Agent review details

How this fits together

The Control UI reads compact jobs from the existing cron inventory, filters and formats sidebar rows, and navigates to the existing automation editor.

flowchart LR
  A[Gateway cron inventory] --> B[Shared inventory reader]
  B --> C[Automations sidebar]
  D[Sidebar filters] --> C
  E[Schedule presenter] --> C
  C --> F[Automation detail page]
Loading

Technical review

Best possible solution:

Keep the existing sidebar and presenter owners, preserve raw expressions for non-uniform cron steps, and let disclosure state control the Paused group.

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

Source establishes both triggers: */7 * * * * produces “Every 7 minutes” despite the four-minute hour-boundary gap, and the Paused filter forces its disclosure open.

Is this the best way to solve the issue?

The existing sidebar, shared filter menu and localized presenter are appropriate owners, but interval abbreviations must preserve cron semantics.

Full review comments:

  • [P2] Preserve expressions for cron steps that are not uniform intervals — ui/src/lib/presenter.ts:117-122
    The wildcard-step branches assume a cron field step is an elapsed interval. For */7 * * * *, runs occur at minutes 00, 07, …, 56, then 00: the boundary gap is four minutes, but the sidebar says “Every 7 minutes.” Likewise, 0 */5 * * * has a four-hour gap from 20:00 to midnight while displaying “Every 5 hours.” Restrict these labels to steps that divide the enclosing field evenly, and retain the raw expression otherwise.
    Confidence: 0.99
  • [P3] Allow the Paused heading to collapse under the Paused filter — ui/src/components/app-sidebar-automations.tsx:193-194
    With the status filter set to Paused, the open prop remains true because it ORs pausedOpen with the filter value. Clicking the newly rendered disclosure toggles the signal but never hides the rows or changes aria-expanded. Initialize expansion separately from the value controlled by the disclosure.
    Confidence: 1

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

Provenance checked

Testing

Proof path: unit tests only.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/lib/presenter.test.ts
  • git diff --check
  • Verify that */7 * * * * and 0 */5 * * * retain their expressions while */20 * * * * and 0 */6 * * * retain their existing interval labels.

What I checked:

  • Pinned change and current state: The reviewed head remains a maintainer-authored draft targeting the preceding sidebar branch; GitHub reports it mergeable and clean. (119463c3b9a2)
  • Incorrect interval descriptions: The new presenter translates every wildcard minute or hour step into an interval, including steps that do not divide the enclosing hour or day. (ui/src/lib/presenter.ts:117, 119463c3b9a2)
  • Paused disclosure ignores its toggle: While status is paused, the group's open expression is always true regardless of pausedOpen. (ui/src/components/app-sidebar-automations.tsx:193, 119463c3b9a2)
  • Stacked prerequisite: The open prerequisite fix(ui): open the Automations filter as a positioned sidebar menu, like Users #199828 supplies the preceding sidebar work; this PR's introduced range contains the automation-row refinements. (5bfcf46e226c)
  • Current-main context and ownership: Current main retains the automation page header; merged history identifies Vyctor's compact automation UI work and Peter's Solid owner and lifecycle refactors. (ui/src/pages/cron/cron-page.tsx:87, e693b3323e90)
  • Validation evidence: The full PR body explicitly defers screenshots, end-to-end testing and type checks; both discussion comments are review-status messages, and successful checks cover dispatch, labeling, scan scope and actionlint rather than the changed UI. (119463c3b9a2)

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 740334c adds ui/src/pages/cron/cron-page.tsx:77 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)

PR surface

Source +152, Tests +18, Other +94. Total +264 across 11 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 9 255 103 +152
Tests 1 18 0 +18
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 95 1 +94
Total 11 368 104 +264

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.

Review metrics

Metric Value Why it matters
Agent filter 1 new transient picker Sidebar visibility now defaults to the current agent, with All agents available explicitly; no persisted setting or schema is added.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded automation-navigation improvement with an incorrect schedule description; scheduler execution itself is unchanged.
  • 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:05 PM ET / 23:05 UTC.

@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-08-dashboards-sidebar branch from 5bfcf46 to a18e86c Compare November 16, 2026 07:05
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-09-automations-rows branch from 119463c to 548441b Compare November 16, 2026 07:05
@openclaw-barnacle openclaw-barnacle Bot removed the scripts Repository scripts label Nov 16, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-08-dashboards-sidebar branch from a18e86c to e184211 Compare November 16, 2026 16:08
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-09-automations-rows branch 2 times, most recently from 8a0f2ca to 5f2f3c8 Compare November 16, 2026 16:34
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-08-dashboards-sidebar branch from 5d2720e to 3cd0b20 Compare November 16, 2026 18:12
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-09-automations-rows branch from 5f2f3c8 to bd90070 Compare November 16, 2026 18:12
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-08-dashboards-sidebar branch from 3cd0b20 to 7bba541 Compare November 16, 2026 22:53
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-09-automations-rows branch from bd90070 to fc8667c Compare November 16, 2026 22:53
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-08-dashboards-sidebar branch from 7bba541 to ffc037b Compare November 17, 2026 00:43
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-09-automations-rows branch from fc8667c to db4f4a1 Compare November 17, 2026 00:43
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-08-dashboards-sidebar branch from ffc037b to 61a7cd2 Compare November 17, 2026 18:31
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-09-automations-rows branch 2 times, most recently from 6bcb924 to 1fc33ea Compare November 17, 2026 18:52
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-08-dashboards-sidebar branch from 764a603 to 3f97e86 Compare November 17, 2026 19:22
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-09-automations-rows branch from 1fc33ea to 3838bef 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-08-dashboards-sidebar branch from 3f97e86 to 88f2b8c Compare November 17, 2026 22:09
@vyctorbrzezowski
vyctorbrzezowski changed the base branch from brzezowski/side-rail-08-dashboards-sidebar to main November 17, 2026 22:10
vyctorbrzezowski and others added 5 commits November 17, 2026 15:11
… filter

Rows are compact two-line entries: the name, then the next run (the time today, the date later) and a short cadence (Hourly, Daily, Weekdays, Weekly, Monthly, Every 6h, Once; other cron expressions as written). A failed or auto-disabled automation carries a red dot instead of a word. Active and Paused are sentence-case headings that both collapse.

The filter gains an Agent choice that defaults to the agent selected now. Beside the open sidebar the page drops its section header and the All automations back link, so an open automation is the whole page.
Active and Paused use the Sessions sidebar's group heading: uppercase, muted, with the chevron leading. Each row is a title in the text color over a quieter byline, with room between rows. The byline reads "Today 5:05 PM" for a run later today and "Paused" for a paused automation, and intervals are spelled out ("Every 20 minutes") with the existing unit formatter.
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-09-automations-rows branch from 3838bef to f0c005c Compare November 17, 2026 22:11
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 17, 2026 22:11
@vyctorbrzezowski
vyctorbrzezowski merged commit f9b458f into main Nov 17, 2026
104 of 108 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/side-rail-09-automations-rows branch November 17, 2026 22:12
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged as f9b458f 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
…9829)

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