diff options
| author | Christian Cleberg <[email protected]> | 2026-04-12 18:53:13 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-12 18:53:13 -0500 |
| commit | b526cddd8ec421eba00feecbdffae3978cb61b34 (patch) | |
| tree | f8426032d07a92d034975e90decd1ec0f85bd452 /Hutch/App | |
| parent | 92fb89cd35588ee36190c95b1af1e9595b397fae (diff) | |
| download | hutch-b526cddd8ec421eba00feecbdffae3978cb61b34.tar.gz hutch-b526cddd8ec421eba00feecbdffae3978cb61b34.tar.bz2 hutch-b526cddd8ec421eba00feecbdffae3978cb61b34.zip | |
feat: improve Home structure and navigationv2.16.0
implements: https://todo.sr.ht/~ccleberg/hutch/14
implements: https://todo.sr.ht/~ccleberg/hutch/15
implements: https://todo.sr.ht/~ccleberg/hutch/16
Diffstat (limited to 'Hutch/App')
| -rw-r--r-- | Hutch/App/AppState.swift | 6 | ||||
| -rw-r--r-- | Hutch/App/AppStorageKeys.swift | 3 | ||||
| -rw-r--r-- | Hutch/App/RootView.swift | 3 |
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 } } |
