Repository navigation
refactor(ui): own appearance picker focus with element refs - #174481
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR moves appearance-picker focus handling into the shared component and removes obsolete caller host arguments. Example: Enter 🦉 through Custom emoji in a board appearance picker.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-directed refactor consolidates focus ownership without an actionable correctness or security finding. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI's shared appearance picker receives appearance values and callbacks from standalone controls and session menus, renders choices, manages keyboard focus, and forwards selections to existing action owners. flowchart TD
A[Standalone appearance control] --> C[Shared appearance picker]
B[Session menu consumers] --> C
C --> D[Element refs and settled focus]
C --> E[Existing selection callbacks]
E --> F[Appearance action owners]
Technical reviewBest possible solution: Keep one ref-based focus owner in the shared picker while preserving each consumer's existing tab-stop behavior. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor rather than a reported bug; source inspection confirms the duplicate focus plumbing, and no runtime reproduction was attempted. Is this the best way to solve the issue? The shared picker already owns the rendered controls, making it the appropriate focus owner; the diff preserves native event handling and removes the replaced caller paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7d636d93b8d4. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -2, Tests +8. Total +6 across 7 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 16, 2026, 1:50 PM ET / 17:50 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…#174481) * refactor(ui): own appearance picker focus with element refs * style(ui): satisfy appearance picker lint rules
What Problem This Solves
Appearance controls carry duplicate caller-side focus and DOM lookup code after the Solid migration.
User Impact
No user-visible change. Custom icon entry, returning to the icon grid, keyboard navigation, and IME handling keep their existing behavior.
Why This Change Was Made
The shared appearance picker now owns refs to its input and rendered choices. Its two consumers request focus after rendering settles, instead of querying their host or publishing a focus signal. Session-menu roving tab stops remain specific to the menu; the standalone picker keeps its focus behavior. The obsolete host parameters disappear with that wiring. No tags, classes, routes, styles, or lazy boundaries change.
Evidence
The startup difference is filename/compression variance; the refactor stays in the existing lazy dependency graph. This is a nonvisual ownership change with unchanged markup and styles; direct focus/keyboard boundary tests provide the behavior proof. PR CI with
ci:fullsupplies broad UI coverage.createEffectcreateRenderEffect/untrackflush/ owner capturesTouched test LOC: 153 → 161. The checklist’s literal
querySelector(All)?\(pattern misses the five generic typed calls removed here; its literal count is 0 → 0.CI attribution
Exact-head
ci:fullrun 38940785837 completed with 35 passing jobs, 26 skipped jobs, and two E2E failures plus the aggregate gate. Both failing test names and assertions match the latest completed scheduled main run38940084041:Link hover previews > keeps title hints when the optional hover runtime cannot load: line238 times out waiting for the Field guide link.Claude native session catalog > auto-loads older chat without moving the viewport and disables paired-node continuation: line567 expects at least3 catalog requests but sees2.The tests and fixture blobs are unchanged in the verified CI merge. The native inherited-failure route retains these failed results; no CI success is claimed.