import { Ionicons } from "@expo/vector-icons"; import * as Linking from "expo-linking"; import { Platform, Pressable, StyleSheet, Text, View } from "react-native"; import { Button } from "@/components/ui/Button"; import { fonts, spacing } from "@/constants/theme"; import { useAppTheme } from "@/contexts/ThemeContext"; import { SHORTCUT_URLS } from "@/lib/shortcuts"; const SHORTCUT_ACTIONS = [ { title: "Clock In", subtitle: "Start timer with your last client", url: SHORTCUT_URLS.clockIn }, { title: "Clock Out", subtitle: "Stop the running timer", url: SHORTCUT_URLS.clockOut }, { title: "Open Time Clock", subtitle: "Jump to the timer tab", url: SHORTCUT_URLS.openTimer }, ] as const; export function ShortcutsSetupCard() { const { colors } = useAppTheme(); if (Platform.OS !== "ios") { return null; } return ( beenvoice actions appear when you build a shortcut — they are not pre-installed in your library. After installing a native build (not Expo Go), open the app once, then: 1. Open the Shortcuts app → tap + → Add Action 2. Search beenvoice (or Clock In / Clock Out) 3. Pick Clock In, Clock Out, or Open Time Clock You can also ask Siri: “Clock in with beenvoice”. Pick a client once on the Timer tab before your first clock-in shortcut. If nothing shows up, reinstall from a fresh native build (TestFlight or{" "} bun run ios). Shortcuts require iOS 18+. {SHORTCUT_ACTIONS.map((action) => ( void Linking.openURL(action.url)} style={({ pressed }) => [ styles.actionRow, { borderColor: colors.border, backgroundColor: pressed ? colors.muted : "transparent", }, ]} > {action.title} {action.subtitle} ))}