summaryrefslogtreecommitdiff
path: root/Hutch/App/AppState.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-03-22 20:40:53 -0500
committerChristian Cleberg <[email protected]>2026-03-22 20:40:53 -0500
commit3ed2bb4da64d7cc9b67ef86a3892ab41b14fcc51 (patch)
tree3194f6f3303f4092715f3467ee3d270c2b26427d /Hutch/App/AppState.swift
parent866f9517dba3c878197b0290dd8b4d1becb153c3 (diff)
downloadhutch-3ed2bb4da64d7cc9b67ef86a3892ab41b14fcc51.tar.gz
hutch-3ed2bb4da64d7cc9b67ef86a3892ab41b14fcc51.tar.bz2
hutch-3ed2bb4da64d7cc9b67ef86a3892ab41b14fcc51.zip
feat: surface an alert when a deep link fails to resolve
Diffstat (limited to 'Hutch/App/AppState.swift')
-rw-r--r--Hutch/App/AppState.swift10
1 files changed, 10 insertions, 0 deletions
diff --git a/Hutch/App/AppState.swift b/Hutch/App/AppState.swift
index d5a86fd..e74a58b 100644
--- a/Hutch/App/AppState.swift
+++ b/Hutch/App/AppState.swift
@@ -54,6 +54,7 @@ final class AppState {
/// Set by the deep link handler; consumed by RootView to drive navigation.
var pendingDeepLink: DeepLink?
var pendingTabNavigation: TabNavigationTarget?
+ var deepLinkError: String?
// MARK: - Init
@@ -182,6 +183,14 @@ final class AppState {
selectedTab = .more
}
+ func presentRepositoryDeepLinkError() {
+ deepLinkError = "The repository could not be found or is inaccessible."
+ }
+
+ func presentTicketDeepLinkError() {
+ deepLinkError = "The ticket could not be found or is inaccessible."
+ }
+
// MARK: - Private
private static let meQuery = """
@@ -257,6 +266,7 @@ final class AppState {
currentUser = nil
pendingDeepLink = nil
pendingTabNavigation = nil
+ deepLinkError = nil
selectedTab = .home
}