Repository navigation
refactor(ui): present shared approval decisions with Solid actions - #180545
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 shares Solid action presentation across approval buttons, modal shortcuts, and Inbox decisions. Example: An operator presses Ctrl+Enter to approve
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-directed refactor preserves approval ownership, fixes the previous fixture finding, and has no remaining actionable defect identified. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI approval surfaces send operator decisions to the overlay owner, which checks access and connection identity, calls the Gateway, and publishes outcomes. flowchart LR
A[Buttons and modal shortcuts] --> B[Overlay decision owner]
C[Inbox decisions] --> B
B --> D[Gateway resolution]
B --> E[Recorded outcome]
B --> F[Solid action presentation]
F --> G[Pending controls]
E --> G
Technical reviewBest possible solution: Keep one decision authority and one shared presentation helper, with retirement tied to the existing host and panel lifetimes. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor; source and exact-head CI establish the previous fixture repair without executing target code locally. Is this the best way to solve the issue? The shared helper follows the existing Solid action recipe while leaving synchronous admission and write settlement with the established owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 127ca309abca. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +104, Tests +61. Total +165 across 11 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 HistoryReview history (1 earlier review cycle)
Reviewed October 22, 2026, 7:59 AM ET / 11:59 UTC (Revision 2). |
…penclaw#180545) * refactor(ui): present shared approval decisions with Solid actions * test(ui): provide overlay owner in sidebar layout fixture
What Problem This Solves
Modal, inline, and Inbox approval decisions still present pending writes solely through the shared owner's busy field. Keyboard and button paths do not share a Solid action presentation.
User Impact
The existing approval owner continues to admit requests, enforce grants and connection identity, and record outcomes. A shared Solid action now presents the admitted completion with an optimistic busy flag. Modal keyboard shortcuts use the same card action as buttons, and Inbox decisions keep their existing focus restoration.
The presentation retires when the card's approval or access changes, its host disconnects, or the Inbox closes or changes routes. Retirement releases pending UI work without cancelling the authorized decision. Countdown rendering moved unchanged into its own component to keep the card below the file-size limit.
Evidence
The additional code owns presentation retirement at existing native host/panel lifetimes. There is no new domain state, authorization path, dependency, or eager page import. Broad UI and real-Gateway proof runs with
ci:full.Solid 2 checklist in touched production files
Visual proof
Synthetic Gateway data at 1366 × 900 covers modal, inline chat, and Inbox decisions in pending and rejected states. All twelve full captures were inspected. Version, commit, timestamp, and native plugin inputs match across builds. CSS remains 40,894 B gzip with one request.
CI fixture correction
CI 39768555004 passed all 7,688 test assertions but reported four unhandled errors in the two collapsed-sidebar layout cases. Their partial application fixture omitted the overlays owner now subscribed to by the sidebar. The fixture now creates the existing owner and disposes it per test; assertions and production behavior are unchanged. On the prior head, the exact file reproduces 12 passing assertions plus four errors; with this correction, all 12 cases pass without errors. Targeted types, lint/format, and independent review pass. Existing paired builds, production Knip comparison, and all twelve screenshots remain unchanged.