Skip to content

improve(ui): consistent corner radii across the Control UI - #189695

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/control-ui-radius
Oct 31, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/control-ui-radius

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Corner radii had drifted across the Control UI: about 170 declarations hardcoded values from 6 to 24 px instead of using the radius scale. Containers of the same kind differed (10, 14 and 16 px page panels), hardcoded values ignored the theme, so CRT stayed rounded in those places, and one settings group variant was smaller than the others.

User Impact

Surfaces of the same kind now share one corner, slightly more generous on panels, and CRT stays square. No sizes, layout, colors or copy change.

Why This Change Was Made

Hardcoded radii move onto the existing chain, which themes already pin:

Tier Token Value Used by
Surface --radius-xl 20 px, matches the composer's 25 px superellipse Docked Details panel, task suggestion, large panels
Card --radius-lg 14 px Page panels, cards, settings and mobile list groups, previews
Control --radius-md 10 px Rows, buttons, tiles, images, inner blocks
Inset --radius-sm 6 px Small icon buttons, chips, small avatars
Pill unchanged full Pills, avatars, toggles

Nested menus that overrode the menu radius now use --menu-radius.

Left as they are on purpose:

Evidence

Real app through pnpm dev:ui:mock --fixture session-design, with data at the fixture layer, no DOM insertion and nothing hidden. Details comes from its real toggle and mobile Details from the header. Theme applied by loading the theme stylesheet and setting the root theme attributes. Before and After full frames at 1440x900 and 390x844, both on the same current main.

Computed values on the reachable default pages: settings group variant 14 to 17.5 px, Portals panels 10 to 14 px, Activity list 10 to 14 px, Activity images 8 to 10 px, activity pill avatar 7 to 6 px.

Absolutely dark

Before After
Settings group, Models
Portals panels
Activity list
Details panel
Details, 390 px

Absolutely light

Before After
Settings group, Models
Portals panels
Activity list
Details panel
Details, 390 px

CRT stays square

Before After
Portals panels
Details panel

Beacon

Before After
Settings group, Models
Details panel

Checks

  • Integrated current main after the prerequisite changes. The toast dismiss button retains its landed menu-item radius; all restored selectors are preserved.
  • The standalone unsupported-browser button retains its original 8 px fallback until the shared stylesheet arrives.
  • Scoped stylelint, formatting and diff checks pass.
  • ui:check-performance:base efd616ac8ac57bc28f863ad3a52eb3ec44f18322 passes, including both builds. Total CSS is 308,658 B gzip (+107 B against base), below the 309,366 B ceiling; raw CSS is 1,593,741 B, below the 1,599,319 B ceiling.
  • Independent review found no blocking or high-priority issues. No new permanent cosmetic tests were added.
  • The screenshots above remain the original visual evidence; they were not recaptured for the integration.

Gaps

Not reached in the fixture, so these have the token change but no screenshot: terminal, desktop and browser panels, link reader, board widgets, logbook, dreams, session diff, permission card, device pairing, onboarding memory import, mobile session actions and subagent lists.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces hardcoded Control UI corner radii with existing theme tokens and removes unused CSS selectors.

Example: Open Portals in the Absolutely theme.

  • Before: The navigation and preview panels have hardcoded 10px corners.
  • After: Both panels use the shared 14px card-radius token.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused token-based visual cleanup with inspected product screenshots and no definite correctness finding.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the real Control UI with fixture-backed data and show the changed Models settings-group and Portals panel corners; the body explicitly identifies surfaces not captured.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Similar Control UI surfaces have inconsistent corners, and hardcoded radii bypass theme styling.
Reason: The maintainer-authored direction extends the existing corner design without adding settings or a competing styling owner.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR is a coherent visual improvement with no concrete introduced defect found; the failing lint check remains unattributed.

Priority: P3
Reviewed head: e6bb95865894f6fe651708d51dce7f3cd609e379

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control UI styles combine shared radius tokens, browser corner-shape support, and theme overrides to render panels and controls.

flowchart TD
  A[Shared radius tokens] --> D[Component styles]
  B[Theme overrides] --> D
  C[Browser corner support] --> D
  D --> E[Panels and controls]
  E --> F[Rendered Control UI]
Loading

Technical review

Best possible solution:

Retain the existing radius owners and this focused token cutover, then resolve the lint failure according to its actual cause.

Do we have a high-confidence way to reproduce the issue?

Current-main CSS directly shows the hardcoded radii, and inspected before/after screenshots demonstrate the visible inconsistency on Models and Portals; no target code was executed during review.

Is this the best way to solve the issue?

Reusing existing radius and menu tokens is the smallest complete approach, and the removed selectors have no surviving source references.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 27b1717849b0.

Provenance checked

  • Shared surface radii and continuous curvature keeps the original intent (2925065: Establish consistent continuous curvature while retaining deliberate exclusions for pills and circular chrome.)
  • Carapace settings-group radius changes intended behavior with a stated reason (b988ce9: The Plugins and Skills workspace introduced the shared settings-surface styling; this PR explains and demonstrates matching that variant to the existing scaled settings-group treatment.)
  • Nested menu radii keeps the original intent (07fae10: Menus and pickers use shared surface tokens and preserve theme-specific corner character.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source -90. Total -90 across 68 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 68 180 270 -90
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 68 180 270 -90

Labels

Label changes:

  • add P3: This is visual consistency and theme polish without an established broken core workflow.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is visual consistency and theme polish without an established broken core workflow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Inspect the failed changed-lint diagnostic and establish whether the failure comes from this diff.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 31, 2026, 3:32 PM ET / 19:32 UTC.

@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/control-ui-radius branch from e6bb958 to c3e12d9 Compare October 31, 2026 21:05
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) October 31, 2026 22:49
@vyctorbrzezowski
vyctorbrzezowski merged commit 2b13bba into main Oct 31, 2026
82 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/control-ui-radius branch October 31, 2026 22:50
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant