Repository navigation
refactor(ui): move sidebar menus into a reactive controller - #112940
Conversation
|
@clawsweeper re-review The prior exact-head review lease expired without replacing its started placeholder. Please run one fresh review for current head 0ee50ea. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer decision on the ClawSweeper rank-up moves generated by exact-head review run https://github.com/openclaw/clawsweeper/actions/runs/29987209854:
The ClawSweeper generation artifact reports no review findings and clears security. Durable comment publication is delayed behind the current exact-review publication backlog; this records the response to every generated rank-up move before landing rather than merging past them silently. |
|
Merged via squash.
|
PR 5 of the sidebar-flattening series. Prior work: #112753, #112809, #112817, #112853, and #112923.
What Problem This Solves
The Control UI sidebar still carried popup ownership and menu rendering in a dedicated inheritance layer, keeping the sidebar class tower deeper than necessary.
Why This Change Was Made
Moves menu state, lifecycle cleanup, and renderer wiring into
SidebarMenusController, reparents session narration directly onto session navigation, and deletes the old menus element layer without compatibility shims. The controller owns the existing catalog-menu helper; organizer drag state is read directly fromSessionOrganizerControllerinstead of preserving forwarding getters.User Impact
None. This is a behavior-neutral ownership refactor.
Evidence
@statefields update through the controller helper, which callshost.requestUpdate(); trigger anchors, preload timers, andsessionMenuWorkVersionremain non-reactive.app-sidebar.test.tsDOM suite, including transient replacement guards, session/group/sort menus, footer agent menu, and pinned-item customization.app-sidebar.test.ts,session-menu.test.ts,session-menu-work.test.ts, andcatalog-session-menu.test.ts.check-changedplan passed on Blacksmith Testbox run 29983608676, including format, i18n, typechecks, and lint.