summaryrefslogtreecommitdiff
path: root/Hutch/App
diff options
context:
space:
mode:
Diffstat (limited to 'Hutch/App')
-rw-r--r--Hutch/App/AppState.swift6
-rw-r--r--Hutch/App/AppStorageKeys.swift3
-rw-r--r--Hutch/App/RootView.swift3
3 files changed, 12 insertions, 0 deletions
diff --git a/Hutch/App/AppState.swift b/Hutch/App/AppState.swift
index 35ac77f..0f0b036 100644
--- a/Hutch/App/AppState.swift
+++ b/Hutch/App/AppState.swift
@@ -20,6 +20,7 @@ final class AppState {
case tracker(TrackerSummary)
case mailingList(InboxMailingListReference)
case systemStatus
+ case builds
}
enum AuthPhase {
@@ -309,6 +310,11 @@ final class AppState {
selectedTab = .more
}
+ func navigateToBuildsList() {
+ pendingTabNavigation = .builds
+ selectedTab = .builds
+ }
+
func presentRepositoryDeepLinkError() {
deepLinkError = "The repository could not be found or is inaccessible."
}
diff --git a/Hutch/App/AppStorageKeys.swift b/Hutch/App/AppStorageKeys.swift
index c1b39c4..68a9588 100644
--- a/Hutch/App/AppStorageKeys.swift
+++ b/Hutch/App/AppStorageKeys.swift
@@ -8,4 +8,7 @@ enum AppStorageKeys {
static let hutchStatsBaseURL = "hutchStatsBaseURL"
static let systemStatusSnapshotCache = "systemStatusSnapshotCache"
static let systemStatusIncidentCache = "systemStatusIncidentCache"
+ static let homeProjectsExpanded = "homeProjectsExpanded"
+ static let homeAssignedTicketsExpanded = "homeAssignedTicketsExpanded"
+ static let homeBuildsExpanded = "homeBuildsExpanded"
}
diff --git a/Hutch/App/RootView.swift b/Hutch/App/RootView.swift
index 80532a0..baca7a7 100644
--- a/Hutch/App/RootView.swift
+++ b/Hutch/App/RootView.swift
@@ -242,6 +242,9 @@ struct RootView: View {
await settleNavigationTransition()
morePath.append(MoreRoute.systemStatus)
}
+ case .builds:
+ buildsPath = NavigationPath()
+ appState.selectedTab = .builds
}
}