Skip to content

refactor(ui): simplify structured config drafts - #171635

Merged
steipete merged 1 commit into
mainfrom
solid2/w-polish-config
Oct 14, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-polish-config

Conversation

@steipete

@steipete steipete commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Structured config drafts still crossed a Lit compatibility bridge even though their config-form and plugin-settings callers both render with Solid. The boolean editor also expressed four mutually exclusive layouts as nested fallbacks.

User Impact

No intended user-visible change. Drafts remain local until valid, rejected saves retain their values and error message, and host tags, caller-specific classes, controls, and lazy loading stay unchanged.

Why This Change Was Made

Render structured drafts directly in their Solid owner, remove the optional legacy renderer/bridge contract, and cut over both callers together. Keep the existing identity-based reset behavior and validation owner. Use one Switch for the boolean layouts, preserving their precedence.

Production LOC across the five changed production files: 1,060 → 1,007 (−53). No dependencies added.

Evidence

Check Result
Config array draft + rejection browser files 17 passed; 7.69s total
Plugin settings browser file 19 existing tests passed; new test's alert selector corrected
New plugin draft regression, targeted rerun Passed; 22.07s command, 93ms test
pnpm tsgo:ui Passed
Targeted lint / formatting Passed (the final type alias recheck is clean)
Production Knip Same existing unused ui/src/components/web-awesome-tabs.ts on both head and merge base 72ccf6ff9293; no new findings
Independent Codex review Clean; no actionable P0–P2 findings
Same-run CI base/head builds and performance check Passed; head startup 348,391 B gzip, 1 CSS request; CSS 49,703 → 49,703 B

The new plugin regression covers partial required input, an unrelated model refresh, and a rejected atomic save. The existing form proofs retain coverage for nested draft identity, row removal, validation, and rejected writes. The first plugin run selected an empty hidden field-validation alert; the corrected selector targets the draft's visible rejection message.

No screenshot comparison is needed for this internal rendering cleanup: the rendered host tags/classes and visible controls are preserved. No startup modules or lazy imports changed. CI built the base and head with the same runner/toolchain and passed the strict performance check; head startup JS is 348,391 B gzip against the 374,285 B committed budget, with 1 startup CSS request. Chat/New route boot gzip changed by only +28/+29 B. Full UI CI was selected because the config renderer is shared.

CI attribution

The only UI E2E failure in the completed PR run is Control UI plugin lifecycle > retains uninstall feedback through during inspection in PR run 38505869555. The same named test failed in scheduled main runs 38502084044 and 38507129576. Its test and uninstall controller blobs are identical between the actual CI base and tested PR merge. All other PR jobs passed or were skipped.

Main subsequently hardened that fixture in 533feba7fd0d, keeping configuration reads unavailable through the feedback assertion. The newer scheduled main run 38512319842 passes this shard. The inherited attribution is to the exact historical CI base; it does not claim that current main still fails.

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

clawsweeper Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 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-14T03:25:09.899385Z a65face 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 140f763 into main Oct 14, 2026
123 of 127 checks passed
@steipete
steipete deleted the solid2/w-polish-config branch October 14, 2026 06:54
@steipete

Copy link
Copy Markdown
Contributor Author

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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant