Skip to content

refactor(ui): split app sidebar responsibilities - #108422

Merged
steipete merged 2 commits into
mainfrom
codex/refactor-app-sidebar
Jul 15, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/refactor-app-sidebar

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Control UI sidebar had grown into a 3,000-line component that mixed stable element inputs, session data synchronization, navigation, mutations, grouping, popup ownership, and presentation. That made routine sidebar changes harder to review and kept the file on the max-lines grandfather list.

Why This Change Was Made

Split the sidebar into focused abstract layers for its stable contract, session data, navigation, mutations, grouping, and menus, leaving the custom element as the presentation shell. Existing behavior remains on the same custom element, including the newly landed cloud-worker reclaim flow; no compatibility shim or duplicate path was added.

User Impact

No user-visible or visual change. Maintainers get smaller ownership surfaces, clearer lifecycle and mutation boundaries, and removal of the sidebar's max-lines exemption.

Evidence

  • pnpm test ui/src/components/app-sidebar.test.ts — 78 passed, including cloud-worker reclaim.
  • pnpm test ui/src/e2e/sidebar-customization.e2e.test.ts — 8 passed in Chromium.
  • UI tsgo, targeted oxlint, oxfmt --check, and max-lines ratchet passed.
  • pnpm build passed, including Control UI build and performance budgets.
  • Fresh branch autoreview: no accepted or actionable findings.
  • Visual evidence not applicable: rendering and styling are unchanged.

AI-assisted: yes.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Jul 15, 2026
@steipete steipete self-assigned this Jul 15, 2026
@steipete
steipete force-pushed the codex/refactor-app-sidebar branch from 81463fa to 8f9d41c Compare July 15, 2026 22:44
@steipete
steipete merged commit dc7f167 into main Jul 15, 2026
88 checks passed
@steipete
steipete deleted the codex/refactor-app-sidebar branch July 15, 2026 22:52
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 16, 2026
* refactor(ui): split app sidebar responsibilities

* fix(ui): keep sidebar menu action type private
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
* refactor(ui): split app sidebar responsibilities

* fix(ui): keep sidebar menu action type private
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 maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant