Skip to content

refactor(ui): share pending focus for setup and questions - #176923

Merged
steipete merged 1 commit into
mainfrom
solid2/w-zero-pending-focus-adoption
Oct 19, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-zero-pending-focus-adoption

Conversation

@steipete

@steipete steipete commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The setup wizard and standalone Question page each carried a local focus effect after the shared pending-focus primitive landed. Both now use that primitive while retaining their exact reactive trigger and focus policy. The wizard still chooses the first connected autofocus target in document order; Question still moves focus to its heading only when a removed question panel held focus.

The change adds no delay, readiness policy, copied state, remount, or extra request. The native Question owner, request-generation guards, modal ownership, lazy boundaries, host tags, classes, and rendered markup remain unchanged.

Evidence

Head 344cf0e356dceb857ef9920f3c023dd0e45ac5d3, based on 4909d3ebce326deef7a7cf0c6f7de8799bb17328.

Check Result
Frozen install Passed, 3.24 s
Existing Wizard focus/draft suite 2 passed, 27.69 s wall
Question page suite 7 passed, 20.72 s wall
UI typecheck Passed, 13.63 s
UI-pages test typecheck Passed, 15.05 s
Three-file type-aware UI lint Passed, 75.01 s
Formatting and whitespace Passed
Complete-source isolated review, P0–P3 No actionable findings; final source integrity verified
Author simplification pass Complete; every hunk serves the shared focus adoption
Final-head production Knip Passed, 482.06 s; no findings; unchanged head and clean checkout
Full UI/browser integration CI Passed: 39200496555, exact head; all ci:full shards
Strict base/head performance Passed; startup 336,763 B gzip, 7 JS / 1 CSS; chat 1,483,549 → 1,483,546 B (−3 B); startup CSS 38,500 B, unchanged

The two new Question cases use the native questionId boundary after the real lazy panel is ready. They verify that removing a focused panel sends focus to the heading, removing it while an unrelated button has focus preserves that outside focus, and both paths make only the initial RPC. Existing Wizard cases prove retained input/DOM while typing and the focus order through consent, browser sign-in, and completion. All nine cases ran once; neither suite emitted Solid diagnostics. These are behavior-preservation tests, not a claimed red-on-base bug fix.

The first lint attempt used the UI-pages test config, which selected unrelated plugin-SDK declaration preparation and timed out before producing a lint verdict. The supported tsconfig.ui.json three-file lint then passed; no guard, timeout, or assertion was weakened. There were no runtime test retries.

No local build, E2E battery, or screenshots: no boot imports, rendered markup, styles, selectors, routes, or visual behavior changed. The new imports stay in their existing lazy page modules. Browser/WebKit and wider wizard-consumer proof belongs to the requested full CI run.

Wave-zero measurements

Touched production scope Before After
createEffect 2 0
createRenderEffect 0 0
untrack 0 0
Raw listeners 0 0
DOM queries 0 0
Controller patterns, manual classes, flush, owner escapes 0 0
Production LOC 613 617
Changed Question test LOC 190 217

No targeted survivors remain in the two production files. The four added production lines express the shared helper's policy-object API; no local helper or additional state was introduced.

Preserve wizard autofocus target order and Question heading restoration while adopting the shared pending-focus primitive. Cover focused-panel removal and preservation of outside focus without an extra RPC.
@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 in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

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-19T04:41:04.168935Z 344cf0e 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 94af178 into main Oct 19, 2026
113 of 118 checks passed
@steipete
steipete deleted the solid2/w-zero-pending-focus-adoption branch October 19, 2026 05:09
@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 20, 2026
)

Preserve wizard autofocus target order and Question heading restoration while adopting the shared pending-focus primitive. Cover focused-panel removal and preservation of outside focus without an extra RPC.
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: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant