Skip to content

fix(ui): open the Automations filter as a positioned sidebar menu, like Users - #199828

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/side-rail-08-dashboards-sidebar
Nov 17, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/side-rail-08-dashboards-sidebar

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The Automations sidebar filter rendered its popover inside the panel header, so it inherited the header's spacing and did not match the Users (People) filter.

User Impact

The Automations filter opens as a positioned sidebar menu, exactly like the Users filter: the header uses the same filter button, and the popover renders with the other sidebar menus.

Why This Change Was Made

One filter pattern for every section sidebar, owned by the sidebar menus.

Evidence

  • pnpm tsgo:ui and the UI test typecheck projects pass at this PR's head.
  • The unit tests of the files this PR touches pass at its head.

Update: Dashboards stays a gallery

This PR used to give Dashboards its own sidebar (list, filter, empty state, rows). The product owner decided Dashboards stays a full-width gallery with no section sidebar, so those commits were dropped from the series and this PR now carries only the shared filter change above. See #199825 for the gallery's new card pin and empty state.

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

Maintainer verification

Moved the unchanged automationsFiltered predicate into the module that owns the filter state. The always-loaded sidebar header now imports that small owner and uses the existing eager “Filters” label. The optional filter UI and its full Automation text catalog no longer enter Chat/New Session boot through that header. This uses the existing lazy menu boundary; no new loader or cache was added.

The complete stack's follow-up comparison removes 9,362 gzip bytes from Chat boot and 9,496 from New Session boot relative to the reviewed candidate before this cleanup. The focused UI tests (21 cases), browser flows (10 cases), type checks and independent review passed; the design and filter behavior are unchanged.

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,324 B 575,764 B
Chat boot JS +3,553 B 1,329,133 B
New Session boot JS +3,444 B 820,076 B

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

The filter-state extraction removes the unnecessary eager filter/locale loading, so this layer also reduces the preceding layer’s temporary JS allocation.

Maintainer validation

Reviewed and rebased this layer on predecessor a749c7fffc6086602fc47aa56441ce48e78a3683; current head is 88f2b8c3185bdc9edb952b16ccafe6f7b166de9f. 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: L 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 adds dashboard sidebar filters, section memory, revised rows, and an empty landing page beside the expanded sidebar.

Example: Choose author Mira and Title A–Z in the Dashboards sidebar.

  • Before: The sidebar shows its loaded dashboards in their existing order without an author filter.
  • After: The sidebar shows Mira’s loaded dashboards alphabetically.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The feature has established value and reuses existing owners, but two source-backed navigation defects block readiness and changed-behavior proof is absent.
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: The Dashboards sidebar lacks author filtering, ordering controls, remembered navigation, and readable section-specific rows.
Reason: The maintainer author also owns prior merged gallery work, establishing direction for this coherent sidebar extension without another product approval.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep this maintainer-authored draft open; the sidebar direction is established, but its replacement of the gallery has two navigation gaps.

Priority: P2
Reviewed head: 5bfcf46e226cfd27faae86176e7193aab79c784d

Before merge

  • Remember an explicit Dashboard destination (P2) - For a session with hasBoard=true and boardFace="chat", the ordinary sidebar row links to Chat, and this new handler records that Chat URL and route. Returning to Dashboards then immediately replaces the landing page with Chat instead of reopening the dashboard. This is a supported state: DashboardEntry explicitly requests face="dashboard", and its navigation test uses boardFace="chat". Build the section’s selection and remembered destination as explicit Dashboard navigation without changing the session’s stored default.
  • Preserve visible access to archived dashboards (P2) - This branch suppresses the gallery whenever the desktop sidebar is expanded, but the two inventories differ: dashboardSessionListQuery includes archived sessions, while SidebarNavigationCatalog overrides archivedFilter to "active". An archived dashboard previously selectable on this page now disappears from both visible lists, with only an unrelated New session action in the content area. Preserve a visible gallery/archive entry point or otherwise retain access to those boards before treating the sidebar as a complete replacement.

Findings

  • [P2] Remember an explicit Dashboard destination — ui/src/components/app-sidebar-pages.tsx:200-203
  • [P2] Preserve visible access to archived dashboards — ui/src/pages/dashboards/view.tsx:592-595

Tests

  • Missing end-to-end proof: Provide redacted before/after browser captures and runtime results for desktop filtering, dashboard selection and return, archived-dashboard access, collapsed/mobile gallery behavior, and both shared section menus in Chromium and WebKit; no regression test execution for the new behavior is recorded.
Agent review details

How this fits together

The Control UI projects the managed dashboard session catalog into sidebar rows, builds session navigation targets, and remembers the last section destination within the browser tab.

flowchart LR
  A[Gateway session catalog] --> B[Managed dashboard query]
  B --> C[Sidebar author and ordering filters]
  C --> D[Dashboard sidebar rows]
  D --> E[Session navigation]
  E --> F[Section location memory]
  B --> G[Dashboard landing page]
Loading

Technical review

Best possible solution:

Use explicit dashboard navigation for sidebar selection and section memory, and retain a visible path to dashboards excluded from the active-only sidebar.

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

Source establishes both triggers: an archived dashboard is absent from the replacement sidebar, and a dashboard-bearing row with boardFace=chat produces a remembered Chat destination; neither was executed during this read-only review.

Is this the best way to solve the issue?

Reusing the managed catalog, shared menu owner, and section navigation is appropriate, but the sidebar must preserve the gallery’s dashboard-opening behavior and inventory access.

Full review comments:

  • [P2] Remember an explicit Dashboard destination — ui/src/components/app-sidebar-pages.tsx:200-203
    For a session with hasBoard=true and boardFace="chat", the ordinary sidebar row links to Chat, and this new handler records that Chat URL and route. Returning to Dashboards then immediately replaces the landing page with Chat instead of reopening the dashboard. This is a supported state: DashboardEntry explicitly requests face="dashboard", and its navigation test uses boardFace="chat". Build the section’s selection and remembered destination as explicit Dashboard navigation without changing the session’s stored default.
    Confidence: 0.96
  • [P2] Preserve visible access to archived dashboards — ui/src/pages/dashboards/view.tsx:592-595
    This branch suppresses the gallery whenever the desktop sidebar is expanded, but the two inventories differ: dashboardSessionListQuery includes archived sessions, while SidebarNavigationCatalog overrides archivedFilter to "active". An archived dashboard previously selectable on this page now disappears from both visible lists, with only an unrelated New session action in the content area. Preserve a visible gallery/archive entry point or otherwise retain access to those boards before treating the sidebar as a complete replacement.
    Confidence: 0.91

Overall correctness: patch is incorrect
Overall confidence: 0.92

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

Acceptance criteria:

  • pnpm test ui/src/components/app-sidebar-rail.test.ts ui/src/pages/dashboards/view.test.tsx ui/src/pages/dashboards/dashboards-page.test.tsx
  • pnpm tsgo:ui
  • pnpm check:changed

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit cde34f1 adds ui/src/pages/dashboards/dashboard-entry.tsx:108 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: cde34f111b4d; files: ui/src/pages/dashboards/dashboard-entry.tsx)

PR surface

Source +270, Tests +2, Other +10. Total +282 across 17 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 14 511 241 +270
Tests 2 17 15 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 29 19 +10
Total 17 557 275 +282

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 is a useful navigation improvement with limited dashboard discoverability and reopen defects.
  • 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-07-automations-sidebar branch from adff614 to 646c112 Compare November 16, 2026 07:05
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-08-dashboards-sidebar branch from 5bfcf46 to a18e86c 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-07-automations-sidebar branch from 646c112 to c0a9a37 Compare November 16, 2026 16:08
@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-07-automations-sidebar branch from c0a9a37 to 3b3483a Compare November 16, 2026 18:11
@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-07-automations-sidebar branch from 3b3483a to 0ba09bc Compare November 16, 2026 22:53
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-08-dashboards-sidebar branch from 3cd0b20 to 7bba541 Compare November 16, 2026 22:53
@vyctorbrzezowski vyctorbrzezowski changed the title feat(ui): list pinned dashboards in the Dashboards sidebar fix(ui): open the Automations filter as a positioned sidebar menu, like Users Nov 16, 2026
@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-08-dashboards-sidebar branch 2 times, most recently from ffc037b to 61a7cd2 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-08-dashboards-sidebar branch from 764a603 to 3f97e86 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-07-automations-sidebar branch 3 times, most recently from dd91268 to 6491440 Compare November 17, 2026 22:04
Base automatically changed from brzezowski/side-rail-07-automations-sidebar to main November 17, 2026 22:09
vyctorbrzezowski and others added 3 commits November 17, 2026 15:09
…ke Users

The Automations filter rendered its popover inside the panel header, which inherited its spacing. It now registers as a positioned sidebar menu like the Users filter: the header uses the same filter button, and the popover renders with the other sidebar menus, so it matches Users exactly.
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-08-dashboards-sidebar branch from 3f97e86 to 88f2b8c Compare November 17, 2026 22:09
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 17, 2026 22:09
@vyctorbrzezowski
vyctorbrzezowski merged commit e69daeb into main Nov 17, 2026
98 of 103 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/side-rail-08-dashboards-sidebar branch November 17, 2026 22:11
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged as e69daeb 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
…ke Users (openclaw#199828)

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