Repository navigation
feat(mobile): unify corner radii across the app - #36437
Conversation
Findings
|
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
cf196900-3e6c-41bd-8555-0f841994d288
Files selected for processing: 144-
mobile/app/h/[hostId]/edit.tsxmobile/app/pair-confirm.tsxmobile/app/pair.tsxmobile/src/accounts/mobile-accounts-screen-styles.tsmobile/src/agent-history/agent-history-styles.tsmobile/src/browser/MobileBrowserKeyRow.tsxmobile/src/browser/MobileBrowserLoadProgress.tsxmobile/src/browser/MobileBrowserPointerModifiers.tsxmobile/src/browser/MobileBrowserToolbarIconButton.tsxmobile/src/browser/MobileBrowserViewModeSwitch.tsxmobile/src/browser/mobile-browser-pane-styles.tsmobile/src/components/ActionSheetModal.tsxmobile/src/components/AgentSpinner.tsxmobile/src/components/AgentStateDot.tsxmobile/src/components/CodexResetCreditAction.tsxmobile/src/components/ConfirmModal.tsxmobile/src/components/ConnectionLog.tsxmobile/src/components/CustomKeyModal.styles.tsmobile/src/components/HostDiagnosticsLink.tsxmobile/src/components/JiraConnectPrompt.tsxmobile/src/components/MobileAgentIcon.tsxmobile/src/components/MobileDictationSetupSheet.tsxmobile/src/components/MobileHomeQuickActions.tsxmobile/src/components/MobileHostCard.tsxmobile/src/components/MobileHtmlPreview.tsxmobile/src/components/MobileLoadErrorState.tsxmobile/src/components/MobileRepoIcon.tsxmobile/src/components/MobileRichMarkdownToolbar.tsxmobile/src/components/MobileSearchField.tsxmobile/src/components/MobileSegmentedControl.tsxmobile/src/components/MobileSourceCopyButton.tsxmobile/src/components/NativeScreenRecovery.tsxmobile/src/components/NewWorkspaceFab.tsxmobile/src/components/NewWorktreeProjectTargetFields.tsxmobile/src/components/PickerListDrawer.tsxmobile/src/components/PickerModal.tsxmobile/src/components/ProtocolBlockScreen.tsxmobile/src/components/RightDrawer.tsxmobile/src/components/SetupHookTrustDrawer.tsxmobile/src/components/SmartWorkspaceSourceField.tsxmobile/src/components/SmartWorkspaceSourceRow.tsxmobile/src/components/StatusDot.tsxmobile/src/components/TextInputModal.tsxmobile/src/components/VoiceModelList.tsxmobile/src/components/WorkspaceDetailPlaceholder.tsxmobile/src/components/WorktreeAgentSummary.tsxmobile/src/components/WorktreeListRow.tsxmobile/src/components/bottom-drawer-styles.tsmobile/src/components/composer-input/composer-input-styles.tsmobile/src/components/mobile-diff-review-control-styles.tsmobile/src/components/mobile-diff-review-layout-styles.tsmobile/src/components/mobile-markdown-styles.tsmobile/src/components/new-worktree-form-styles.tsmobile/src/components/pr-sidebar/CommentMarkdown.tsxmobile/src/components/pr-sidebar/MermaidDiagram.tsxmobile/src/components/pr-sidebar/MobileLinkPrForm.tsxmobile/src/components/pr-sidebar/mobile-pr-sidebar-styles.tsmobile/src/components/pr-sidebar/pr-actions-styles.tsmobile/src/components/pr-sidebar/pr-ai-triage-styles.tsmobile/src/components/pr-sidebar/pr-comments-styles.tsmobile/src/components/pr-sidebar/pr-conflict-styles.tsmobile/src/components/pr-sidebar/pr-create-empty-state-styles.tsmobile/src/components/pr-sidebar/pr-title-edit-styles.tsmobile/src/components/smart-workspace-source-drawer-styles.tsmobile/src/components/terminal-shortcut-settings-styles.tsmobile/src/diagnostics/connection-diagnostics-screen-styles.tsmobile/src/diagnostics/troubleshoot-screen-styles.tsmobile/src/files/mobile-file-explorer-styles.tsmobile/src/files/mobile-file-preview-styles.tsmobile/src/home/AppUpdateCard.tsxmobile/src/home/MobileHomeAccountUsageCards.tsxmobile/src/home/MobileHomeEmptyState.tsxmobile/src/home/MobileHomeListHeader.tsxmobile/src/home/MobileHomeResumeCard.tsxmobile/src/home/MobileHomeTasksCard.tsxmobile/src/home/MobileHomeTopBar.tsxmobile/src/host-screen/host-screen-primary-styles.tsmobile/src/host-screen/host-screen-secondary-styles.tsmobile/src/host-screen/workspace-options-count-badge.tsxmobile/src/mobile-web-shell/PageRouteUnavailableScreen.tsxmobile/src/mobile-web-shell/ShellDevFacts.tsxmobile/src/mobile-web-shell/ShellStateScreen.tsxmobile/src/mobile-web-shell/terminal-direction-pad.tsxmobile/src/mobile-web-shell/terminal-key-rail.tsxmobile/src/notifications/NotificationDeliverySection.tsxmobile/src/onboarding/NotificationOnboardingPreview.tsxmobile/src/onboarding/mobile-onboarding-styles.tsmobile/src/pair-scan-styles.tsmobile/src/session/MobileTerminalLiveInputStatus.tsxmobile/src/session/QuickCommandEditorForm.tsxmobile/src/session/QuickCommandRow.tsxmobile/src/session/QuickCommandsList.tsxmobile/src/session/QuickCommandsSheet.tsxmobile/src/session/mobile-native-chat-view-styles.tsmobile/src/session/mobile-session-command-input-styles.tsmobile/src/session/mobile-session-frame-styles.tsmobile/src/session/mobile-session-reader-styles.tsmobile/src/session/mobile-session-review-comment-styles.tsmobile/src/session/native-chat/composer/MobileNativeChatComposer.test.tsmobile/src/session/native-chat/composer/MobileNativeChatComposerAttachments.tsxmobile/src/session/native-chat/composer/MobileNativeChatComposerMenu.tsxmobile/src/session/native-chat/input/MobileNativeChatAsk.tsxmobile/src/session/native-chat/input/MobileNativeChatAskOptionRow.tsxmobile/src/session/native-chat/input/MobileNativeChatBackgroundTasks.tsxmobile/src/session/native-chat/input/MobileNativeChatPermission.tsxmobile/src/session/native-chat/input/MobileNativeChatPromptCard.tsxmobile/src/session/native-chat/input/MobileNativeChatQuestion.tsxmobile/src/session/native-chat/input/MobileNativeChatSessionOptionRows.tsxmobile/src/session/native-chat/input/mobile-native-chat-queued-message-styles.tsmobile/src/session/native-chat/input/mobile-native-chat-session-option-picker-styles.tsmobile/src/session/native-chat/transcript/MobileNativeChatNoticeRow.tsxmobile/src/session/native-chat/transcript/MobileNativeChatSubagentGroup.tsxmobile/src/session/native-chat/transcript/mobile-native-chat-message-styles.tsmobile/src/session/native-chat/transcript/mobile-native-chat-tool-styles.tsmobile/src/session/native-chat/visual/MobileNativeChatImageViewer.tsxmobile/src/session/native-chat/visual/MobileNativeChatVisual.tsxmobile/src/session/native-chat/visual/mobile-native-chat-visual-theme.tsmobile/src/session/terminal-dock-styles.tsmobile/src/settings/about-screen.tsxmobile/src/settings/app-update-settings-rows.tsxmobile/src/settings/appearance-settings-styles.tsmobile/src/settings/browser-settings-screen.tsxmobile/src/settings/mobile-settings-menu.tsxmobile/src/settings/native-chat-settings-screen.tsxmobile/src/settings/notification-display-test.tsxmobile/src/settings/notification-settings-screen.tsxmobile/src/settings/pending-credential-cleanup-card.tsxmobile/src/settings/voice-settings-styles.tsmobile/src/source-control/MobileGitHistoryList.tsxmobile/src/source-control/mobile-source-control-diff-styles.tsmobile/src/source-control/mobile-source-control-hub-styles.tsmobile/src/source-control/mobile-source-control-list-styles.tsmobile/src/source-control/mobile-source-control-styles.tsmobile/src/tasks/mobile-tasks-chrome-styles.tsmobile/src/tasks/mobile-tasks-composer-action-styles.tsmobile/src/tasks/mobile-tasks-detail-styles.tsmobile/src/tasks/mobile-tasks-diff-comment-styles.tsmobile/src/tasks/mobile-tasks-list-styles.tsmobile/src/tasks/mobile-tasks-project-picker-styles.tsmobile/src/tasks/mobile-tasks-workspace-review-styles.tsmobile/src/terminal/terminal-settings-screen-styles.tsmobile/src/terminal/terminal-webview-engine-error-state.tsxmobile/src/theme/mobile-theme.tsmobile/src/theme/themed-styles.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
-
Corners had drifted to 17 different radii, so a screen mixed 6 pt buttons, 14 pt cards, 12 pt groups and 4 pt badges. Every corner now comes from the shape of what it is: - control (12): anything you tap — buttons, icon buttons, fields, pickers, segmented controls, key caps. - surface (16): anything that holds content — cards, groups, sheets, banners, code boxes. Dialogs and the composer box use floating (24). - pill: badges, chips, status pills, dots, avatars and the composer's own round buttons. - tile (10) for icon squares and mark (4) for inline code and check squares; nested shapes take the parent's radius minus the gap. Every rounded style also asks for the continuous (squircle) corner curve; iOS draws it, Android and the web ignore it.
The continuous curve squares off a corner radius that reaches half the element's size, so the FAB, dots, avatars and the composer's round buttons stopped being round on iOS.
8c5f3ae to
399d886
Compare
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
6dd19c77-c98f-4086-bcff-1640acc91163
Files selected for processing: 2-
mobile/src/components/AnchoredDetailCard.tsxmobile/src/theme/themed-styles.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
-
React Native strokes an unclipped visible border on a circular path while it fills the background with the continuous curve, so the two edges drifted apart at the corners.
b86bd56 to
280714a
Compare
ELI5
Rounded corners in Orca Mobile had drifted to 17 different sizes, so one screen could show 6 pt buttons next to 14 pt cards, 12 pt groups and 4 pt badges. Now every corner follows what the thing is. Things you tap share one corner, things that hold content share another, and only badges, chips and the composer's round buttons are pills.
What Changed
radiiinmobile/src/theme/mobile-theme.tsis now a set of shapes, not sizes:controlsurfacefloatingpilltilemarkconcentricRadius(parent, gap), the parent's radius minus the gap, so inner curves run parallel to the outer ones. Examples are option rows inside question cards, attachments inside the composer, segments inside a framed control, and board cards in a column.button,row,input(all 6),card(14),camera,composer,composerItem, and every literal radius in the app.themedStyleSheetnow addsborderCurve: 'continuous'to every rounded style. iOS draws Apple's smooth corner curve there, while Android and the web pages ignore the key. New styles get the curve automatically.Why
There was no rule, so each new screen picked a number, and the same kind of element ended up with different corners:
A size scale (xs–xl) was the first attempt. It still mixed several sizes per screen and left every new element to pick a step. Tying the corner to the element's role removes the choice:
We compared these options in an HTML mock, plus a version with fully round buttons. We chose rounded-rectangle buttons with pills kept for labels and the composer's buttons, because it reads calmer and keeps a pill meaning "label".
Linked Issue
None. This is a maintainer change, and there was no existing issue to link.
Visual Proof
Each image shows main on the left and this branch on the right. All shots are from the OTA pages in WebKit at iPhone size.
Testing
These all pass on the branch rebased onto current main:
pnpm lintpnpm tcand the mobile test typecheckcheck:code-quality:changedcheck:react-doctor:changedcheck:zustand-selector-fanoutverify:mobile-localizationborderCurveAll 58 page screens were captured before and after, and the images above are from that run. The only test change is the composer test's expected radius token. There's no new test: this is a value change, and the screenshots show the result.
Not tested on a phone or simulator, so the manual box is unticked. In particular, the continuous curve hasn't been checked on a native iOS screen yet.
AI Disclosure
Review
themed-styles.ts: it now addsborderCurveto each rounded style objectcreate()builds. That's the only behaviour change outside the radius values.Agent skill upstream boundary
Notes
borderCurveand keeps circular corners at the same radii.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)