Repository navigation
refactor(ui): own board presentation state in Solid - #174033
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 replaces the board’s mutable presentation controller with an owner-scoped Solid store and shared tab memos. Example: Resize the alpha widget from 6×4 to 6×6 using pointer-down and pointer-up in one event turn.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authorized refactor completes the board presentation-state cutover without a concrete correctness or security finding. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI board consumes session snapshots and pointer or keyboard input, renders retained widget cells, and sends mutations through the existing board provider. flowchart LR
Snapshot[Board snapshot] --> State[Solid presentation owner]
Input[Pointer and keyboard input] --> Gesture[Synchronous gesture state]
Gesture --> State
State --> Cells[Retained widget cells]
Gesture --> Provider[Existing board provider]
Provider --> Gateway[Gateway board operations]
Technical reviewBest possible solution: Complete the Solid presentation cutover while preserving synchronous gesture admission and the existing provider and widget lifecycles. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor, not a reported defect; source and component coverage were inspected without executing target code. Is this the best way to solve the issue? The change follows the repository’s Solid ownership model, removes the superseded controller, and keeps synchronous decisions outside reactive presentation state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3aa642027ea1. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -1, Tests +20. Total +19 across 4 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, 4:54 AM ET / 08:54 UTC. |
|
Merged via squash.
|
What Problem This Solves
The Board renderer still uses a mutable
BoardViewStateclass plusrequestUpdateto refresh local presentation state during the Solid migration.User Impact
No user-visible change. Same-turn resize, retained widget identity, focus, announcements, and awaited MCP teardown preserve their existing behavior. Routes, tags, CSS, rendering markup, and lazy import boundaries stay unchanged. No dependencies were added.
Why This Change Was Made
Replace the rendering adapter with an owner-scoped
createBoardViewStatefactory and a derived Solid store for presentation. Ordered tabs and the active tab are shared memos, and grid geometry uses a captured ref.Gesture identity and mutation admission remain synchronous plain TypeScript. Pointer-up consumes its final calculated geometry directly, so a down/up pair in one turn still resizes correctly. Owner cleanup cancels pointer listeners without publishing state; retained widgets and awaited teardown keep their existing owners. Repeated equal-height reports remain a no-op. The grid helper's get-only input type narrows its existing contract without changing runtime behavior.
Evidence
No local startup build was run under the campaign's bounded proof policy because this changes no boot/startup code. CI built both sides on the same runner and passed the strict performance comparison below.
pnpm tsgo:uigit diff --checkci-gate; all 63 jobs successful/skippedThe remaining generic
STRICT_READ_UNTRACKEDdiagnostic comes from the unchanged retained-cell ref's stable key read. A temporary console hook traced it to the same ref callback on both baseline and candidate; the hook was removed. The readiness callback intentionally samples native child readiness after DOM commit, while its containing split effect tracks view invalidation and child presentation events invoke the same sample.createEffectcreateRenderEffectuntrackaddEventListenerflushcallsrunWithOwner/getOwnercallsProduction LOC falls by 1 across the three touched production files; the regression adds 20 test lines. The class and its rendering-invalidation wiring are removed together. The remaining explicit listeners are gesture-scoped or media-query listeners with paired cleanup. There is no visual design change requiring screenshots.
The CI performance comparison built tested merge
2cf78cedb6eb41b5fa84b7cf24a2829e1c4a66e0(head8b951f1a391d9e1c68e2ee6400d08e17b852d5e9) against basea9e85bfa0f2104543254675a1a950d3f2237714con the same runner with Node v24.21.0, Vite 8.3.4, and Pako 3.0.2. Startup JS stays below the original 374,285 B gzip budget; startup CSS is unchanged at 38,786 B gzip and one request.