Skip to content

refactor(ui): simplify page rendering and derivations (replaces #171858) - #173608

Merged
steipete merged 1 commit into
mainfrom
solid2/w-polish-pages-a-search-v2
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-polish-pages-a-search-v2

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Several migrated pages still route Solid-only callers through custom-element bridges, while repeated derivations and expanded JSX obscure the rendering path.

Replaces #171858 on current main. The old PR's landing intent is left untouched; this branch contains only its authored changes, with main's newer Search model-picker behavior preserved.

User Impact

No visible layout or behavior change. Host tags, classes, routes, controls, keyboard behavior, lazy boundaries, and iframe/sidebar lifetimes stay intact.

Why This Change Was Made

Render Search, Skills, dashboard previews, and plugin install actions directly in Solid. Keep the install action's imperative dismissal method because its plugin caller uses it for keyboard dismissal. Memoize schema fields, capabilities, selected portals, artwork, and library text; simplify equivalent board loading branches, Systems menu items, and plugin JSX. Compatibility-notice link labels remain reactive when the locale changes.

20 paths, including 17 production paths: 6,151 → 6,106 production lines (−45) against main ac057846a4f7dbdfd485ffb847a867f988a74ffa. No authored dependency, stylesheet, or startup-module changes. The sole three-way conflict removed an obsolete bridge import; current main's native model picker remains intact.

Evidence

Check Result
Independent review Fresh review of all authored paths plus unchanged dismissal callers: no actionable P0–P2 findings. Source inspection and whitespace check passed.
UI types pnpm tsgo:ui passed once on this replacement.
Search browser tests 26 passed once across the primary Search and configuration-lifecycle files, --project=browser --maxWorkers=1 (3.28 s).
Production Knip pnpm deadcode:knip passed on this replacement, no new ignores.
Full CI Exact-head ci:full run 38832022916 passed: 39 successful jobs, 26 skipped, zero failed.
Startup Current-head paired CI check passed: 347,118 B startup JS gzip / 8 requests, 38,844 B startup CSS gzip / 1 request. Paired Chat JS: 1,660,682 → 1,660,640 B (−42 B); New Session JS: 1,351,746 → 1,351,739 B (−7 B); CSS and request counts unchanged. Startup stays below the 374,285 B baseline; the log does not separately print paired-base initial-entry JS bytes.
Visual proof No visible layout or style change; no new screenshots under the polish-wave proof rule.

Current replacement head: 80bef54532d77c38e311324979b5a2d167021107. The prior PR's full CI run 38825188351 was also green, but the proof table above uses this replacement's fresh results.

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

clawsweeper Bot commented Oct 16, 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 16, 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-16T00:56:47.754548Z 80bef54 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.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR removes unnecessary Solid bridges, memoizes repeated derivations, simplifies equivalent JSX, and keeps compatibility-link labels reactive.

Example: Switch the UI locale from English to German while a plugin compatibility notice is mounted.

  • Before: The notice updates, but its link still says “Details”.
  • After: The link updates to “Mehr erfahren” with the notice.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is coherent and source review found no introduced defect; validation supports it, but supplied behavioral evidence remains harness-based and broad CI is unfinished.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored rendering refactor is outside the ordinary contributor-proof gate; supplied evidence is browser/unit validation and CI, with no material authority-chain change.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Redundant rendering adapters and repeated derivations complicate maintenance; a mounted compatibility link also retains its previous locale.
Reason: The maintainer-authored direction aligns with the existing Solid migration, reduces production code, and preserves the established product contracts.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes a coherent Solid rendering simplification, and source review found no actionable introduced defect.

Priority: P3
Reviewed head: 80bef54532d77c38e311324979b5a2d167021107

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No shipped-entry-point runtime evidence is supplied for this replacement, and a base-failing run of the extended locale assertion is not shown.
Agent review details

How this fits together

The Control UI consumes Gateway-owned state and page-controller projections, renders settings and dashboard views, and forwards user actions to existing mutation owners.

flowchart TD
  A[Gateway state] --> B[Controllers and projections]
  B --> C[Solid page components]
  C --> D[Existing host tags and controls]
  D --> E[User actions]
  E --> F[Existing mutation owners]
  F --> A
Loading

Technical review

Best possible solution:

Complete the direct Solid rendering cutover while preserving existing controller authority, host selectors, lazy loading, and imperative dismissal.

Do we have a high-confidence way to reproduce the issue?

The central change is a refactor; source inspection confirms the compatibility-link label was previously translated outside a reactive getter.

Is this the best way to solve the issue?

Direct components fit the existing Solid callers, and the memoized values retain their existing reactive inputs without introducing another state owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against a9e86934eb28.

Provenance checked

  • Search, Skills, plugin rendering, artwork, and library derivations keeps the original intent (8304c4b: Migrate these pages to Solid while preserving synchronous domain owners, configuration writes, editor drafts, and mixed-renderer boundaries.)
  • Dashboard preview lifecycle, board rendering, and portal presentation keeps the original intent (939f740: Port rendering while preserving host tags, iframe identity, retained state, passive previews, and asynchronous teardown.)
  • Plugin installation progress keeps the original intent (cf28acc: Use the native Popover owner while retaining hover, focus, pinning, Escape dismissal, and installer ownership.)
  • Plugin compatibility notices keeps the original intent (d795875: Show neutral, localized notices about observed deprecated SDK usage without changing plugin health or execution.)
  • Systems filter menu keeps the original intent (7ae6949: Replace the vendor dropdown with the owned menu while preserving radio groups, labels, checks, and selected-machine behavior.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source -45, Tests +8. Total -37 across 20 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 17 477 522 -45
Tests 3 58 50 +8
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 20 535 572 -37

Review metrics

Metric Value Why it matters
Production versus test LOC Production −45; tests +8 The authored patch reduces production code; test growth adapts the preview lifecycle harness and extends the existing locale-switch assertion.

Root-cause cluster

Relationship: canonical
Canonical: #173608
Summary: This PR explicitly carries the earlier rendering simplification onto a replacement branch.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P3: This is a rendering cleanup with a small localization correction and no established urgent user-facing regression.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a rendering cleanup with a small localization correction and no established urgent user-facing regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 15, 2026, 9:07 PM ET / October 16, 2026, 01:07 UTC.

@steipete
steipete merged commit 7ac0f03 into main Oct 16, 2026
107 of 108 checks passed
@steipete
steipete deleted the solid2/w-polish-pages-a-search-v2 branch October 16, 2026 01:17
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit '56c315156f4542f197a2b7f727681ba3f41c21b5': (23 commits)
  fix(ui): remove stale Lit cleanup from model catalog tests
  refactor(tests): consolidate iMessage discovery checks (#173624)
  fix(auto-reply): retire older collect cancellation after admission
  fix(memory): avoid rebuilding initially empty indexes after restart (#173622)
  fix(test): preserve subprocess runtime identity (#173446)
  perf(sessions): batch transcript index reconciliation (#173620)
  fix(gateway): share GitHub options preparation during reconnects (#173589)
  perf(control-ui): open the composer model picker without list-wide work (#173275)
  fix: finish compile-cache cleanup after short CLI commands exit (#173603)
  refactor(ui): finish native shell rendering (#171554)
  fix: preserve standalone CLI profiles and settle Doctor shutdown (#173154)
  refactor: centralize agent memory host typing (#173619)
  fix: camera fallback picker opens away from the attachment button (#173618)
  refactor: deduplicate existing CI runner routing with YAML anchors (#172670)
  fix(ai): preserve multiline Google replies and report malformed streams (#173612)
  refactor(tests): remove duplicate speech policy test (#173606)
  refactor(ui): simplify page rendering and derivations (#173608)
  fix(release): Linux channel promotion fails after a withdrawn Windows companion (#173615)
  fix(update): wait for native Gateway ownership before restarting (#173588)
  test(sessions): admit schema probe fixture writes behind maintenance
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* fix(ci): share the iOS screenshot build

* fix(ci): preserve the screenshot artifact container on download

* merge: integrate main for iOS screenshot workflow conflicts

* style(ci): format the combined screenshot evidence changes

* docs(ci): name the combined screenshot capture

* fix(ios): expose screenshot simulator creation errors

* Merge main at 56c3151 to include the UI test cleanup fix

* commit '56c315156f4542f197a2b7f727681ba3f41c21b5': (23 commits)
  fix(ui): remove stale Lit cleanup from model catalog tests
  refactor(tests): consolidate iMessage discovery checks (#173624)
  fix(auto-reply): retire older collect cancellation after admission
  fix(memory): avoid rebuilding initially empty indexes after restart (#173622)
  fix(test): preserve subprocess runtime identity (#173446)
  perf(sessions): batch transcript index reconciliation (#173620)
  fix(gateway): share GitHub options preparation during reconnects (#173589)
  perf(control-ui): open the composer model picker without list-wide work (#173275)
  fix: finish compile-cache cleanup after short CLI commands exit (#173603)
  refactor(ui): finish native shell rendering (#171554)
  fix: preserve standalone CLI profiles and settle Doctor shutdown (#173154)
  refactor: centralize agent memory host typing (#173619)
  fix: camera fallback picker opens away from the attachment button (#173618)
  refactor: deduplicate existing CI runner routing with YAML anchors (#172670)
  fix(ai): preserve multiline Google replies and report malformed streams (#173612)
  refactor(tests): remove duplicate speech policy test (#173606)
  refactor(ui): simplify page rendering and derivations (#173608)
  fix(release): Linux channel promotion fails after a withdrawn Windows companion (#173615)
  fix(update): wait for native Gateway ownership before restarting (#173588)
  test(sessions): admit schema probe fixture writes behind maintenance
  ...

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
* fix(ci): share the iOS screenshot build

* fix(ci): preserve the screenshot artifact container on download

* merge: integrate main for iOS screenshot workflow conflicts

* style(ci): format the combined screenshot evidence changes

* docs(ci): name the combined screenshot capture

* fix(ios): expose screenshot simulator creation errors

* Merge main at a11e38b to include the UI test cleanup fix

* commit 'a11e38b8bb1eb58aaf392a0eab458dbb47aad30f': (23 commits)
  fix(ui): remove stale Lit cleanup from model catalog tests
  refactor(tests): consolidate iMessage discovery checks (openclaw#173624)
  fix(auto-reply): retire older collect cancellation after admission
  fix(memory): avoid rebuilding initially empty indexes after restart (openclaw#173622)
  fix(test): preserve subprocess runtime identity (openclaw#173446)
  perf(sessions): batch transcript index reconciliation (openclaw#173620)
  fix(gateway): share GitHub options preparation during reconnects (openclaw#173589)
  perf(control-ui): open the composer model picker without list-wide work (openclaw#173275)
  fix: finish compile-cache cleanup after short CLI commands exit (openclaw#173603)
  refactor(ui): finish native shell rendering (openclaw#171554)
  fix: preserve standalone CLI profiles and settle Doctor shutdown (openclaw#173154)
  refactor: centralize agent memory host typing (openclaw#173619)
  fix: camera fallback picker opens away from the attachment button (openclaw#173618)
  refactor: deduplicate existing CI runner routing with YAML anchors (openclaw#172670)
  fix(ai): preserve multiline Google replies and report malformed streams (openclaw#173612)
  refactor(tests): remove duplicate speech policy test (openclaw#173606)
  refactor(ui): simplify page rendering and derivations (openclaw#173608)
  fix(release): Linux channel promotion fails after a withdrawn Windows companion (openclaw#173615)
  fix(update): wait for native Gateway ownership before restarting (openclaw#173588)
  test(sessions): admit schema probe fixture writes behind maintenance
  ...

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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant