Repository navigation
ui: move dialog closes and ghost icon actions onto IconButton - #194152
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: needs changes before merge. What this changesThis PR moves dialog closes and selected icon actions onto the shared IconButton presentation. Example: Hover the copy action beside a session on Usage.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep open: this maintainer-directed consolidation is worthwhile, but introduced consumer-test failures and additional boot-budget violations need repair before merge. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherControl UI dialogs and page actions render native buttons through shared Solid components; existing callbacks continue to handle closing, copying, and other actions. flowchart LR
A[Dialogs and page actions] --> B[IconButton]
B --> C[Native button]
B --> D[Tooltip owner]
E[Shared icon styles] --> C
F[Modal style registration] --> E
C --> G[Existing action callbacks]
Technical reviewBest possible solution: Keep IconButton as the presentation owner, preserve existing action semantics and shadow-root styling, and repair consumer assertions and boot growth without relaxing existing gates. Do we have a high-confidence way to reproduce the issue? This PR addresses presentation inconsistency rather than a functional bug; its supplied images show the difference, and existing head CI records the validation failures. Is this the best way to solve the issue? Reusing the existing component and deleting local styling is the smallest coherent approach, provided the affected consumer contracts and asset limits remain covered. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8dd41fc95291. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource -104. Total -104 across 43 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 November 6, 2026, 8:54 AM ET / 13:54 UTC. |
080f27a to
85be61d
Compare
0b79ffe to
5d67385
Compare
…aw#194152) Reuse the existing IconButton for dialog close controls and ghost icon actions, including shadow-root styles, while preserving dialog sizing, accessible labels and recovery behavior. Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Problem and change
Dialog closes and ghost icon actions used inconsistent boxes, glyphs, hover states, and focus treatments. This layer moves them onto the existing
IconButton, includes its styles inside modal shadow roots, and removes superseded CSS. Dialog closes retain their accessible labels and existing 28px desktop / 40–44px touch targets, use the shared radius, and omit tooltips.This PR now contains only its own layer, replayed after the already-merged parent standardization. The newer checkbox, alert, menu, mobile-layout, and icon-type fixes are retained. Bordered controls and the board close's frosted background keep their existing treatment.
Validation
pnpm test ui/src/pages/chat/components/widget-card.test.tsx --maxWorkers=1: 5.45s wall; net test-line change 0. Current CI seconds are pending.git diff --checkpassed. Removed the unused icon import and combined an adjacent duplicate selector without changing declarations.pnpm ui:buildpassed. Performance measurement passes CSS limits but exceeds largest JS by 23 B (560,556 / 560,533), Chat boot by 767 B (1,289,797 / 1,289,030), and New Session boot by 1,026 B (798,406 / 797,380). No budget baseline was changed; the authorized parent lander owns the final exception.Visual evidence
Existing approved captures were inspected and retained; the user waived recapture for the incoming design and mechanical integration.
These captures cover the shown dialogs and usage controls. The remaining migrated surfaces were not recaptured live: board close, ChatGPT usage-limit close, Review diff toolbar/file actions, widget pin/menu, annotation delete, suggestions, portals preview, devices approval, memory actions/menu, plugin editor menu, lazy error action, disclosure chevrons, exec-approval info, personal session groups, and other dialogs. Focused tests cover only the named scenarios above.