Official URL migration preserves sessions, shortcuts prefs, and last clock-in client; auth screens match web with legal links; time clock and invoice editor/send flows are updated for the new domain and UI patterns. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
575 B
Swift
20 lines
575 B
Swift
import AppIntents
|
|
|
|
struct ClockOutIntent: AppIntent {
|
|
static var title: LocalizedStringResource = "Clock Out"
|
|
static var description = IntentDescription("Stop the running beenvoice timer and save your time.")
|
|
static var openAppWhenRun: Bool = true
|
|
static var isDiscoverable: Bool = true
|
|
|
|
@MainActor
|
|
func perform() async throws -> some IntentResult {
|
|
guard let url = URL(string: "beenvoice://shortcuts/clock-out") else {
|
|
return .result()
|
|
}
|
|
|
|
BeenVoiceIntentHelpers.openDeepLink(url)
|
|
|
|
return .result()
|
|
}
|
|
}
|