Repository navigation
ui: shared IconButton for composer, refresh and Sessions toolbar - #194140
Conversation
…lbar icons onto it
|
🦞👀 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 introduces a shared icon button for composer dismissals, refresh actions, and the Sessions toolbar. Example: Hover over Refresh in the desktop Sessions toolbar.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this maintainer-authored PR open: the shared control has a coherent purpose and convincing visual evidence, but two attributable validation failures need focused repairs. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherControl UI renderers pass labels, icons, state, and callbacks into button primitives that produce accessible native controls styled by shared and page-specific CSS. flowchart TD
A[Composer controls] --> D[IconButton]
B[RefreshButton] --> D
C[Sessions toolbar] --> D
C --> E[Popover trigger classes]
D --> F[Native button and tooltip]
E --> G[Shared icon button CSS]
F --> G
Technical reviewBest possible solution: Keep the shared primitive, make its icon contract type-safe, and update the affected Sessions test. Do we have a high-confidence way to reproduce the issue? The supplied before/after screenshots establish the visual variation; this review ran no product code or tests. Is this the best way to solve the issue? A shared visual primitive fits the requested outcome, preserves existing action owners, and needs no additional state or abstraction. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d4ae77eae296. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +113. Total +113 across 16 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:29 AM ET / 13:29 UTC. |
…nclaw#194140) Share the existing icon-only button styling and interaction contract across Control UI callers, preserving native button behavior, disabled states, and tooltips. Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Icon-only controls used separate box, glyph, hover and focus rules. This adds a shared
IconButtonand class contract, migrates composer dismiss controls and the Sessions toolbar, and routes sharedRefreshButtonconsumers through it. Approved glyph sizes, theme radii, attachment badge artwork, and phone hit targets are preserved.The icon prop now accepts a registered icon name or a non-string Solid element, so rendering needs no unchecked cast. Duplicate attachment CSS is consolidated. The unavailable-search test checks the component-owned tooltip while retaining disabled, recovery, and negative callback assertions.
Validation:
One production comparison against the current CI base found chat boot JS at 1,289,167/1,289,137 bytes gzip (+30 over the ceiling; +238 from base). CSS and the other asset budgets pass. Duplicate CSS was consolidated; the remaining JS budget exception is reserved for the maintainer. No budgets were raised.
Existing visual evidence was inspected and retained; these corrections do not change the approved appearance.