Repository navigation
feat(ui): give each rail section its own sidebar - #199825
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: blocked before merge. What this changesThis PR replaces the Pages sidebar with a rail menu and adds dedicated Dashboards, Users, Automations, and Customize sidebars. Example: Open Customize and choose Skills.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 9 items remain Keep this maintainer-authored draft open: it adds useful section navigation absent from main, but saved-pin compatibility, automation behavior, and incomplete consumer updates need repair. Priority: P2 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe Control UI sidebar consumes shell routes, saved personal shortcuts, and Gateway catalogs, then renders navigation links and section lists through the existing sidebar owner. flowchart LR
Routes[Shell routes] --> Owner[Sidebar owner]
Preferences[Saved shortcuts] --> Owner
Gateway[Gateway catalogs] --> Lists[Section lists]
Owner --> Rail[Rail and Pages menu]
Owner --> Lists
Rail --> Navigation[Shell navigation]
Lists --> Navigation
Technical reviewBest possible solution: Keep the existing sidebar and catalog owners, preserve saved shortcuts independently of menu visibility, and repair the new lists and navigation handlers without adding another state manager. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the pagination, error-handling, repeated-creation, and consumer-cutover failures; runtime reproduction was not performed. Is this the best way to solve the issue? The section split fits the existing architecture, but menu visibility must not redefine persisted preferences, and reads and creation actions must retain their existing recovery and lifecycle contracts. 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:
PR surfaceSource +607, Tests +93. Total +700 across 69 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:05 PM ET / 23:05 UTC. |
7a26c75 to
e0655e0
Compare
4e4d523 to
e9cd019
Compare
e9cd019 to
774c07a
Compare
878c01c to
71c8764
Compare
e6e7635 to
b53be76
Compare
492b611 to
932a889
Compare
b095c2c to
bb87370
Compare
932a889 to
a4e10ee
Compare
The gallery ran edge to edge beside the rail. It now sits in the same 1120px SettingsPage column as Usage, and its header follows that width.
bb87370 to
e861165
Compare
Give each navigation section its own sidebar and preserve the approved Dashboard gallery. Share the existing route/commit observer, retain snapshot isolation and correct navigation setup in the plugin reconnect and Inbox scope tests. Focused types, lint, controller guard, 263 owner cases and eight relevant browser E2E cases passed. The maintainer approved CI bypass after known PR-caused failures were repaired. The unrelated owner-approval test timing issue is tracked separately in openclaw#200810. Co-authored-by: Vyctor H. Brzezowski <[email protected]>
…ndow (#203349) ## Problem `ui/src/e2e/route-asset-requests.e2e.test.ts` "bounds skills ready-window asset requests" fails intermittently on slow CI runners with `expected 30 to be less than or equal to 28`. It hit unrelated PRs (#203126, #203308) and scheduled `main` (6577f41; the 7 runs after it passed). ## Root cause No commit added a Skills first-visit chunk. The 30 assets are the same 28 plus `app-sidebar-customize.js` and `presentation.js`: the Customize sidebar, which every Plugins-hub page shows, including Skills (`ui/src/app-navigation.ts:76`, since #199825). It loads lazily (`ui/src/components/app-sidebar-owner.tsx:72`) after the Skills page module arrives (about 560 ms in). On a fast CPU the page reports ready first (28 assets). On a slow runner, rendering the skill rows takes longer than the two sidebar files take to load, so they finish inside the ready window (30 assets). Keeping 28 needs a chunking change, and each option costs elsewhere: `presentation.tsx` is shared by about 16 chunks (chat cards, command palette). Moving it into `deferred-ui-support` adds bytes to Chat startup. Moving it into catalog or hub chunks makes chat load catalog code. Loading the sidebar earlier makes 30 constant. ## Fix Raise the Skills ready-window limit to 30 with the reason in a comment. This is the same race #194827 accounted for with its Settings sidebar on `skill-settings` (31). No shipped bytes change. ## Risk On fast runners the count stays 28, so the limit has 2 slots of slack there: a real regression of 2 assets on the Skills ready path would pass on a fast runner. ## Evidence - Before, 4x CPU throttle: 28 assets (no reproduction). Before, 10x CPU throttle: 30 assets, the same list as CI; the test fails as in CI. - After, 10x CPU throttle: 30 ≤ 30, pass. All four route cases pass at normal speed. - oxfmt and oxlint on the changed file. ## Approval This raises a performance budget. Maintainer approval (Ayaan, 2026-11-22): "Approved, we can merge past red CI if we can prove we didn't cause it." Co-authored-by: Ayaan Zaidi <[email protected]>
…ndow (openclaw#203349) ## Problem `ui/src/e2e/route-asset-requests.e2e.test.ts` "bounds skills ready-window asset requests" fails intermittently on slow CI runners with `expected 30 to be less than or equal to 28`. It hit unrelated PRs (openclaw#203126, openclaw#203308) and scheduled `main` (b8e0d81; the 7 runs after it passed). ## Root cause No commit added a Skills first-visit chunk. The 30 assets are the same 28 plus `app-sidebar-customize.js` and `presentation.js`: the Customize sidebar, which every Plugins-hub page shows, including Skills (`ui/src/app-navigation.ts:76`, since openclaw#199825). It loads lazily (`ui/src/components/app-sidebar-owner.tsx:72`) after the Skills page module arrives (about 560 ms in). On a fast CPU the page reports ready first (28 assets). On a slow runner, rendering the skill rows takes longer than the two sidebar files take to load, so they finish inside the ready window (30 assets). Keeping 28 needs a chunking change, and each option costs elsewhere: `presentation.tsx` is shared by about 16 chunks (chat cards, command palette). Moving it into `deferred-ui-support` adds bytes to Chat startup. Moving it into catalog or hub chunks makes chat load catalog code. Loading the sidebar earlier makes 30 constant. ## Fix Raise the Skills ready-window limit to 30 with the reason in a comment. This is the same race openclaw#194827 accounted for with its Settings sidebar on `skill-settings` (31). No shipped bytes change. ## Risk On fast runners the count stays 28, so the limit has 2 slots of slack there: a real regression of 2 assets on the Skills ready path would pass on a fast runner. ## Evidence - Before, 4x CPU throttle: 28 assets (no reproduction). Before, 10x CPU throttle: 30 assets, the same list as CI; the test fails as in CI. - After, 10x CPU throttle: 30 ≤ 30, pass. All four route cases pass at normal speed. - oxfmt and oxlint on the changed file. ## Approval This raises a performance budget. Maintainer approval (Ayaan, 2026-11-22): "Approved, we can merge past red CI if we can prove we didn't cause it." Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Every rail section opens the same Sessions sidebar, so Dashboards, Users, Automations and Customize have no list of their own beside their pages.
User Impact
Pages open from a rail menu (⋯). Dashboards, Users (with Activity), Automations and Customize each show their own sidebar, however their page is reached.
Why This Change Was Made
Introduces per-section sidebars and the pages menu; later PRs in this series fill each section's list.
Evidence
Screenshots come from the Control UI mock at the end of the series, so the after image can show later parts too.
Dashboards before and after (left: main, right: after):
pnpm tsgo:uipasses at this PR's head.dashboard-websiteandsidebar-customizationUI e2e pass at this head.Update: Dashboards stays a gallery
Dashboards no longer gets a section sidebar. It stays the gallery (grid or list, search, author filter, display menu), now held in the same 1120px page column as Usage, and the rail's pages menu still opens it.
Side rail series, part 4 of 16. Stacked on #199824; 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.
Removed the retired Pages-session CSS selectors and their obsolete synthetic test variant; Pages no longer renders those session rows. The retained owner-chip and interaction coverage passed 76 browser tests and 8 E2E cases. The highest-CSS later layer was measured at 1,739,930 raw bytes and 337,105 gzip bytes, below the unchanged caps.
Landing validation
Integrated the preceding rail layer while preserving this layer's production change and original human authors. Repaired the stale snapshot fields and benchmark routes, and kept direct-entry and menu-entry Customize coverage distinct.
All currently visible PR-caused CI failures are fixed in
af92df120bcca7deb6187c18f2a24d6b9c9c6eeb:The controller guard, UI types, 263 focused owner cases and eight relevant browser E2E cases passed after these repairs. Focused lint, formatting and diff checks passed. Fresh independent P0–P2 review found no actionable issue in the reactive/reconnect correction.
The owner-approval failure is in an unchanged, isolated main test/owner/protocol path. Its synchronization fix is separate: #200810. It is not a blocker for this navigation change.
The maintainer authorized CI bypass after resolving the visible failures. Hosted CI on the corrected head is still running; these local results are not a claim that full hosted CI has passed.