Add iOS Shortcuts/Siri intents, local send-reminder notifications, stable client picker with last-client defaults, account refresh/remove, and softer session handling on unauthorized API responses. Co-authored-by: Cursor <cursoragent@cursor.com>
37 lines
1.1 KiB
Swift
37 lines
1.1 KiB
Swift
import AppIntents
|
|
|
|
@available(iOS 16.0, *)
|
|
struct BeenVoiceShortcuts: AppShortcutsProvider {
|
|
static var appShortcuts: [AppShortcut] {
|
|
[
|
|
AppShortcut(
|
|
intent: ClockInIntent(),
|
|
phrases: [
|
|
"Clock in with \(.applicationName)",
|
|
"Start timer in \(.applicationName)",
|
|
],
|
|
shortTitle: "Clock In",
|
|
systemImageName: "play.circle.fill"
|
|
),
|
|
AppShortcut(
|
|
intent: ClockOutIntent(),
|
|
phrases: [
|
|
"Clock out in \(.applicationName)",
|
|
"Stop timer in \(.applicationName)",
|
|
],
|
|
shortTitle: "Clock Out",
|
|
systemImageName: "stop.circle.fill"
|
|
),
|
|
AppShortcut(
|
|
intent: OpenTimerIntent(),
|
|
phrases: [
|
|
"Open time clock in \(.applicationName)",
|
|
"Open timer in \(.applicationName)",
|
|
],
|
|
shortTitle: "Time Clock",
|
|
systemImageName: "timer"
|
|
),
|
|
]
|
|
}
|
|
}
|