Repository navigation
fix(ui): let each page decide its sidebar - #199831
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 derives sidebar visibility from the current page and moves section-sidebar presence reporting into the shell. Example: Return to Usage through browser history after opening an automation with ?job=daily-summary.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this maintainer-authored draft open: the sidebar ownership change is useful, but two navigation defects need correction. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI shell combines route identity, desktop collapse preferences, and drawer state to lay out navigation; sidebar components render section lists, and listing pages consume their visibility. flowchart LR
A[Navigation input] --> B[Route state]
B --> C[Application shell]
D[Collapse preference and viewport] --> C
C --> E[Rail and section sidebar]
C --> F[Listing page presentation]
Technical reviewBest possible solution: Keep visibility in the existing shell, reset section memory only when reselecting the active section, and let page hiding override responsive desktop expansion. Do we have a high-confidence way to reproduce the issue? The pinned stack exposes the stale-view and responsive-handoff paths directly in source; no target code was executed and no current-main runtime reproduction is claimed. Is this the best way to solve the issue? Using the existing shell to derive visibility removes mount-order reporting and is an appropriate small fix once the two navigation conditions are corrected. 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. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +36, Tests +15. Total +51 across 14 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:06 PM ET / 23:06 UTC. |
cb98682 to
d2106ec
Compare
1866410 to
07b8ade
Compare
d2106ec to
11c25f1
Compare
07b8ade to
e0a006e
Compare
11c25f1 to
c3d4c50
Compare
e0a006e to
0054f09
Compare
c3d4c50 to
da9382a
Compare
0054f09 to
bd04a25
Compare
da9382a to
4e8bfa3
Compare
bd04a25 to
e510a5d
Compare
4e8bfa3 to
c9db02e
Compare
e510a5d to
a1bbb04
Compare
A terminal opened from a Sessions row is a conversation, but the page-decides-its-sidebar change left the terminal route without a sidebar, so the row lost its current mark and the page reserved an empty collapsed-chrome band.
…tests Each page now decides its sidebar and navigation never changes the saved collapse choice: - A tapped rail pin navigates without closing the sidebar, so the touch pin test stops expecting a collapse. - New session shows the Sessions drawer on a phone, where tapping the agent avatar opens the agent menu, so the Systems gutter test goes straight to the session row. - A conversation always shows the Sessions sidebar, so the Team warm reload persists and restores the Sessions view and no longer drives the People list beside the chat. - A page without a sidebar offers no expand control, so the legacy Mac app has no lowered controls on Memory import; that test is removed.
Letting each page decide its sidebar left the Sessions and Worktrees pages with only the rail, so the Sessions list, its owner filter and its rows were gone there. The Sessions page expands that list and sits beside it.
Leaving a page without a sidebar for one with a sidebar revealed the sidebar with the collapse toggle's clip-path motion. The shell now marks that open and drops the transition until the next collapse change, so only the explicit toggle animates, as closing already did.
334a514 to
0b48f7d
Compare
|
Merged as 3481cbc 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
Pages without a list of their own (Usage, Knowledge and other plugin pages) still show a sidebar, the ⋯ item reads as current when it is not, and opening Automations flashes its old list page for a frame.
User Impact
Each page decides its sidebar: pages without one show only the rail and hide it at once; clicking the current section returns to its start; ⋯ is active only while its menu is open; Automations and Dashboards open without the flash.
Why This Change Was Made
Moves the which-sidebar decision to the page's route and makes the shell the owner of whether a section's sidebar stands beside its page, so the page knows before its first frame. The saved collapse preference is never changed by navigation.
Evidence
Screenshots come from the Control UI mock at the end of the series, so the after image can show later parts too.
Usage before and after: only the rail beside it (left: main, right: after):
pnpm tsgo:uipasses at this PR's head.Update: Dashboards stays a gallery
Dashboards is now a page without a sidebar, like Usage, so the rule that kept the Dashboards list beside a dashboard opened from it is gone.
Side rail series, part 10 of 16. Stacked on #199830; 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:
Update: no opening motion after a page without a sidebar
Going from a page without a sidebar (Dashboards, for example) to a page with one opened the sidebar with the collapse toggle's clip-path animation. It now appears at once, like closing already did; the explicit collapse/expand toggle keeps its motion.
sidebar-rail-peeke2e covers it: no.shell-navclip-path transition on Dashboards → Automations, and one on the collapse toggle. It fails without the fix.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.
Maintainer validation
Reviewed and rebased this layer on predecessor
275ea70b300f5c5987ba34179f436a6b0fb86a2d; current head is0b48f7d5a5ce46801b1890c7e72c9f002ccdb610. 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.Route and plugin selection share the existing commit observer. Focused plugin-reconnect and real-Gateway roster/Back E2Es passed with assertions intact. An earlier CI timing failure was not reproduced; no guessed wait was added.
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.