Repository navigation
refactor(ui): transact sidebar update process indicators - #179241
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 manually reset sidebar update busy indicators with Solid actions and optimistic signals. Example: A user selects Hold 1 h for campaign-1 and the request returns false.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: the focused refactor preserves update ownership, and no introduced correctness or security defect was found; the failing E2E signatures also occur on scheduled main. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI sidebar consumes update snapshots and callbacks from the application overlays owner, renders update controls, and delegates status checks and hold requests back to that owner. flowchart LR
A[Sidebar interaction] --> B[Sidebar update card]
B --> C[Solid action and busy indicator]
C --> D[Application overlays owner]
D --> E[Gateway update RPC]
E --> D
D --> F[Fresh presentation props]
F --> B
Technical reviewBest possible solution: Keep the two local action conversions while leaving admission, request execution, and authoritative results with the existing overlays owner. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor rather than a demonstrated current-main bug; source and test assertions were inspected without executing target code. Is this the best way to solve the issue? The change follows the existing Solid action pattern, removes manual indicator resets, and preserves the synchronous owner guards and fresh-prop flush. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0fb57420100a. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +12, Tests +12. Total +24 across 2 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 21, 2026, 4:39 AM ET / 08:39 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Whole-scope Solid 2 census
Whole-scope production LOC 37,089→37,101 (+12). Scope is the direct
app-sidebar*,sidebar-*, andsession-*production families. Counts are basec5d7bc0741f4→ this head. Prior checkpoints #179084 and #179166 are on this base; #179201 and the lazy-renderer/read family remain separate.Item 2's survivors are synchronous primitive/computation cleanup; owner calls include deliberate foreign-DOM mounts and the submenu owner calls addressed in #179201. Item 4 leaves two explicit exceptions: refresh is a document-navigation latch that must remain busy until unload; delete-agent has no renderer-owned state spanning its asynchronous calls and reconciles through the agents owner. Group-default saving already uses an action and optimistic saving. Structured signals are atomic target/status/geometry values or publications of existing mutable owners. No new data owner or refreshable slot is introduced.
What Problem This Solves
The update card manually maintained its hold and target-check process indicators across asynchronous callbacks.
User Impact
Busy controls retain their existing appearance and synchronous duplicate-request protection. Failed checks and declined holds become retryable on the same retained controls. No markup, style, selector, route or intended visual change.
Why This Change Was Made
Native generator actions now own optimistic process indicators. The overlays owner still admits and performs each operation. Target checking awaits its small action before flushing fresh presentation props and rechecking live update eligibility;
flush()never runs inside the transaction. Refresh and deletion retain their owner-specific lifetimes. There is noaffects()/refresh()call because this component owns no asynchronous data slot to invalidate.Evidence
sidebar-update-card.test.tsx, once4fa2da58c1273b0aa3cc00d4cbde0ce33a71b85a(run 39563821473, job 119101632488). Measured head startup 326,854 B gzip, 1 CSS request (40,439 B). Chat 1,494,823→1,494,851 B (+28); New Session 1,012,702→1,012,694 B (−8). Absolute startup-cap warning remains; CI did not print base startup bytes, so no startup delta is claimed.Control UI Markdown table interactions > contains content-sized tables after restoring a percentage reading widthandControl UI chat panel layout > opens this dashboard's chat and details independently without losing either draft. PR run 39563821473 has no other failing job except the aggregate gate. Native inherited-failure landing retains this failed result.Touched production LOC 599→611 (+12, formatter-inclusive); test LOC 682→694 (+12). Two existing tests gained held/rejected request assertions; no new test case or production test seam. Refactor counts in the touched production file: two process signals→optimistic signals, two new actions; effects, cleanup, direct listeners, owner APIs and flush counts unchanged. No remote test lease or screenshots: visible states and DOM/style contract are unchanged.