@devries-cameron20 / t3code Mirror · read-only / commits / d5ae09aef0
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 23, 09:15 UTC

refactor(mobile): expose native menus through a shared Menu API (#19265)

Julius Marminge committed Oct 15, 2026 at 15:46 UTC d5ae09aef0b44a1e9f5dcbeafe441d2961c7afab
40 files changed +122 -125
apps/mobile/src/components/AndroidAnchoredMenu.tsx
+3 -3
@@ -8,7 +8,7 @@ import Animated, { FadeIn } from "react-native-reanimated";
8
9 import { OverlayPortal } from "./OverlayPortal";
10 import { useAndroidControlSizing } from "./useAndroidControlSizing";
11 -import { MaterialMenuPopup } from "./MaterialMenuPopup";
11 +import { MenuPopup } from "./MenuPopup";
12
13 const SCREEN_MARGIN = 12;
14 const ANCHOR_GAP = 6;
@@ -201,7 +201,7 @@ export function AndroidAnchoredMenu(props: AndroidAnchoredMenuProps) {
201 >
202 <Pressable accessible={false} className="absolute inset-0" onPress={close} />
203 {!placeable || local === null ? null : !anchor.keyboardWasVisible ? (
204 - <MaterialMenuPopup
204 + <MenuPopup
205 anchor={local}
206 menuWidth={menuWidth}
207 actions={levelActions}
@@ -237,7 +237,7 @@ export function AndroidAnchoredMenu(props: AndroidAnchoredMenuProps) {
237 keyboardShouldPersistTaps="always"
238 showsVerticalScrollIndicator={false}
239 >
240 - <MaterialMenuPopup
240 + <MenuPopup
241 inline
242 anchor={local}
243 menuWidth={menuWidth}
apps/mobile/src/components/ComposerAttachmentButton.tsx
+3 -3
@@ -3,7 +3,7 @@ import { Pressable } from "react-native";
3
4 import { useAndroidControlSizing } from "./useAndroidControlSizing";
5 import { SymbolView } from "./AppSymbol";
6 -import { ControlPillMenu } from "./ControlPill";
6 +import { Menu } from "./Menu";
7
8 const ATTACHMENT_MENU_ACTIONS: MenuAction[] = [
9 { id: "photos", title: "Photo Library", image: "photo" },
@@ -41,7 +41,7 @@ export function ComposerAttachmentButton(props: {
41 }
42
43 return (
44 - <ControlPillMenu
44 + <Menu
45 accessible
46 accessibilityLabel="Add attachment"
47 accessibilityRole="button"
@@ -55,6 +55,6 @@ export function ComposerAttachmentButton(props: {
55 }}
56 >
57 {button}
58 - </ControlPillMenu>
58 + </Menu>
59 );
60 }
apps/mobile/src/components/ComposerToolbar.tsx
+1 -1
@@ -232,7 +232,7 @@ export function ComposerActionButton(props: {
232 readonly icon: ComponentProps<typeof SymbolView>["name"];
233 readonly onPress: () => void;
234 readonly variant?: "primary" | "danger";
235 - // Forwarded so a ControlPillMenu can drive this button as its long-press
235 + // Forwarded so a Menu can drive this button as its long-press
236 // anchor: Android injects onLongPress, iOS injects onTouchStart and onPress.
237 readonly onLongPress?: PressableProps["onLongPress"];
238 readonly onTouchStart?: PressableProps["onTouchStart"];
apps/mobile/src/components/ControlPill.tsx
-2
@@ -7,8 +7,6 @@ import { IconButton } from "./IconButton";
7 import { Button } from "./Button";
8 import { useAndroidControlSizing } from "./useAndroidControlSizing";
9
10 -export { ControlPillMenu } from "./ControlPillMenu";
11 -
10 export function ControlPill(props: {
11 readonly icon?: ComponentProps<typeof SymbolView>["name"];
12 readonly iconNode?: ReactNode;
apps/mobile/src/components/CopyTextButton.tsx
+1 -1
@@ -10,7 +10,7 @@ export const CopyTextButton = memo(function CopyTextButton(props: {
10 readonly accessibilityLabel: string;
11 readonly text: string;
12 readonly onCopy?: () => Promise<void>;
13 - /** Lets a long-press menu wrap the button (`ControlPillMenu` injects it on Android). */
13 + /** Lets a long-press menu wrap the button (`Menu` injects it on Android). */
14 readonly onLongPress?: () => void;
15 readonly tintColor?: ColorValue;
16 readonly copiedTintColor?: ColorValue;
apps/mobile/src/components/MediaActionsMenu.tsx
+4 -4
@@ -4,7 +4,7 @@ import { Platform, View, type PressableProps, type StyleProp, type ViewStyle } f
4
5 import type { useMediaActions } from "../state/mediaActions";
6 import { SymbolView } from "./AppSymbol";
7 -import { ControlPillMenu } from "./ControlPill";
7 +import { Menu } from "./Menu";
8
9 export function MediaActionsMenu(props: {
10 readonly media: ReturnType<typeof useMediaActions>;
@@ -15,9 +15,9 @@ export function MediaActionsMenu(props: {
15 if (props.media.actions.length === 0) return props.children ?? null;
16 // Android's normal anchored menu lives in the app-root portal, behind native modals.
17 const nativeAndroidMenu = props.inModal && Platform.OS === "android";
18 - const Menu = nativeAndroidMenu ? MenuView : ControlPillMenu;
18 + const MediaMenu = nativeAndroidMenu ? MenuView : Menu;
19 return (
20 - <Menu
20 + <MediaMenu
21 title={props.media.title}
22 style={props.style}
23 shouldOpenOnLongPress={props.children !== undefined}
@@ -40,6 +40,6 @@ export function MediaActionsMenu(props: {
40 <SymbolView name="ellipsis" size={20} tintColor="#ffffff" type="monochrome" />
41 </View>
42 )}
43 - </Menu>
43 + </MediaMenu>
44 );
45 }
apps/mobile/src/components/Menu.android.tsx renamed
+2 -2
@@ -1,10 +1,10 @@
1 import * as Haptics from "expo-haptics";
2 import { cloneElement, isValidElement, type ReactElement } from "react";
3 import { AndroidAnchoredMenu } from "./AndroidAnchoredMenu";
4 -import type { ControlPillMenuProps } from "./ControlPillMenu.types";
4 +import type { MenuProps } from "./Menu.types";
5
6 /** Uses the same actions as iOS menus, with Android appearance and editor anchoring. */
7 -export function ControlPillMenu(props: ControlPillMenuProps) {
7 +export function Menu(props: MenuProps) {
8 // Long-press menus keep their child interactive: the child element gets
9 // an injected onLongPress (mirroring the iOS context-menu interaction)
10 // so its own tap handling still works.
apps/mobile/src/components/Menu.tsx renamed
+2 -2
@@ -11,7 +11,7 @@ import type { ColorValue, PressableProps } from "react-native";
11 import { withUniwind } from "uniwind";
12 import { useAppearancePreferences } from "../features/settings/appearance/AppearancePreferencesProvider";
13 import { withMenuActionIconColors } from "../lib/menu-action-colors";
14 -import type { ControlPillMenuProps } from "./ControlPillMenu.types";
14 +import type { MenuProps } from "./Menu.types";
15
16 const ThemedMenuView = withUniwind(
17 function NativeMenuView({
@@ -41,7 +41,7 @@ const ThemedMenuView = withUniwind(
41 },
42 );
43
44 -export function ControlPillMenu(props: ControlPillMenuProps) {
44 +export function Menu(props: MenuProps) {
45 const { themeAppearance } = useAppearancePreferences();
46 const isDarkMode = themeAppearance === "dark";
47 const menuPress = useRef({ isPreparing: false, isOpen: false, suppressPress: false });
apps/mobile/src/components/Menu.types.ts renamed
+1 -4
@@ -2,10 +2,7 @@ import type { MenuView } from "@react-native-menu/menu";
2 import type { ComponentProps, ReactNode } from "react";
3 import type { AccessibilityProps } from "react-native";
4
5 -export type ControlPillMenuProps = Omit<
6 - ComponentProps<typeof MenuView>,
7 - "children" | "themeVariant"
8 -> &
5 +export type MenuProps = Omit<ComponentProps<typeof MenuView>, "children" | "themeVariant"> &
6 Pick<AccessibilityProps, "accessible" | "accessibilityLabel" | "accessibilityRole"> & {
7 readonly children: ReactNode;
8 readonly className?: string;
apps/mobile/src/components/MenuPopup.android.tsx renamed
+2 -2
@@ -13,7 +13,7 @@ import { resolveScaledTextRole } from "../lib/appearancePreferences";
13
14 import { useAndroidControlSizing } from "./useAndroidControlSizing";
15 import { useAppearancePreferences } from "../features/settings/appearance/AppearancePreferencesProvider";
16 -import type { MaterialMenuPopupProps } from "./MaterialMenuPopup";
16 +import type { MenuPopupProps } from "./MenuPopup";
17 import { isAppSymbolName, SymbolView, type AppSymbolName } from "./AppSymbol";
18
19 function MenuIcon(props: {
@@ -46,7 +46,7 @@ function MenuIcon(props: {
46 }
47
48 /** Native popup positioned at the original trigger, outside virtualized rows. */
49 -export function MaterialMenuPopup(props: MaterialMenuPopupProps) {
49 +export function MenuPopup(props: MenuPopupProps) {
50 const { appearance, themeVariables: colors } = useAppearancePreferences();
51 const { scale, menuItemHeight } = useAndroidControlSizing();
52 const body = resolveScaledTextRole("body", appearance.baseFontSize);
apps/mobile/src/components/MenuPopup.tsx renamed
+2 -2
@@ -1,6 +1,6 @@
1 import type { MenuAction } from "@react-native-menu/menu";
2
3 -export interface MaterialMenuPopupProps {
3 +export interface MenuPopupProps {
4 readonly menuWidth: number;
5 readonly anchor: {
6 readonly x: number;
@@ -18,6 +18,6 @@ export interface MaterialMenuPopupProps {
18 readonly inline?: boolean;
19 }
20
21 -export function MaterialMenuPopup(_props: MaterialMenuPopupProps) {
21 +export function MenuPopup(_props: MenuPopupProps) {
22 return null;
23 }
apps/mobile/src/components/ScreenHeader.android.tsx
+3 -3
@@ -14,7 +14,7 @@ import { useAppearancePreferences } from "../features/settings/appearance/Appear
14 import { AndroidScreenHeader } from "./AndroidScreenHeader";
15 import { ScreenHeaderButton } from "./ScreenHeaderButton.android";
16 import { SymbolView } from "./AppSymbol";
17 -import { ControlPillMenu } from "./ControlPill";
17 +import { Menu } from "./Menu";
18 import { SearchField } from "./SearchField";
19 import { androidHeaderMenuActions, findHeaderMenuAction } from "./headerMenu.android";
20 import type { ScreenHeaderProps } from "./ScreenHeader.types";
@@ -43,7 +43,7 @@ export function ScreenHeader(props: ScreenHeaderProps) {
43 return () => subscription.remove();
44 }, [closeSearch, searching, search?.mode]);
45 const menuView = props.menus?.map((menu) => (
46 - <ControlPillMenu
46 + <Menu
47 key={menu.title}
48 actions={androidHeaderMenuActions(menu.items)}
49 isAnchoredToRight
@@ -70,7 +70,7 @@ export function ScreenHeader(props: ScreenHeaderProps) {
70 ) : (
71 <ScreenHeaderButton accessibilityLabel={menu.title} icon={menu.icon} />
72 )}
73 - </ControlPillMenu>
73 + </Menu>
74 ));
75 const options = (
76 <NativeStackScreenOptions
apps/mobile/src/features/browser/BrowserTabMenu.tsx
+4 -3
@@ -11,7 +11,8 @@ import {
11 import { PREVIEW_VIEWPORT_PRESETS } from "@t3tools/shared/previewViewport";
12 import { Alert } from "react-native";
13
14 -import { ControlPill, ControlPillMenu } from "../../components/ControlPill";
14 +import { ControlPill } from "../../components/ControlPill";
15 +import { Menu } from "../../components/Menu";
16 import { previewEnvironment } from "../../state/preview";
17 import { useAtomCommand } from "../../state/use-atom-command";
18
@@ -144,7 +145,7 @@ export function BrowserTabMenu({
145 );
146 if (disabled) return pill;
147 return (
147 - <ControlPillMenu
148 + <Menu
149 accessible
150 accessibilityLabel="Browser tab options"
151 accessibilityRole="button"
@@ -152,6 +153,6 @@ export function BrowserTabMenu({
153 onPressAction={({ nativeEvent }) => onAction(nativeEvent.event)}
154 >
155 {pill}
155 - </ControlPillMenu>
156 + </Menu>
157 );
158 }
apps/mobile/src/features/cloud/T3ConnectProfilePage.tsx
+3 -3
@@ -12,7 +12,7 @@ import { Alert, Pressable, RefreshControl, ScrollView, Text, View } from "react-
12 import { AppActivityIndicator } from "../../components/AppActivityIndicator";
13 import { SymbolView } from "../../components/AppSymbol";
14 import { showConfirmDialog } from "../../components/ConfirmDialogHost";
15 -import { ControlPillMenu } from "../../components/ControlPill";
15 +import { Menu } from "../../components/Menu";
16 import { copyTextWithHaptic } from "../../lib/copyTextWithHaptic";
17 import { useAtomCommand } from "../../state/use-atom-command";
18 import {
@@ -176,7 +176,7 @@ export function T3ConnectProfilePage() {
176 size="small"
177 />
178 ) : (
179 - <ControlPillMenu
179 + <Menu
180 actions={ENVIRONMENT_MENU_ACTIONS}
181 isAnchoredToRight
182 onPressAction={() =>
@@ -198,7 +198,7 @@ export function T3ConnectProfilePage() {
198 />
199 </View>
200 </Pressable>
201 - </ControlPillMenu>
201 + </Menu>
202 )
203 }
204 />
apps/mobile/src/features/development/ComponentCatalogScreen.tsx
+3 -3
@@ -5,7 +5,7 @@ import { Alert, Platform, View, type TextInputInstance } from "react-native";
5 import { AppText, AppTextInput } from "../../components/AppText";
6 import { AppSheet } from "../../components/AppSheet";
7 import { Chip } from "../../components/Chip";
8 -import { ControlPillMenu } from "../../components/ControlPillMenu";
8 +import { Menu } from "../../components/Menu";
9 import { ListActionRow } from "../../components/ListActionRow";
10 import { ListChoiceRow } from "../../components/ListChoiceRow";
11 import { ListRow } from "../../components/ListRow";
@@ -221,7 +221,7 @@ export function ComponentCatalogScreen() {
221 <View className="flex-row flex-wrap gap-2">
222 <Button label="Sheet" onPress={() => setSheet(true)} />
223 <Button label="Dialog" onPress={confirm} />
224 - <ControlPillMenu
224 + <Menu
225 title="Example menu"
226 actions={[
227 { id: "copy", title: "Copy", image: "doc.on.doc" },
@@ -232,7 +232,7 @@ export function ComponentCatalogScreen() {
232 }
233 >
234 <Chip label="Menu" trailingIcon="chevron.down" />
235 - </ControlPillMenu>
235 + </Menu>
236 </View>
237 <View className="relative h-3 overflow-hidden rounded-full bg-subtle">
238 <LoadingStrip progress={0.6} />
apps/mobile/src/features/devices/DevicePreviewRouteScreen.tsx
+4 -3
@@ -16,7 +16,8 @@ import { useSafeAreaInsets } from "react-native-safe-area-context";
16 import { SymbolView } from "../../components/AppSymbol";
17 import { AppActivityIndicator } from "../../components/AppActivityIndicator";
18 import { AppText } from "../../components/AppText";
19 -import { ControlPill, ControlPillMenu } from "../../components/ControlPill";
19 +import { ControlPill } from "../../components/ControlPill";
20 +import { Menu } from "../../components/Menu";
21 import { GlassSurface } from "../../components/GlassSurface";
22 import {
23 androidHeaderMenuActions,
@@ -345,7 +346,7 @@ function DevicePreviewScreen({
346
347 function DeviceOptionsMenu({ items }: { readonly items: ReadonlyArray<ScreenHeaderMenuItem> }) {
348 return (
348 - <ControlPillMenu
349 + <Menu
350 actions={androidHeaderMenuActions(items)}
351 isAnchoredToRight
352 title="Device options"
@@ -361,7 +362,7 @@ function DeviceOptionsMenu({ items }: { readonly items: ReadonlyArray<ScreenHead
362 >
363 <SymbolView name="ellipsis" size={18} tintColorClassName="accent-icon" />
364 </Pressable>
364 - </ControlPillMenu>
365 + </Menu>
366 );
367 }
368
apps/mobile/src/features/files/AttachmentFileScreen.tsx
+3 -3
@@ -10,7 +10,7 @@ import { Alert, Platform, ScrollView, View } from "react-native";
10 import { AndroidHeaderIconButton, AndroidScreenHeader } from "../../components/AndroidScreenHeader";
11 import { AppText as Text } from "../../components/AppText";
12 import { AudioFilePreview } from "../../components/AudioFilePreview";
13 -import { ControlPillMenu } from "../../components/ControlPill";
13 +import { Menu } from "../../components/Menu";
14 import { EmptyState } from "../../components/EmptyState";
15 import { FilePreviewModal, type FilePreviewSource } from "../../components/FilePreviewModal";
16 import { useAttachmentDocument } from "../../lib/attachmentDocument";
@@ -368,14 +368,14 @@ export function AttachmentFileScreen(props: AttachmentFileScreenProps) {
368 subtitle={subtitle}
369 onBack={handleBack}
370 trailing={
371 - <ControlPillMenu
371 + <Menu
372 actions={androidMenuActions}
373 isAnchoredToRight
374 title="File actions"
375 onPressAction={handleAndroidMenuAction}
376 >
377 <AndroidHeaderIconButton accessibilityLabel="File actions" icon="ellipsis" />
378 - </ControlPillMenu>
378 + </Menu>
379 }
380 />
381 ) : null}
apps/mobile/src/features/home/MaterialThreadListToolbar.tsx
+2 -2
@@ -15,7 +15,7 @@ import { AndroidHeaderIconButton } from "../../components/AndroidScreenHeader";
15 import { CompactBrandTitle } from "../../components/CompactBrandTitle";
16 import { MaterialFloatingActionButton } from "../../components/MaterialFloatingActionButton";
17 import { AndroidAnchoredMenu } from "../../components/AndroidAnchoredMenu";
18 -import { ControlPillMenu } from "../../components/ControlPill";
18 +import { Menu } from "../../components/Menu";
19 import { SearchField } from "../../components/SearchField";
20 import { useHardwareKeyboardCommand } from "../keyboard/hardwareKeyboardCommands";
21 import { WorkspaceConnectionTitle } from "./WorkspaceConnectionTitle";
@@ -29,7 +29,7 @@ export function MaterialThreadListToolbar(props: {
29 readonly onSearchQueryChange: (query: string) => void;
30 readonly filterActions: MenuAction[];
31 readonly filterCustomized: boolean;
32 - readonly onFilterAction: NonNullable<ComponentProps<typeof ControlPillMenu>["onPressAction"]>;
32 + readonly onFilterAction: NonNullable<ComponentProps<typeof Menu>["onPressAction"]>;
33 readonly onOpenSettings: () => void;
34 readonly onOpenEnvironments: () => void;
35 readonly sidebar?: boolean;
apps/mobile/src/features/home/thread-swipe-actions.tsx
+4 -4
@@ -1,5 +1,5 @@
1 import { SymbolView } from "../../components/AppSymbol";
2 -import { ControlPillMenu } from "../../components/ControlPill";
2 +import { Menu } from "../../components/Menu";
3 import type { MenuAction } from "@react-native-menu/menu";
4 import * as Haptics from "expo-haptics";
5 import {
@@ -64,7 +64,7 @@ interface ThreadSwipeAction {
64 readonly label: string;
65 readonly menu?: {
66 readonly actions: MenuAction[];
67 - readonly onPressAction: NonNullable<ComponentProps<typeof ControlPillMenu>["onPressAction"]>;
67 + readonly onPressAction: NonNullable<ComponentProps<typeof Menu>["onPressAction"]>;
68 readonly title?: string;
69 };
70 readonly onPress: () => void;
@@ -685,14 +685,14 @@ function SwipeActionButton(props: {
685 {props.menu === undefined ? (
686 button
687 ) : (
688 - <ControlPillMenu
688 + <Menu
689 actions={props.menu.actions}
690 onPressAction={props.menu.onPressAction}
691 title={props.menu.title}
692 style={{ height: "100%", width: "100%" }}
693 >
694 {button}
695 - </ControlPillMenu>
695 + </Menu>
696 )}
697 </Animated.View>
698 );
apps/mobile/src/features/pull-requests/PullRequestActivityFilters.tsx
+5 -5
@@ -1,7 +1,7 @@
1 import { Pressable, View } from "react-native";
2 import { AppText as Text } from "../../components/AppText";
3 import { SymbolView } from "../../components/AppSymbol";
4 -import { ControlPillMenu } from "../../components/ControlPillMenu";
4 +import { Menu } from "../../components/Menu";
5 import type { ActivityFilter } from "./pullRequestActivityFilter";
6
7 export function PullRequestActivityFilters({
@@ -20,7 +20,7 @@ export function PullRequestActivityFilters({
20 ] as const;
21 return (
22 <View className="mb-4 flex-row items-center justify-between gap-3">
23 - <ControlPillMenu
23 + <Menu
24 title="Activity"
25 actions={kinds.map((kind) => ({ ...kind, state: value.kind === kind.id ? "on" : "off" }))}
26 onPressAction={({ nativeEvent }) => {
@@ -38,9 +38,9 @@ export function PullRequestActivityFilters({
38 </Text>
39 <SymbolView name="chevron.down" size={11} tintColorClassName="accent-icon-muted" />
40 </Pressable>
41 - </ControlPillMenu>
41 + </Menu>
42 <View className="flex-row items-center gap-3">
43 - <ControlPillMenu
43 + <Menu
44 title="Show in activity"
45 actions={[
46 { id: "bots", title: "Bot comments", state: value.bots ? "on" : "off" },
@@ -69,7 +69,7 @@ export function PullRequestActivityFilters({
69 tintColorClassName="accent-icon-muted"
70 />
71 </Pressable>
72 - </ControlPillMenu>
72 + </Menu>
73 <Pressable
74 accessibilityRole="button"
75 accessibilityLabel={value.newestFirst ? "Newest first" : "Oldest first"}
apps/mobile/src/features/pull-requests/PullRequestAgentRow.tsx
+3 -3
@@ -1,5 +1,5 @@
1 import type { PullRequestDetail } from "@t3tools/contracts";
2 -import { ControlPillMenu } from "../../components/ControlPillMenu";
2 +import { Menu } from "../../components/Menu";
3 import { PullRequestCardRow } from "./PullRequestControls";
4 import type { PullRequestAgentTask } from "./pullRequestAgentTasks";
5 import { usePullRequestAgentActions } from "./usePullRequestAgentActions";
@@ -29,12 +29,12 @@ export function PullRequestAgentRow(props: {
29 );
30 if (agent.threads.length <= 1 || action.attributes.disabled) return row;
31 return (
32 - <ControlPillMenu
32 + <Menu
33 title={props.title ?? action.title}
34 actions={agent.threadActions(props.task)}
35 onPressAction={({ nativeEvent }) => agent.select(nativeEvent.event)}
36 >
37 {row}
38 - </ControlPillMenu>
38 + </Menu>
39 );
40 }
apps/mobile/src/features/pull-requests/PullRequestControls.tsx
+5 -5
@@ -10,7 +10,7 @@ import { SymbolView, type AppSymbolName } from "../../components/AppSymbol";
10 import { Button } from "../../components/Button";
11 import { IconButton } from "../../components/IconButton";
12 import { MaterialFloatingToolbar } from "./MaterialFloatingToolbar";
13 -import { ControlPillMenu } from "../../components/ControlPillMenu";
13 +import { Menu } from "../../components/Menu";
14 import { NativeHeaderToolbar } from "../../native/StackHeader";
15 import { useNativeLayoutMetrics } from "../../native/native-layout-metrics";
16 import { type PullRequestParams } from "./usePullRequestDiff";
@@ -154,7 +154,7 @@ export function PullRequestActionToolbar(props: {
154 <MaterialFloatingToolbar>
155 <View className="flex-row items-center gap-2">
156 {showAgentControls ? (
157 - <ControlPillMenu
157 + <Menu
158 title="AI helpers"
159 actions={agentActions.map((action) => agent.menuAction(action.task))}
160 onPressAction={({ nativeEvent }) => agent.select(nativeEvent.event)}
@@ -166,18 +166,18 @@ export function PullRequestActionToolbar(props: {
166 disabled={agent.disabled}
167 />
168 </View>
169 - </ControlPillMenu>
169 + </Menu>
170 ) : null}
171 {showPrimary ? (
172 <View className="min-w-0 shrink">
173 {!pendingReview && chooseThread ? (
174 - <ControlPillMenu
174 + <Menu
175 title="Open thread"
176 actions={threadMenuItems}
177 onPressAction={({ nativeEvent }) => agent.select(nativeEvent.event)}
178 >
179 <View pointerEvents="none">{primary}</View>
180 - </ControlPillMenu>
180 + </Menu>
181 ) : (
182 primary
183 )}
apps/mobile/src/features/pull-requests/PullRequestFiles.tsx
+3 -3
@@ -7,7 +7,7 @@ import { useState } from "react";
7 import { ActivityIndicator, Pressable, View } from "react-native";
8 import { AppText as Text } from "../../components/AppText";
9 import { EmptyState } from "../../components/EmptyState";
10 -import { ControlPillMenu } from "../../components/ControlPillMenu";
10 +import { Menu } from "../../components/Menu";
11 import { Button } from "../../components/Button";
12 import { IconButton } from "../../components/IconButton";
13 import { SymbolView } from "../../components/AppSymbol";
@@ -215,7 +215,7 @@ export function usePullRequestFilesContent(props: {
215 deletions={parsed.deletions}
216 compact
217 />
218 - <ControlPillMenu
218 + <Menu
219 title="Review files"
220 actions={[
221 {
@@ -234,7 +234,7 @@ export function usePullRequestFilesContent(props: {
234 selected={filter.hideTestFiles}
235 />
236 </View>
237 - </ControlPillMenu>
237 + </Menu>
238 </View>
239 {parsed.files.length === 0 && filter.hiddenCount > 0 ? (
240 <EmptyState
apps/mobile/src/features/pull-requests/PullRequestListFilters.tsx
+2 -2
@@ -1,7 +1,7 @@
1 import { sortProjectsByGroupOrder } from "@t3tools/client-runtime/state/project-grouping";
2 import { useMemo } from "react";
3 import { ScrollView } from "react-native";
4 -import type { ControlPillMenuProps } from "../../components/ControlPillMenu.types";
4 +import type { MenuProps } from "../../components/Menu.types";
5 import { ListFilterMenu } from "../workspace/ListFilterMenu";
6 import { useProjects, useThreadShells } from "../../state/entities";
7 import { useMobileProjectGroupingSettings } from "../../state/project-grouping";
@@ -176,7 +176,7 @@ export function PullRequestListFilters(props: {
176 Number(Boolean(value.filters.review)) +
177 Number(Boolean(value.filters.checks)) +
178 Number(Boolean(value.projectId));
179 - const more: ControlPillMenuProps["actions"] = [
179 + const more: MenuProps["actions"] = [
180 {
181 id: "drafts",
182 title: value.filters.draft ? DRAFTS[value.filters.draft] : "Drafts",
apps/mobile/src/features/pull-requests/PullRequestListRow.tsx
+5 -5
@@ -2,8 +2,8 @@ import { memo } from "react";
2 import { Pressable, View } from "react-native";
3 import { AppText as Text } from "../../components/AppText";
4 import { SymbolView } from "../../components/AppSymbol";
5 -import { ControlPillMenu } from "../../components/ControlPillMenu";
6 -import type { ControlPillMenuProps } from "../../components/ControlPillMenu.types";
5 +import { Menu } from "../../components/Menu";
6 +import type { MenuProps } from "../../components/Menu.types";
7 import { cn } from "../../lib/cn";
8 import { relativeTime } from "../../lib/time";
9 import {
@@ -27,7 +27,7 @@ export const PullRequestListRow = memo(
27 readonly selected: boolean;
28 readonly sidebar: boolean;
29 readonly busy: boolean;
30 - readonly getActions: (item: EnvironmentPullRequestListEntry) => ControlPillMenuProps["actions"];
30 + readonly getActions: (item: EnvironmentPullRequestListEntry) => MenuProps["actions"];
31 readonly onAction: (item: EnvironmentPullRequestListEntry, action: string) => void;
32 }) {
33 const { item } = props;
@@ -56,7 +56,7 @@ export const PullRequestListRow = memo(
56 : "accent-warning-foreground";
57 return (
58 <View style={props.sidebar ? THREAD_LIST_V2_SIDEBAR_ROW_CONTAINER_STYLE : undefined}>
59 - <ControlPillMenu
59 + <Menu
60 shouldOpenOnLongPress
61 title={`#${item.number} · ${item.repository}`}
62 actions={props.getActions(item)}
@@ -185,7 +185,7 @@ export const PullRequestListRow = memo(
185 </View>
186 </View>
187 </Pressable>
188 - </ControlPillMenu>
188 + </Menu>
189 </View>
190 );
191 },
apps/mobile/src/features/pull-requests/PullRequestMergeControls.tsx
+3 -3
@@ -6,7 +6,7 @@ import { useRef, useState } from "react";
6 import { ActivityIndicator, Alert, Platform, Pressable, View } from "react-native";
7 import { AppText as Text } from "../../components/AppText";
8 import { SymbolView } from "../../components/AppSymbol";
9 -import { ControlPillMenu } from "../../components/ControlPillMenu";
9 +import { Menu } from "../../components/Menu";
10 import { Button } from "../../components/Button";
11 import { IconButton } from "../../components/IconButton";
12 import { mobilePreferencesAtom, updateMobilePreferencesAtom } from "../../state/preferences";
@@ -213,7 +213,7 @@ export function PullRequestMergeControls(props: {
213 </Pressable>
214 )}
215 {methods.length > 0 || canAutoMerge ? (
216 - <ControlPillMenu
216 + <Menu
217 title="Merge options"
218 actions={[
219 ...methods.map((id) => ({
@@ -263,7 +263,7 @@ export function PullRequestMergeControls(props: {
263 />
264 </Pressable>
265 )}
266 - </ControlPillMenu>
266 + </Menu>
267 ) : null}
268 </View>
269 {permissions.connected &&
apps/mobile/src/features/pull-requests/PullRequestRouteScreen.tsx
+3 -3
@@ -25,7 +25,7 @@ import {
25 PR_ACTION_LABELS,
26 } from "./pullRequestActions";
27 import * as Clipboard from "expo-clipboard";
28 -import { ControlPillMenu } from "../../components/ControlPillMenu";
28 +import { Menu } from "../../components/Menu";
29 import { IconButton } from "../../components/IconButton";
30 import { Button } from "../../components/Button";
31 import { usePullRequestReviewDraft } from "./usePullRequestReviewDraft";
@@ -965,7 +965,7 @@ export function PullRequestFileRouteScreen({
965 title={title}
966 onBack={() => navigation.goBack()}
967 trailing={
968 - <ControlPillMenu
968 + <Menu
969 actions={[
970 {
971 id: "word-wrap",
@@ -1010,7 +1010,7 @@ export function PullRequestFileRouteScreen({
1010 <View pointerEvents="none">
1011 <IconButton icon="ellipsis" accessibilityLabel="Diff options" />
1012 </View>
1013 - </ControlPillMenu>
1013 + </Menu>
1014 }
1015 />
1016 ) : null}
apps/mobile/src/features/pull-requests/PullRequestStatusRows.tsx
+5 -5
@@ -8,7 +8,7 @@ import { useState } from "react";
8 import { Linking, Pressable, View } from "react-native";
9 import { AppText as Text } from "../../components/AppText";
10 import { SymbolView } from "../../components/AppSymbol";
11 -import { ControlPillMenu } from "../../components/ControlPillMenu";
11 +import { Menu } from "../../components/Menu";
12 import { PullRequestAvatar } from "./PullRequestPresentation";
13 import { PullRequestCardRow } from "./PullRequestControls";
14 import { PullRequestAgentRow } from "./PullRequestAgentRow";
@@ -64,7 +64,7 @@ export function PullRequestStatusMenu(props: RowProps) {
64 );
65 if (!actions.length) return trigger;
66 return (
67 - <ControlPillMenu
67 + <Menu
68 title="Pull request status"
69 actions={actions.map((id) => ({
70 id,
@@ -91,7 +91,7 @@ export function PullRequestStatusMenu(props: RowProps) {
91 }}
92 >
93 {trigger}
94 - </ControlPillMenu>
94 + </Menu>
95 );
96 }
97
@@ -209,7 +209,7 @@ export function PullRequestBranchRow(props: RowProps) {
209 );
210 if (!methods.length && !canResolve) return row;
211 return (
212 - <ControlPillMenu
212 + <Menu
213 title="Branch"
214 actions={[
215 ...(canResolve ? [agent.menuAction("conflicts")] : []),
@@ -222,7 +222,7 @@ export function PullRequestBranchRow(props: RowProps) {
222 }}
223 >
224 {row}
225 - </ControlPillMenu>
225 + </Menu>
226 );
227 }
228
apps/mobile/src/features/pull-requests/guide/GuideOutline.tsx
+3 -3
@@ -4,7 +4,7 @@ import { Pressable, View } from "react-native";
4 import { AppText as Text } from "../../../components/AppText";
5 import { SymbolView } from "../../../components/AppSymbol";
6 import { PullRequestMarkdown } from "../PullRequestMarkdown";
7 -import { ControlPillMenu } from "../../../components/ControlPillMenu";
7 +import { Menu } from "../../../components/Menu";
8
9 import { useAppearancePreferences } from "../../settings/appearance/AppearancePreferencesProvider";
10
@@ -29,7 +29,7 @@ export function GuideOutline({
29 through {files.size} {files.size === 1 ? "file" : "files"}
30 </Text>
31 </View>
32 - <ControlPillMenu
32 + <Menu
33 title="Guide options"
34 actions={[
35 {
@@ -55,7 +55,7 @@ export function GuideOutline({
55 >
56 <SymbolView name="ellipsis" size={20} tintColorClassName="accent-icon-muted" />
57 </Pressable>
58 - </ControlPillMenu>
58 + </Menu>
59 </View>
60 {guide.stops[0]?.summary ? (
61 <View className="mb-6">
apps/mobile/src/features/pull-requests/guide/PullRequestGuideScreen.tsx
+3 -3
@@ -14,7 +14,7 @@ import { SymbolView } from "../../../components/AppSymbol";
14 import { GuideOutline } from "./GuideOutline";
15 import { AppText as Text } from "../../../components/AppText";
16 import { ScreenScrollView } from "../../../components/ScreenScrollView";
17 -import { ControlPillMenu } from "../../../components/ControlPillMenu";
17 +import { Menu } from "../../../components/Menu";
18 import { IconButton } from "../../../components/IconButton";
19 import { useAppearancePreferences } from "../../settings/appearance/AppearancePreferencesProvider";
20 import { NativeHeaderToolbar, NativeStackScreenOptions } from "../../../native/StackHeader";
@@ -144,7 +144,7 @@ export function PullRequestGuideStopScreen({ route }: StaticScreenProps<GuideSto
144 title={`Stop ${route.params.position + 1}`}
145 onBack={() => navigation.goBack()}
146 trailing={
147 - <ControlPillMenu
147 + <Menu
148 actions={[
149 {
150 id: "word-wrap",
@@ -158,7 +158,7 @@ export function PullRequestGuideStopScreen({ route }: StaticScreenProps<GuideSto
158 <View pointerEvents="none">
159 <IconButton icon="ellipsis" accessibilityLabel="Guide options" />
160 </View>
161 - </ControlPillMenu>
161 + </Menu>
162 }
163 />
164 ) : null}
apps/mobile/src/features/pull-requests/usePullRequestListActions.ts
+2 -2
@@ -6,7 +6,7 @@ import * as Clipboard from "expo-clipboard";
6 import { Atom } from "effect/reactivity";
7 import { use, useCallback, useMemo, useRef, useState } from "react";
8 import { Alert, Linking, Platform, Share } from "react-native";
9 -import type { ControlPillMenuProps } from "../../components/ControlPillMenu.types";
9 +import type { MenuProps } from "../../components/Menu.types";
10 import { composerPullRequests } from "../../state/pull-requests";
11 import { useAtomCommand } from "../../state/use-atom-command";
12 import {
@@ -152,7 +152,7 @@ export function usePullRequestListActions(
152 [navigation, params, perform, selectAndroidWorkspace],
153 );
154 const actions = useCallback(
155 - (entry: EnvironmentPullRequestListEntry): ControlPillMenuProps["actions"] => [
155 + (entry: EnvironmentPullRequestListEntry): MenuProps["actions"] => [
156 {
157 id: "open",
158 title: "Open pull request",
apps/mobile/src/features/settings/SettingsScheduledTasksRouteScreen.tsx
+5 -5
@@ -46,7 +46,7 @@ import {
46 EnvironmentMachineSymbol,
47 ENVIRONMENT_MACHINE_SYMBOLS,
48 } from "../../components/EnvironmentMachineSymbol";
49 -import { ControlPillMenu } from "../../components/ControlPill";
49 +import { Menu } from "../../components/Menu";
50 import type { ComposerEditorSelection } from "../../components/ComposerEditor";
51 import { ScreenScrollView as ScrollView } from "../../components/ScreenScrollView";
52 import { SegmentedControl } from "../../components/SegmentedControl";
@@ -203,7 +203,7 @@ function SelectRow(props: {
203 );
204 }
205 return (
206 - <ControlPillMenu
206 + <Menu
207 actions={props.actions}
208 onPressAction={({ nativeEvent }) => props.onSelect(nativeEvent.event)}
209 >
@@ -225,7 +225,7 @@ function SelectRow(props: {
225 type="monochrome"
226 />
227 </Pressable>
228 - </ControlPillMenu>
228 + </Menu>
229 );
230 }
231
@@ -1232,7 +1232,7 @@ function EnvironmentTasks({
1232 </Text>
1233 ) : null}
1234 </Pressable>
1235 - <ControlPillMenu
1235 + <Menu
1236 actions={[
1237 { id: "edit", title: "Edit" },
1238 {
@@ -1279,7 +1279,7 @@ function EnvironmentTasks({
1279 type="monochrome"
1280 />
1281 </Pressable>
1282 - </ControlPillMenu>
1282 + </Menu>
1283 </View>
1284 ))
1285 )}
apps/mobile/src/features/settings/components/SettingsEnvironmentFilterHeader.tsx
+3 -3
@@ -3,7 +3,7 @@ import type { NativeStackHeaderItem } from "@react-navigation/native-stack";
3 import { resolveEnvironmentMachineKind } from "@t3tools/contracts";
4 import { Platform, Pressable } from "react-native";
5
6 -import { ControlPillMenu } from "../../../components/ControlPill";
6 +import { Menu } from "../../../components/Menu";
7 import { SymbolView } from "../../../components/AppSymbol";
8 import { ENVIRONMENT_MACHINE_SYMBOLS } from "../../../components/EnvironmentMachineSymbol";
9 import { NativeStackScreenOptions } from "../../../native/StackHeader";
@@ -153,7 +153,7 @@ export function AndroidSettingsEnvironmentFilter() {
153 : "line.3.horizontal.decrease.circle.fill";
154
155 return (
156 - <ControlPillMenu
156 + <Menu
157 accessible
158 accessibilityRole="button"
159 accessibilityLabel="Filter settings environments and projects"
@@ -208,6 +208,6 @@ export function AndroidSettingsEnvironmentFilter() {
208 >
209 <SymbolView name={filterIcon} size={22} tintColorClassName="accent-icon" />
210 </Pressable>
211 - </ControlPillMenu>
211 + </Menu>
212 );
213 }
apps/mobile/src/features/threads/ThreadComposer.tsx
+3 -3
@@ -96,7 +96,7 @@ import {
96 import { useScaledTextRole } from "../settings/appearance/useScaledTextRole";
97 import type { RemoteClientConnectionState } from "../../lib/connection";
98 import { resolveProviderOptionDescriptors } from "../../lib/providerOptions";
99 -import { ControlPillMenu } from "../../components/ControlPill";
99 +import { Menu } from "../../components/Menu";
100 import type { ActiveTurnComposerAction } from "@t3tools/client-runtime/state/composer-dispatch";
101 import type { FollowUpBehavior } from "../../lib/followUpBehavior";
102 import {
@@ -294,7 +294,7 @@ function SendActionButton(props: {
294 (action): action is ActiveTurnComposerAction => action !== null,
295 );
296 return (
297 - <ControlPillMenu
297 + <Menu
298 accessibilityLabel="Choose how to send this message"
299 shouldOpenOnLongPress
300 actions={actions.map((action) => ({
@@ -308,7 +308,7 @@ function SendActionButton(props: {
308 }
309 >
310 {button}
311 - </ControlPillMenu>
311 + </Menu>
312 );
313 }
314
apps/mobile/src/features/threads/ThreadFeed.tsx
+3 -3
@@ -138,7 +138,7 @@ import {
138 type MediaVideoPreviewSource,
139 } from "../../lib/videoPreviewSource";
140 import { CopyTextButton } from "../../components/CopyTextButton";
141 -import { ControlPillMenu } from "../../components/ControlPill";
141 +import { Menu } from "../../components/Menu";
142 import { copyPromptLink } from "../prompt-links/prompt-link-actions";
143 import { parseReviewCommentMessageSegments } from "../review/reviewCommentSelection";
144 import type { ReviewDiffTheme } from "../review/shikiReviewHighlighter";
@@ -354,7 +354,7 @@ function UserMessageCopyButton(props: {
354 const linkText = replaceComposerContextReferences(props.text, (reference) => reference.label);
355 if (linkText.length > PROMPT_LINK_MAX_PROMPT_LENGTH) return button;
356 return (
357 - <ControlPillMenu
357 + <Menu
358 actions={USER_MESSAGE_COPY_MENU_ACTIONS}
359 onPressAction={({ nativeEvent }) => {
360 if (nativeEvent.event === "copy-prompt-link") void copyPromptLink(linkText);
@@ -362,7 +362,7 @@ function UserMessageCopyButton(props: {
362 shouldOpenOnLongPress
363 >
364 {button}
365 - </ControlPillMenu>
365 + </Menu>
366 );
367 }
368
apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx
+3 -3
@@ -23,7 +23,7 @@ import type { SearchBarCommands } from "react-native-screens";
23
24 import { AppText as Text } from "../../components/AppText";
25 import { CompactBrandTitle } from "../../components/CompactBrandTitle";
26 -import { ControlPillMenu } from "../../components/ControlPill";
26 +import { Menu } from "../../components/Menu";
27 import { SymbolView } from "../../components/AppSymbol";
28 import { NATIVE_LIQUID_GLASS_SUPPORTED } from "../../native/native-glass";
29 import { NativeStackScreenOptions } from "../../native/StackHeader";
@@ -1071,9 +1071,9 @@ function ThreadNavigationSidebarPane(
1071 }
1072 />
1073 <View className="flex-row items-center gap-2.5">
1074 - <ControlPillMenu actions={listMenuActions} onPressAction={handleListMenuAction}>
1074 + <Menu actions={listMenuActions} onPressAction={handleListMenuAction}>
1075 <SidebarFilterButton accessibilityLabel="Filter threads" icon={filterIcon} />
1076 - </ControlPillMenu>
1076 + </Menu>
1077 <SidebarHeaderActions onOpenSettings={props.onOpenSettings} />
1078 </View>
1079 </View>
apps/mobile/src/features/threads/ThreadQueueControl.tsx
+3 -3
@@ -18,7 +18,7 @@ import { Button } from "../../components/Button";
18 import { AndroidSheetHeader } from "../../components/AndroidScreenHeader";
19 import { AppText as Text } from "../../components/AppText";
20 import { SymbolView } from "../../components/AppSymbol";
21 -import { ControlPillMenu } from "../../components/ControlPill";
21 +import { Menu } from "../../components/Menu";
22 import { MaterialScreenContent } from "../../components/MaterialScreenContent";
23 import { scopedThreadKey } from "../../lib/scopedEntities";
24 import { useUniwindTheme } from "../../lib/useUniwindTheme";
@@ -334,7 +334,7 @@ export function ThreadQueueSheet({ route }: StaticScreenProps<QueueTarget>) {
334 background={theme["--color-sheet"]}
335 onRemove={() => void act(run.id, "remove")}
336 >
337 - <ControlPillMenu
337 + <Menu
338 accessibilityLabel={`Actions for queued message ${index + 1}`}
339 shouldOpenOnLongPress
340 actions={[
@@ -411,7 +411,7 @@ export function ThreadQueueSheet({ route }: StaticScreenProps<QueueTarget>) {
411 </Pressable>
412 ) : null}
413 </Pressable>
414 - </ControlPillMenu>
414 + </Menu>
415 </QueueRowSwipeable>
416 </Animated.View>
417 </QueueShiftedRow>
apps/mobile/src/features/threads/thread-list-v2-items.tsx
+5 -5
@@ -27,7 +27,7 @@ import type { SwipeableMethods } from "react-native-gesture-handler/ReanimatedSw
27 import type { ThreadListProvider } from "../../state/thread-list-environments";
28 import { SymbolView, type AppSymbolName } from "../../components/AppSymbol";
29 import { AppText as Text } from "../../components/AppText";
30 -import { ControlPillMenu } from "../../components/ControlPill";
30 +import { Menu } from "../../components/Menu";
31 import { EnvironmentMachineSymbol } from "../../components/EnvironmentMachineSymbol";
32 import { ProjectFavicon } from "../../components/ProjectFavicon";
33 import { ProviderIcon, ProviderInstanceIcon } from "../../components/ProviderIcon";
@@ -450,7 +450,7 @@ export const ThreadListV2PendingRow = memo(function ThreadListV2PendingRow(props
450 {props.showPendingDivider ? (
451 <ThreadListV2SectionDivider label="Unsent" pane={props.pane} />
452 ) : null}
453 - <ControlPillMenu
453 + <Menu
454 actions={isDraft ? DRAFT_TASK_MENU_ACTIONS : PENDING_TASK_MENU_ACTIONS}
455 onPressAction={handleMenuAction}
456 shouldOpenOnLongPress
@@ -488,7 +488,7 @@ export const ThreadListV2PendingRow = memo(function ThreadListV2PendingRow(props
488 </View>
489 )}
490 </RowPressable>
491 - </ControlPillMenu>
491 + </Menu>
492 </>
493 );
494 });
@@ -1329,7 +1329,7 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
1329 threadTitle={thread.title}
1330 >
1331 {(close) => (
1332 - <ControlPillMenu
1332 + <Menu
1333 actions={[
1334 ...(thread.branch
1335 ? [
@@ -1355,7 +1355,7 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
1355 shouldOpenOnLongPress
1356 >
1357 {rowContent(close)}
1358 - </ControlPillMenu>
1358 + </Menu>
1359 )}
1360 </ThreadSwipeable>
1361 </View>
apps/mobile/src/features/usage/UsageRouteScreen.tsx
+3 -3
@@ -51,7 +51,7 @@ import { UsageDailyChart } from "./UsageDailyChart";
51 import { toggleUsageEnvironment } from "./usageEnvironmentSelection";
52 import { useRefreshLimits } from "./UsageLimitsSection";
53 import { UsageLimitsSection } from "./UsageLimitsPooled";
54 -import { ControlPillMenu } from "../../components/ControlPill";
54 +import { Menu } from "../../components/Menu";
55 import { SymbolView } from "../../components/AppSymbol";
56 import type { UsageChartMetric } from "./usageChartData";
57 import { PROVIDER_LABEL, useProviderColors, useUsageMixColors } from "./usageProviders";
@@ -237,7 +237,7 @@ export function UsageRouteScreen() {
237 const environmentFilter = useMemo(
238 () =>
239 showEnvironmentFilter ? (
240 - <ControlPillMenu
240 + <Menu
241 accessible
242 accessibilityRole="button"
243 accessibilityLabel="Filter usage environments"
@@ -255,7 +255,7 @@ export function UsageRouteScreen() {
255 >
256 <SymbolView name={filterIcon} size={22} tintColorClassName="accent-icon" />
257 </Pressable>
258 - </ControlPillMenu>
258 + </Menu>
259 ) : null,
260 [showEnvironmentFilter, environmentActions, selectEnvironment, filterIcon],
261 );
apps/mobile/src/features/workspace/ListFilterMenu.tsx
+5 -5
@@ -1,7 +1,7 @@
1 import { Pressable } from "react-native";
2 import { Chip } from "../../components/Chip";
3 -import { ControlPillMenu } from "../../components/ControlPillMenu";
4 -import type { ControlPillMenuProps } from "../../components/ControlPillMenu.types";
3 +import { Menu } from "../../components/Menu";
4 +import type { MenuProps } from "../../components/Menu.types";
5 import { useAppearancePreferences } from "../settings/appearance/AppearancePreferencesProvider";
6
7 /** A visible filter with a native menu containing only that filter's choices. */
@@ -10,12 +10,12 @@ export function ListFilterMenu(props: {
10 readonly accessibilityLabel: string;
11 readonly active?: boolean;
12 readonly icon?: boolean;
13 - readonly actions: ControlPillMenuProps["actions"];
13 + readonly actions: MenuProps["actions"];
14 readonly onSelect: (id: string) => void;
15 }) {
16 const { themeAppearance } = useAppearancePreferences();
17 return (
18 - <ControlPillMenu
18 + <Menu
19 title={props.accessibilityLabel}
20 actions={props.actions}
21 onPressAction={({ nativeEvent }) => props.onSelect(nativeEvent.event)}
@@ -35,6 +35,6 @@ export function ListFilterMenu(props: {
35 colorScheme={themeAppearance}
36 />
37 </Pressable>
38 - </ControlPillMenu>
38 + </Menu>
39 );
40 }