Skip to content

refactor(ui): simplify collection config drafts - #171890

Merged
steipete merged 6 commits into
mainfrom
solid2/w-polish-config-collections
Oct 14, 2026
Merged

steipete merged 6 commits into
mainfrom
solid2/w-polish-config-collections

Conversation

@steipete

@steipete steipete commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Array and map drafts still used a custom-element bridge even though both callers render in Solid. Opening a draft searched the DOM, and accepting a value crossed a cancelable custom event.

User Impact

No intended behavior change. Drafts remain local until valid, rejected commits retain the entered value and validation message, and host tags, classes, labels, focus behavior, and lazy loading remain intact.

Why This Change Was Made

Render the draft directly with required props. Both callers use a component handle to open it and return the existing commit acceptance result directly. Validation, identity-based resets, native validity, and focus remain with their existing owners.

Production LOC across the three changed production files: 1,038 → 996 (−42). Seven files changed overall. No dependencies added.

The integration at 363121e00a9689d8c5e9aecdbaa2f064eff1a8d9 resolves a real merge conflict against main 3ee1b6d806cea2e21d837ece3aeec8c4b8575dd7. Main already contains the scalar numeric-handler simplification and new Advisor multiline controls, so its entire scalar implementation is retained unchanged and leaves this PR's diff. All seven remaining authored files are byte-identical to the independently reviewed and tested prior head 683dec9b5c62.

Evidence

Check Result
Config integrity browser file 7 passed
Array integrity browser file 8 passed
Map integrity browser file 8 passed
Targeted lint, formatting and parser checks Passed; integration diff check passed
UI typecheck Passed on reviewed candidate 68abee22151f; unchanged authored-file proof reused after integration
Independent Codex review Scoped-clean P0–P2; unchanged seven-file patch reuses that review
Frozen offline installation Passed on integrated head; worktree remained clean
Production Knip Passed on integrated head 363121e00a968: pnpm deadcode:knip, exit 0 (31m 29.4s)
Strict performance, head 363121e00a968 Passed: 349,074 B gzip startup JS, 1 startup CSS request; CSS 49,695 → 49,695 B
Full CI, head 363121e00a968 Run 38547510866 passed: all 3 UI unit shards, all 9 E2E shards, both real-Gateway shards and every other planned job

The browser tests exercise rejected writes, partial draft retention, source replacement, duplicate/reserved map keys, and scalar validity through real controls. The initial integrity run found a lifecycle callback returning its ref-assignment value; that callback was corrected and the affected file passed its targeted rerun. The other two files passed once each. The fourth rejection-integrity file replaces six removed bridge waits with the shared Solid flush helper; it is covered by full PR CI under the local test budget.

There is no visible markup or CSS change, so no screenshot comparison is needed for this internal cleanup. Startup modules and lazy imports are unchanged. Full UI CI is selected because the shared editor owns validation and focus behavior. No local E2E, parity run, or extra build was run.

Prior head 683dec9b5c62 passed all nine UI E2E shards, both real-Gateway shards, UI unit shards 1/3 and 2/3, types, lint, and strict performance. Its UI unit shard 3/3 failed these two cases:

  • browser sign-in recovery > verifies renewed website access using the current stored-password credential
  • mounted pane parent session > reconciles a pending parent when descriptor fails

A single isolated run at the actual CI merge parent 091683974665a977a2e4c4f6688202a51a71902d passed both files, 16 cases, under the same pinned Bun source revision. Local proof used Darwin arm64; CI used Linux x64. Latest compared scheduled main run 38543352664 also passed both cases under Node. Passing replays establish neither inheritance nor a repair. Those prior failures remain documented; the integrated head has now passed its own full enforced CI, with both named cases passing in the Bun UI3 shard (102 ms and 299 ms). No inherited-failure exception or repaired-flake claim is made.

@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.

@steipete
steipete marked this pull request as ready for review October 14, 2026 07:04
@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-14T10:12:13.750331Z 363121e New commits
ℹ️ 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 b8b6e2c into main Oct 14, 2026
101 of 102 checks passed
@steipete
steipete deleted the solid2/w-polish-config-collections branch October 14, 2026 12:19
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 15, 2026
* refactor(ui): render collection config drafts directly in Solid

* test(ui): flush collection draft rejection assertions
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: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant