Unify interactive controls and single-line rows to pill and circle shapes

CO
18m ago
+524-498

Summary

Context: Components across desktop (apps/desktop-gpui), shared web UI (packages/ui, packages/editor, apps/web), and mobile (apps/mobile) mixed pill/circle controls (such as switches, badges, Open calendar, and compact floating bars) with 4px–14px rounded rectangles on buttons, icon buttons, inputs, selects, segmented controls, and single-line menu/nav rows. On web, an older global border-radius: 0 !important rule in apps/web/src/styles.css and 8px JS squircle clips (useSquircleRef) on Button, Badge, SelectTrigger, and Avatar also prevented pill/circle shapes from rendering.

Intention: Unify single-line interactive controls and single-line navigation/menu rows to consistent pill and circle shapes across desktop, web, and mobile while keeping multi-line containers (cards, popovers, dialogs, textareas, code blocks, callouts, and multi-line list rows) as rounded rectangles.

Direction:

  • Desktop (apps/desktop-gpui):
    • Updated single-line interactive controls (buttons, square icon buttons, single-line TextInputs/search bars, selects, segmented control tracks and items, chips/badges, floating single-line toolbars, collapsed Ask anything bar, and audio player bar) and single-line nav/menu rows to radius::FULL, while preserving rounded-rectangle radii (SM–XL) on cards, popovers, dialogs, multi-line textareas, multi-line sidebar/contact/template/automation rows, checkboxes, keycaps, inline code, and thumbnails.
    • Adjusted horizontal pill padding across tight controls/rows and applied directional .rounded_l(radius::FULL) / .rounded_r(radius::FULL) on flush split/segmented controls (where GPUI's overflow_hidden clips rectangularly).
    • Updated apps/desktop-gpui/README.md and ui::theme::radius doc comments.
  • Shared UI & Web (packages/ui, packages/editor, apps/web):
    • Added corner-shape: round for .rounded-full (and directional variants) in packages/ui/src/styles/corners.css so the global * { corner-shape: squircle; } rule does not square off pill/circle ends.
    • Removed 8px useSquircleRef clips from Button, Badge, SelectTrigger, and Avatar (now a clean circle), updated Input, InputGroup (single-line pill, multiline rounded-xl), InputGroupButton, appFloatingItemClassName (dropdown/select/command items), AppToast actions, Dialog close button, and @anlg/editor floating toolbar / slash-command / attachment chips to rounded-full with balanced horizontal padding.
    • Removed the global border-radius: 0 !important override from apps/web/src/styles.css, unified remaining web inputs/icon buttons/menu rows/delta chips/audio player bar to rounded-full, and updated apps/web/AGENTS.md and apps/web/BRAND.md.
  • Mobile (apps/mobile):
    • Set Radius.control and LISTENING_CONTROL_RADIUS to DesignRadius.pill (999), unifying StartListeningButton, EditorAccessory format buttons, FolderPickerSheet search input & rows (with Spacing.md horizontal padding and continuous squircle curve), and NoteActionsSheet action rows while keeping grouped inset Card lists and multi-line cards untouched.

Demo

N/A — visual pass across desktop, web, and mobile; desktop screens were rendered and inspected via tests/screens.rs (main, meeting-after, meeting-after-transcript, search-query, contacts-person, settings-intelligence, settings-transcription-provider-menu, settings-account-signed-in, settings-team-owner, settings-imports-detected, share-managed, transcript-selection-bar, calendar, chat-setup).

Verification

  • Local:
    • apps/desktop-gpui: cargo fmt --check, cargo clippy --locked --workspace --all-targets --no-deps -- -D warnings, cargo test --locked --workspace (1,052 lib + 23 a11y + 1 dictation_capture + 20 runtime lib + 15 library + 15 lifecycle + tests/screens.rs), cargo build --locked, and python3 -m unittest discover -s apps/desktop-gpui/packaging (18 passed) — all passed
    • packages/ui & packages/editor: pnpm -F @anlg/ui build, pnpm -F @anlg/ui typecheck, pnpm -F @anlg/editor typecheck — passed
    • packages/supabase & apps/web: pnpm -F @anlg/supabase typecheck, pnpm -F @anlg/supabase test (36 passed), pnpm -F @anlg/web typecheck, pnpm -F @anlg/web test (403 passed), pnpm -F @anlg/web media:figures:check — passed
    • apps/mobile: pnpm -F @anlg/mobile typecheck, pnpm -F @anlg/mobile test (354 passed) — passed
    • Common checks: pnpm exec dprint check --allow-no-files across all changed files, pnpm exec oxlint --quiet --format=github apps/web/src/ apps/mobile/src/ packages/ (0 errors), license-boundary Python checks — passed; node --test CI script suite 88/90 passed (2 Windows Store tests require pwsh, unavailable locally on macOS).
  • Not run locally: Windows/Linux GPUI native builds, iOS/Android native mobile builds, and full apps/web production SSR bundle (covered by CI).

Summary by cubic

Unifies single-line interactive controls and single-line navigation/menu rows to pill and circle shapes across desktop (apps/desktop-gpui), shared UI (packages/ui, packages/editor), web (apps/web), and mobile (apps/mobile). Multi-line containers — cards, popovers, dialogs, textareas, code blocks, callouts, and multi-line list rows — keep rounded rectangles.

Shape policy

  • Single-line controls (buttons, icon buttons, inputs, selects, segmented control tracks and items, chips, badges, floating toolbars, audio player bars) and single-line menu/nav rows use radius::FULL on desktop, rounded-full on web, and Radius.control = pill on mobile, with balanced horizontal padding.
  • Flush split and segmented controls get directional .rounded_l(radius::FULL) / .rounded_r(radius::FULL) because GPUI's overflow_hidden clips rectangularly.
  • Removes 8px useSquircleRef clips from Button, Badge, SelectTrigger, and Avatar; Avatar is now a clean circle.

Migration

  • Button.smoothCorners and SelectTrigger.corners props are removed; shape now comes from base classes.
  • Removes the global border-radius: 0 !important override from apps/web/src/styles.css, so all radius classes now render.
  • Adds corner-shape: round to .rounded-full (and directional) variants in packages/ui/src/styles/corners.css so pill ends aren't squared off by the global squircle rule.