Repository navigation
refactor(ui): own dashboard sources and plugin focus targets - #176547
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f3b4e1a900
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } | ||
| import type { PluginInstallActionHandle } from "./install-action.tsx"; | ||
|
|
||
| export function createPluginPageTargets() { |
There was a problem hiding this comment.
Reduce this refactor instead of expanding it
This target-registration abstraction and its cross-component prop plumbing turn an existing-code refactor into a net production increase of 77 lines (157 additions versus 80 deletions). The scoped UI guide makes the Solid refactor checklist mandatory, and that checklist requires production LOC to decrease; consolidate the ownership/ref wiring or narrow the change until the refactor is net-negative rather than adding a larger maintenance surface.
AGENTS.md reference: ui/AGENTS.md:L5-L5
Useful? React with 👍 / 👎.
|
Codex review: needs maintainer review before merge. What this changesThis PR retains one Dashboard session projection and registers plugin progress controls and removal-focus headings with their mounted lifetimes. Example: Switch the Dashboard agent scope from all agents to writer.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: the ownership refactor is coherent, no concrete introduced defect was found, and the required CI gate remains unresolved. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI pages consume synchronous session and plugin owners, derive displayed data, and coordinate keyboard dismissal and focus through mounted components. flowchart TD
A[Agent selection] --> B[Dashboard projection]
C[Session list owner] --> B
B --> D[Dashboard gallery]
E[Plugin presentations] --> F[Mounted target registry]
F --> G[Escape and removal focus]
Technical reviewBest possible solution: Retain the existing session and plugin decision owners while completing this focused projection and mounted-target cutover. Do we have a high-confidence way to reproduce the issue? This is a refactor rather than a reported product failure; source inspection confirms the replaced projection and DOM-discovery paths, and no target code was executed. Is this the best way to solve the issue? The change uses the existing source-replacement API and component cleanup contracts without adding a competing domain store; the necessary registration growth is explained. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against de42210bcdd6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +77. Total +77 across 11 files. Added test files: 0. View PR surface stats
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 18, 2026, 6:24 PM ET / 22:24 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…w#176547) * refactor(ui): own dashboard sources and plugin focus targets * fix(ui): keep plugin target type imports first
What Problem This Solves
The Dashboard rebuilt its session-list projection for each agent scope, and plugin pages rediscovered their own progress controls and focus headings through DOM queries. Keep one Dashboard projection and replace its source from the existing selection owner. Register plugin progress handles and heading refs with their mounted lifetime instead of searching the page.
The list owner still decides pagination and request admission. Plugin Escape ordering, removal focus, tags, classes, routes, and lazy imports remain unchanged. This is a lifecycle refactor with no intended visual design change.
Evidence
Refactor checklist
Eleven production files against aa384cc:
createEffectcreateRenderEffectuntrackThe added 77 lines provide typed registration and teardown across the three plugin presentations; they do not copy component state. The existing plain state initializer now lives in the page model, keeping the behavior owner under its enforced line cap; registration methods declare their unbound-call contract. The remaining
untrackis Dashboard's named initial loader-data seed. The remaining query guards the shell-owned mobile drawer and needs the shell's read-only owner boundary; the two plugin effects retain live request/route synchronization. This checkpoint does not claim the lane-wide effect target is complete.The completed CI performance job measured its exact base at 1,490,230 B and tested merge at 1,490,231 B (+1 B), both above the unchanged 1,490,000 B chat limit. Startup measured 337,234 B with one CSS request. Tested merge
0144ca22d2ccba7801112f9ed7e3ab4595d25678has ordered parents4393498591bbd3bbff3371e2821ae2305c0f19eaand51ff2d496c6ec498d07c1bf7fd53fdd5c54e747f; its tree matches the reconstructed merge. The failed check remains failed; every other full CI job passed.