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
546 B
Swift
20 lines
546 B
Swift
import AppIntents
|
|
|
|
struct OpenTimerIntent: AppIntent {
|
|
static var title: LocalizedStringResource = "Open Time Clock"
|
|
static var description = IntentDescription("Open the beenvoice time clock.")
|
|
static var openAppWhenRun: Bool = true
|
|
static var isDiscoverable: Bool = true
|
|
|
|
@MainActor
|
|
func perform() async throws -> some IntentResult {
|
|
guard let url = URL(string: "beenvoice://timer") else {
|
|
return .result()
|
|
}
|
|
|
|
BeenVoiceIntentHelpers.openDeepLink(url)
|
|
|
|
return .result()
|
|
}
|
|
}
|