@devries-cameron20 / t3code-1 / commits / ca4d583054
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(mobile): sheets close with an X and confirm with a checkmark (#21319)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 18, 2026 at 16:14 UTC ca4d58305400ee2628d03c6f967834140031607f
8 files changed +46 -34
apps/mobile/src/components/ui/NumberField.tsx
+21 -4
@@ -1,15 +1,18 @@
1 -import { Button, HStack, Picker, Popover, Text, VStack } from "@expo/ui/swift-ui";
1 +import { Button, HStack, Picker, Popover, Spacer, Text, VStack } from "@expo/ui/swift-ui";
2 import {
3 accessibilityLabel,
4 + buttonBorderShape,
5 buttonStyle,
6 disabled,
7 font,
8 foregroundStyle,
9 frame,
10 + labelStyle,
11 padding,
12 pickerStyle,
13 presentationBackground,
14 tag,
15 + tint,
16 } from "@expo/ui/swift-ui/modifiers";
17 import { useState } from "react";
18
@@ -71,19 +74,33 @@ export function NumberField(props: NumberFieldProps) {
74 </Text>
75 ))}
76 </Picker>
74 - <HStack spacing={24}>
77 + <HStack>
78 <Button
79 label="Cancel"
80 + systemImage="xmark"
81 onPress={() => setOpen(false)}
78 - modifiers={[foregroundStyle(colors["--color-primary-text"])]}
82 + modifiers={[
83 + labelStyle("iconOnly"),
84 + buttonStyle("bordered"),
85 + buttonBorderShape("circle"),
86 + tint(colors["--color-foreground"]),
87 + ]}
88 />
89 + <Spacer />
90 <Button
91 label="Done"
92 + systemImage="checkmark"
93 onPress={() => {
94 setOpen(false);
95 if (!props.disabled && draft !== props.value) props.onValueChange(draft);
96 }}
86 - modifiers={[foregroundStyle(colors["--color-primary-text"])]}
97 + modifiers={[
98 + labelStyle("iconOnly"),
99 + buttonStyle("borderedProminent"),
100 + buttonBorderShape("circle"),
101 + tint(colors["--color-prominent-action"]),
102 + foregroundStyle(colors["--color-prominent-action-foreground"]),
103 + ]}
104 />
105 </HStack>
106 </VStack>
apps/mobile/src/components/ui/Sheet.tsx
+2 -3
@@ -51,10 +51,9 @@ export function Sheet(props: SheetProps) {
51 headerRightBarButtonItems={[
52 {
53 type: "button",
54 - title: "Done",
55 - variant: "done",
54 + icon: { name: "xmark", type: "sfSymbol" },
55 accessibilityLabel: `Close ${props.title}`,
57 - identifier: `app-sheet-done-${screenId}`,
56 + identifier: `app-sheet-close-${screenId}`,
57 onPress: close,
58 },
59 ]}
apps/mobile/src/features/threads/CustomSnoozeSheet.ios.tsx
+7 -1
@@ -257,7 +257,13 @@ function SnoozePopoverNavigation(props: {
257 />
258 </Toolbar>
259 <Toolbar placement="right">
260 - <Toolbar.Button label="Snooze" onPress={props.onSubmit} />
260 + <Toolbar.Button
261 + accessibilityLabel="Snooze"
262 + icon="checkmark"
263 + variant="prominent"
264 + tintColor={colors["--color-prominent-action"]}
265 + onPress={props.onSubmit}
266 + />
267 </Toolbar>
268 <ScrollView
269 contentInsetAdjustmentBehavior="automatic"
apps/mobile/src/features/threads/NewTaskDraftScreen.tsx
+1 -5
@@ -1810,11 +1810,7 @@ export function NewTaskDraftScreen(props: {
1810 }}
1811 />
1812 <Toolbar placement="left">
1813 - <Toolbar.Button
1814 - accessibilityLabel="Cancel new task"
1815 - label="Cancel"
1816 - onPress={closeNewTask}
1817 - />
1813 + <Toolbar.Button accessibilityLabel="Cancel new task" icon="xmark" onPress={closeNewTask} />
1814 </Toolbar>
1815
1816 {heroViewport}
apps/mobile/src/features/threads/ThreadArrangementSheet.tsx
+5 -6
@@ -12,6 +12,7 @@ import { useSafeAreaInsets } from "react-native-safe-area-context";
12
13 import { AppText as Text } from "../../components/ui/AppText";
14 import { SymbolView } from "../../components/ui/AppSymbol";
15 +import { IconButton } from "../../components/ui/IconButton";
16 import { scopedThreadKey } from "../../lib/scopedEntities";
17 import { environmentServerConfigsAtom } from "../../state/server";
18 import { environmentThreadShells } from "../../state/threads";
@@ -378,13 +379,11 @@ export function ThreadArrangementSheet(props: { onClose: () => void }) {
379 >
380 <View className="flex-row items-center justify-between gap-3 px-5 py-3">
381 <Text className="flex-1 text-xl font-t3-semibold">Arrange threads</Text>
381 - <Pressable
382 - accessibilityRole="button"
382 + <IconButton
383 + accessibilityLabel="Close arrange threads"
384 + icon="xmark"
385 onPress={props.onClose}
384 - className="min-h-11 justify-center px-3"
385 - >
386 - <Text className="text-base text-primary-text">Done</Text>
387 - </Pressable>
386 + />
387 </View>
388 <Text className="px-5 pb-3 text-sm text-foreground-muted">
389 Drag to reorder, pin, or settle. Changes save when you drop.
apps/mobile/src/features/threads/ThreadSettingsSheet.tsx
+5 -2
@@ -1120,6 +1120,7 @@ function ThreadSettingsModelsScreen() {
1120 const presentation = useThreadSettingsPickerPresentation();
1121 const navigation = useNavigation<NativeStackNavigationProp<ThreadSettingsPickerStackParams>>();
1122 const usesNativeMailSearchToolbar = useNativeMailSearchToolbar();
1123 + const theme = useUniwindTheme();
1124 const hasCustomCatalogFilter = session.providerFilter !== null || session.showLegacy;
1125 const commitAndClose = () => {
1126 if (!session.commitPendingModel()) return;
@@ -1268,14 +1269,16 @@ function ThreadSettingsModelsScreen() {
1269 <Toolbar placement="left">
1270 <Toolbar.Button
1271 accessibilityLabel="Cancel thread settings"
1271 - label="Cancel"
1272 + icon="xmark"
1273 onPress={presentation.onClose}
1274 />
1275 </Toolbar>
1276 <Toolbar placement="right">
1277 <Toolbar.Button
1278 accessibilityLabel={session.pendingModel ? "Save thread settings" : "Done"}
1278 - label={session.pendingModel ? "Save" : "Done"}
1279 + icon="checkmark"
1280 + variant="prominent"
1281 + tintColor={theme["--color-prominent-action"]}
1282 onPress={commitAndClose}
1283 />
1284 </Toolbar>
apps/mobile/src/features/threads/worktree-setup-sheet.android.tsx
+4 -12
@@ -1,8 +1,7 @@
1 import { Host, ModalBottomSheet, RNHostView } from "@expo/ui/jetpack-compose";
2 -import { Pressable, View, useWindowDimensions } from "react-native";
2 +import { View, useWindowDimensions } from "react-native";
3 import { withUniwind } from "uniwind";
4 import { AndroidSheetHeader } from "../../components/ui/AndroidScreenHeader";
5 -import { AppText as Text } from "../../components/ui/AppText";
5 import type { WorktreeSetupSheetProps } from "./worktree-setup-sheet";
6
7 const NativeBottomSheet = withUniwind(ModalBottomSheet, {
@@ -27,16 +26,9 @@ export function WorktreeSetupSheet({ children, height, onClose }: WorktreeSetupS
26 >
27 <AndroidSheetHeader
28 title="Worktree setup"
30 - trailing={
31 - <Pressable
32 - accessibilityRole="button"
33 - accessibilityLabel="Close setup details"
34 - onPress={onClose}
35 - className="min-h-11 justify-center px-2"
36 - >
37 - <Text className="font-t3-medium text-sm text-foreground">Done</Text>
38 - </Pressable>
39 - }
29 + actions={[
30 + { accessibilityLabel: "Close setup details", icon: "xmark", onPress: onClose },
31 + ]}
32 />
33 {children}
34 </View>
docs/user/thread-sidebar.md
+1 -1
@@ -85,7 +85,7 @@ spot where the thread will land. Drops into either section keep the position you
85 mobile, open a thread's menu and choose **Arrange threads**. Drag a handle within or between
86 **Pinned** and **Active** to reorder, pin, or unpin. Drop onto the **Settled** divider to
87 settle a thread. The dragged card shows the action before you release it. Expand **Snoozed**
88 -or **Settled** to drag a parked thread back into either live section. Each drop saves; **Done** returns to the thread list.
88 +or **Settled** to drag a parked thread back into either live section. Each drop saves; close the sheet to return to the thread list.
89 **Move up** and **Move down** are also available in the thread menu. The server
90 saves the order, so it survives a refresh and appears on your other connected devices.
91