From 3ed2bb4da64d7cc9b67ef86a3892ab41b14fcc51 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sun, 22 Mar 2026 20:40:53 -0500 Subject: feat: surface an alert when a deep link fails to resolve --- Hutch/App/AppState.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Hutch/App/AppState.swift') 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 } -- cgit v1.2.3