Skip to content

refactor(ui): remove redundant component rendering layers - #177607

Merged
steipete merged 2 commits into
mainfrom
solid2/w-deslop-components-reductions
Oct 19, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/w-deslop-components-reductions

Conversation

@steipete

@steipete steipete commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The completed Solid migration left several extra rendering layers: native bridges for sidebar controls already rendered only from JSX, panel wrappers around owned primitives, copied board presentation state, and fixed SVG geometry rebuilt as JSX. Remove these layers and use the existing component/data owners. Keep host tags, classes, lazy loading, action authority, MCP teardown, and dynamic artwork behavior.

This is a behavior-preserving reduction. Browser operations now share their existing invocation constructor; config inputs share one dynamic element; the board renderer reads its existing lifecycle snapshot directly; fixed artwork uses the existing static-sprite renderer. No new dependencies or shared utility framework.

Evidence

Check Base Head
Whole component scope production LOC 115,187 114,740
Touched production LOC (29 files) 9,558 9,111
Startup JS gzip 324,908 B 324,557 B
Startup JS requests 7 7
Startup CSS gzip / requests 38,500 B / 1 38,500 B / 1
UI build + strict performance check pass pass
UI typecheck — pass
Focused tests: browser operation ownership, board MCP cells, config draft lifecycle — 28 passed
Production Knip — pass
Independent review, P0–P2 — no actionable findings

Net −447 production lines (0.39% of the refreshed 115,187-line scope). The normalized 6–10-line duplicate-window scan and owner/caller audit selected these reductions. The earlier 115,422 preliminary count included fixture/test-support files; the table uses the repository's production exclusions. No component entry remains in the max-lines baseline.

Refactor checklist on touched production files: controllers 0→0, effects 4→4, render effects 0→0, untrack 3→3, direct listeners 0→0, DOM queries 0→0, flush 0→0, owner escapes 2→2. No ratchet increases. One directly coupled test-helper assertion now checks the rendered menu role instead of the retired bridge property.

Builds used the same machine and base 4d2504ccb5b. No lazy registration was pulled into startup. Chat boot gzip changes by +1,768 B (within its existing budget), with CSS requests 9→8; New Session boot changes by +229 B. Static SVG parsing trades a little compressed route code for deleting repeated construction code; startup shrinks by 351 B.

Broad proof runs in PR CI (ci:full). Local validation follows the campaign budget: one run of the three selected test files, typecheck, builds for the two sides, and targeted visual captures.

Visual proof

Synthetic fixtures only; locally inspected. Config string/integer/JSON/nullable drafts and sidebar controls preserve rendering, text, and the collapse action.

Before After
Before: synthetic config and sidebar controls After: synthetic config and sidebar controls

Twenty-five artwork cases, including open/closed eyes, hats, checkerboard, book, and bottle, have identical SVG attributes/tree order before and after the eye toggle. The two PNGs are byte-identical.

Before After
Before: synthetic artwork gallery After: synthetic artwork gallery

CI repair

The first full CI run (39307186806) caught two directly caused test issues: the projection-memo fixture still typed the mounted host as only its domain owner, and the identity-menu test implicitly depended on non-release build metadata. The fixture now includes HTMLElement; the menu test supplies and restores synthetic non-release metadata while retaining the menu role assertion. No production behavior changed. Both affected test files passed (104 tests), and the exact UI-components test typecheck passed. Independent review found no actionable P0–P2 issues.

Exact-head CI run 39310198580 has one root failure: quota-reset-status.real-gateway.e2e.test.ts > Running Gateway quota status: automatic-during-catalog > serves the same account and shows ready status after recovery without restarting (Checking models… instead of Ready). The identical named test fails in the latest completed scheduled main run 39311481040; 43 other jobs passed, 24 skipped, and security-fast passed. The earlier CI attribution table compared an older main run that passed, so the newer exact-name evidence supersedes that classification. Landing uses the native inherited-failure exception, without claiming the failed check is green.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T19:03:16.829068Z e2f1775 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete merged commit 0548086 into main Oct 19, 2026
105 of 109 checks passed
@steipete
steipete deleted the solid2/w-deslop-components-reductions branch October 19, 2026 20:29
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

vincentkoc added a commit that referenced this pull request Oct 19, 2026
* commit '08e32fdb4df002c9d4eea158b855d6521dd1e916': (52 commits)
  test(gateway): restore local probe deferred import
  fix(agents): release prompt diagnostics for retired sessions (#177614)
  fix(release): tag restart plugin cohorts consistently (#177725)
  refactor(ui): inline single-caller detail requests (#177705)
  chore(i18n): refresh native locales (#177721)
  refactor(codex): drop unread private runtime reports (#177689)
  refactor(ui): consolidate static artwork registries (#177692)
  refactor(ui): derive settings schema analysis in the view (#177624)
  refactor(media): consolidate capability defaults and compression grids (#177665)
  refactor(auth): bind OAuth managers to native provider operations (#177676)
  refactor(ui): remove redundant component rendering layers (#177607)
  fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (#166082)
  fix(agents): report failed secret input prompt delivery (#177688)
  refactor(ui): share chat message render contracts (#177668)
  fix(ui): settle model status after overlapping publication (#177667)
  refactor(gateway): reuse native workspace and lifecycle facts (#177670)
  refactor(runtime): rely on canonical async lifecycle owners (#177635)
  refactor: fold private operation helpers into their callers (#177655)
  refactor(ui): remove unused chat leaf element adapters (#177582)
  perf(talk): use published authority for foreign voice writes (#177533)
  ...
vincentkoc added a commit that referenced this pull request Oct 19, 2026
#167350)

* fix(pr): retain the admitted workflow across maintainer commands

* fix: refresh the reviewed correction baseline

Baseline-Refresh: a89bd166b79d54b343b93ad374f8ebfa4f3d1163

* fix(pr): preserve cold workflow admission and repository identity

* chore(pr): integrate canonical main CI repair

* commit '08e32fdb4df002c9d4eea158b855d6521dd1e916': (52 commits)
  test(gateway): restore local probe deferred import
  fix(agents): release prompt diagnostics for retired sessions (#177614)
  fix(release): tag restart plugin cohorts consistently (#177725)
  refactor(ui): inline single-caller detail requests (#177705)
  chore(i18n): refresh native locales (#177721)
  refactor(codex): drop unread private runtime reports (#177689)
  refactor(ui): consolidate static artwork registries (#177692)
  refactor(ui): derive settings schema analysis in the view (#177624)
  refactor(media): consolidate capability defaults and compression grids (#177665)
  refactor(auth): bind OAuth managers to native provider operations (#177676)
  refactor(ui): remove redundant component rendering layers (#177607)
  fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (#166082)
  fix(agents): report failed secret input prompt delivery (#177688)
  refactor(ui): share chat message render contracts (#177668)
  fix(ui): settle model status after overlapping publication (#177667)
  refactor(gateway): reuse native workspace and lifecycle facts (#177670)
  refactor(runtime): rely on canonical async lifecycle owners (#177635)
  refactor: fold private operation helpers into their callers (#177655)
  refactor(ui): remove unused chat leaf element adapters (#177582)
  perf(talk): use published authority for foreign voice writes (#177533)
  ...

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
…77607)

* refactor(ui): remove redundant component rendering layers

* test(ui): align sidebar assertions with owned hosts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
openclaw#167350)

* fix(pr): retain the admitted workflow across maintainer commands

* fix: refresh the reviewed correction baseline

Baseline-Refresh: a89bd166b79d54b343b93ad374f8ebfa4f3d1163

* fix(pr): preserve cold workflow admission and repository identity

* chore(pr): integrate canonical main CI repair

* commit '4f8617589b6c71d754171052b603fe534901bfa1': (52 commits)
  test(gateway): restore local probe deferred import
  fix(agents): release prompt diagnostics for retired sessions (openclaw#177614)
  fix(release): tag restart plugin cohorts consistently (openclaw#177725)
  refactor(ui): inline single-caller detail requests (openclaw#177705)
  chore(i18n): refresh native locales (openclaw#177721)
  refactor(codex): drop unread private runtime reports (openclaw#177689)
  refactor(ui): consolidate static artwork registries (openclaw#177692)
  refactor(ui): derive settings schema analysis in the view (openclaw#177624)
  refactor(media): consolidate capability defaults and compression grids (openclaw#177665)
  refactor(auth): bind OAuth managers to native provider operations (openclaw#177676)
  refactor(ui): remove redundant component rendering layers (openclaw#177607)
  fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (openclaw#166082)
  fix(agents): report failed secret input prompt delivery (openclaw#177688)
  refactor(ui): share chat message render contracts (openclaw#177668)
  fix(ui): settle model status after overlapping publication (openclaw#177667)
  refactor(gateway): reuse native workspace and lifecycle facts (openclaw#177670)
  refactor(runtime): rely on canonical async lifecycle owners (openclaw#177635)
  refactor: fold private operation helpers into their callers (openclaw#177655)
  refactor(ui): remove unused chat leaf element adapters (openclaw#177582)
  perf(talk): use published authority for foreign voice writes (openclaw#177533)
  ...

Co-authored-by: Vincent Koc <[email protected]>
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 ci:full Keep ordinary native-locale CI selection on the next PR run. size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant