Repository navigation
refactor(ui): extract sidebar session-list render functions - #112753
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 22, 2026 20:51
steipete
force-pushed
the
sidebar-flatten-1-list-render
branch
from
July 22, 2026 22:14
e29413a to
b6b767a
Compare
steipete
force-pushed
the
sidebar-flatten-1-list-render
branch
from
July 22, 2026 22:51
5167cd3 to
2b0f00f
Compare
Contributor
Author
|
Merged via squash.
|
This was referenced Jul 23, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 23, 2026
…#112753) * refactor(ui): extract sidebar session-list render functions * refactor(ui): trim obsolete sidebar render wrappers * refactor(ui): compact sidebar render snapshot * refactor(ui): add sidebar startup margin * refactor(ui): reduce sidebar render duplication * refactor(ui): reduce sidebar render overhead
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
The Control UI sidebar's session-list layer mixes DOM rendering with inherited element state, which makes the planned reactive-controller flattening harder to review safely. This is PR 1 of the planned controller-flattening series and isolates the low-risk List render boundary first.
Why This Change Was Made
The seven List render routines now live as pure free functions fed by one explicit state snapshot and callback context.
renderSessionsand the externally consumed pinned-session renderer remain thin class entry points; DOM order, CSS classes, keyed directives, and event semantics are unchanged.AI-assisted change; the implementation and proof were reviewed with the repository autoreview workflow.
User Impact
None. This is a behavior-neutral refactor with no intended DOM or interaction changes.
Evidence
node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts: 158 passednode scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.ui.json: passed on Blacksmith Testboxnode scripts/run-oxlint.mjs <touched files>: passed on the same TestboxOPENCLAW_BUILD_PRIVATE_QA=1 node scripts/build-all.mjs qaRuntime && pnpm ui:build: passed, including the unchanged 315.0 KiB startup-JS guard$HOME/.claude/skills/autoreview/scripts/autoreview --mode uncommitted: clean, no accepted/actionable findingsgit diff --numstat origin/main...HEAD: +973/-749 across 7 files (net +224, primarily the explicit render context/callback contract); class file shrank from 711 to 204 lines and both new modules remain below 700 lines