Repository navigation
improve(ui): standardize the refresh icon button - #190390
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 replaces varied page refresh controls with a shared, accessible icon button and adds immediate Automations refresh feedback. Example: Refresh Meetings while its list request is pending.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 3 items remain Keep open for focused repair; this maintainer-authored visual consolidation is useful but not yet merge-ready. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI renders refresh controls from existing page loading and permission facts, forwards clicks to existing request owners, and displays their resulting state. flowchart LR
User[Browser user] --> Button[Shared refresh button]
Button --> Callback[Existing page callback]
Callback --> Owner[Page request owner]
Owner --> Gateway[Gateway RPC]
Owner --> State[Loading and result state]
State --> Button
Technical reviewBest possible solution: Keep one shared presentation component, preserve page-owned request behavior and sizing exceptions, and repair the specific browser and CSS gate failures. Do we have a high-confidence way to reproduce the issue? Current-main source shows the inconsistent controls and changing loading labels, supported by the author's inspected before-and-after browser captures. Is this the best way to solve the issue? The shared component is a proportionate solution that reuses existing button, icon, tooltip, and request owners; its sizing exception and affected validation need correction. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d20f161513f7. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +30, Tests +2. Total +32 across 35 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 November 1, 2026, 9:30 AM ET / 14:30 UTC. |
Standardize page refresh controls on RefreshButton while preserving current phone layouts and accessible busy and disabled states. Retire a pending Cron refresh presentation on Gateway replacement using its existing lifetime signal. Validated with 104 targeted tests, UI and UI-test typechecks, touched-file checks, and independent correction review. Broad CI may remain pending under the maintainer-authorized ordered landing policy.
What Problem This Solves
The icon that reloads a page's data had a different form on each page: a bordered square with a shadow on Usage and Channels, a 13px glyph on Automations, an 11px glyph on Models. On Automations the existing spinner never showed, because the jobs read holds its update in a transition until it settles. Logbook's button had no accessible name.
User Impact
These icon buttons are now one quiet form. While refreshing, each spins, is disabled, keeps its size and keeps its accessible name. Logbook's button now has a name.
Why This Change Was Made
RefreshButtonis the sharedbtn btn--icon btn--ghost: no chrome at rest, fill on hover, theme radius. It is 32px with a 16px glyph, and 36px on touch or narrow widths. Settings and Automations keep their own 44px touch rule, which is invisible at rest. Usage's header rule no longer applies to this button, which made it 36×32 on touch; it now measures 36×36, and 32×32 at 1280.channels.cssnow also matches this button. Without that rule the section gap went back to 12px, which was the extra 4px after the 4px of box growth.aria-busy.Labelled refresh buttons moved to the icon are in a separate PR, #190426. Both changes use the same RefreshButton owner; the labelled-button migration is already included in main.
Left alone on purpose:
Not Verified
Existing Jitter, Not Changed
Refreshing Channels shows a blue "Refreshing channel status in the background" callout that moves the page down about 90px. Main does the same, measured on both. It is visible in the refreshing image.
Evidence
Mock data, real clicks. The refreshing image holds the response of the request the click sent with the mock Gateway's
deferNext. Size measured the same at rest, busy and after on each page, except Logbook. Real Safari 27 is shown for the spinning state in a narrow window; there a proxy added a small page script that reports the button's position and holds that same response, and the click is a real OS click. Open mobile PRs move some of these controls on phone; this standardizes what is on main.Absolutely light

Absolutely dark

CRT, square corners kept

390px

Refreshing

Right edge, at rest and on hover

Usage at 390px, real Gateway

Real Safari, spinning

Integration validation
Kept the current phone layouts and extracted Usage toolbar. Cron refresh now releases a retired presentation during Gateway replacement without cancelling the admitted read. A mounted-page regression failed before that correction and passed afterward; 104 targeted tests, UI and UI-test typechecks, and touched-file lint/format checks passed. The correction received an independent code review.