From 9050405b4f33b2b9b70458fcf3e43b80c940eef7 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sun, 12 Apr 2026 00:55:42 -0500 Subject: add shortcuts widgets and power-user workflows --- Hutch/App/HutchApp.swift | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Hutch/App/HutchApp.swift') diff --git a/Hutch/App/HutchApp.swift b/Hutch/App/HutchApp.swift index fda0f06..e65833c 100644 --- a/Hutch/App/HutchApp.swift +++ b/Hutch/App/HutchApp.swift @@ -15,6 +15,21 @@ struct HutchApp: App { appState.pendingDeepLink = link } } + .onChange(of: HutchIntentNavigator.shared.pendingDestination) { _, destination in + guard let destination else { return } + HutchIntentNavigator.shared.pendingDestination = nil + let link: DeepLink + switch destination { + case .home: link = .home + case .inbox: link = .home + case .builds: link = .buildsTab + case .repositories: link = .repositoriesTab + case .trackers: link = .trackersTab + case .systemStatus: link = .systemStatus + case .lookup: link = .lookup + } + appState.pendingDeepLink = link + } } } } -- cgit v1.2.3