Skip to content

refactor(ui): isolate sidebar session presentation#108492

Merged
steipete merged 1 commit into
mainfrom
codex/refactor-app-sidebar
Jul 15, 2026
Merged

refactor(ui): isolate sidebar session presentation#108492
steipete merged 1 commit into
mainfrom
codex/refactor-app-sidebar

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Control UI sidebar presentation still kept the shell, brand, footer, session rows, groups, pagination, and catalog wiring in one file. After the recent behavior-layer split, app-sidebar.ts remained just below the 700-line budget, leaving little headroom and making presentation-only changes span unrelated sidebar surfaces.

Why This Change Was Made

Move the session-list and catalog presentation unchanged into one focused abstract layer in the existing sidebar class chain. The concrete custom element now owns only the brand, shell, footer, and custom-element registration; there is no new DOM boundary, compatibility path, or duplicate renderer.

User Impact

No user-visible or visual change. Maintainers get smaller presentation ownership surfaces and durable max-lines headroom.

Evidence

  • Blacksmith Testbox tbx_01kxm032jwv0wwwa5nf7wpj5nd: targeted format check passed.
  • pnpm test ui/src/components/app-sidebar.test.ts: 78 passed.
  • pnpm test ui/src/e2e/sidebar-customization.e2e.test.ts: 8 passed in Chromium.
  • pnpm check:changed: passed for coreTests, ui, including UI/core test types, lint, formatting, i18n verification, and max-lines ratchet.
  • Fresh autoreview: no accepted or actionable findings.
  • Visual evidence not applicable: rendered DOM, styling, copy, state, and behavior are unchanged.

Remote proof run

AI-assisted: yes.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Jul 15, 2026
@steipete steipete self-assigned this Jul 15, 2026
@steipete
steipete merged commit 1643f1f into main Jul 15, 2026
107 of 113 checks passed
@steipete
steipete deleted the codex/refactor-app-sidebar branch July 15, 2026 23:17
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant