From b526cddd8ec421eba00feecbdffae3978cb61b34 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sun, 12 Apr 2026 18:53:13 -0500 Subject: feat: improve Home structure and navigation implements: https://todo.sr.ht/~ccleberg/hutch/14 implements: https://todo.sr.ht/~ccleberg/hutch/15 implements: https://todo.sr.ht/~ccleberg/hutch/16 --- Hutch/App/AppState.swift | 6 ++++++ Hutch/App/AppStorageKeys.swift | 3 +++ Hutch/App/RootView.swift | 3 +++ 3 files changed, 12 insertions(+) (limited to 'Hutch/App') 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 } } -- cgit v1.2.3