From ffc0ef0988b5e7d01951c23af85a1cf026b3da9f Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Wed, 18 Mar 2026 22:56:34 -0500 Subject: add Home dashboard and repository build status indicators --- Hutch/App/RootView.swift | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'Hutch/App/RootView.swift') diff --git a/Hutch/App/RootView.swift b/Hutch/App/RootView.swift index 7af162d..79411ed 100644 --- a/Hutch/App/RootView.swift +++ b/Hutch/App/RootView.swift @@ -6,13 +6,15 @@ struct RootView: View { @Environment(AppState.self) private var appState enum Tab: Hashable { + case home case repositories case builds case tickets case settings } - @State private var selectedTab: Tab = .repositories + @State private var selectedTab: Tab = .home + @State private var homePath = NavigationPath() @State private var repoPath = NavigationPath() @State private var buildsPath = NavigationPath() @State private var ticketsPath = NavigationPath() @@ -47,6 +49,14 @@ struct RootView: View { private var tabContent: some View { TabView(selection: $selectedTab) { + NavigationStack(path: $homePath) { + HomeView() + } + .tag(Tab.home) + .tabItem { + Label("Home", systemImage: "house") + } + NavigationStack(path: $repoPath) { RepositoryListView() } @@ -106,10 +116,11 @@ struct RootView: View { case .launching: break case .unauthenticated: + homePath = NavigationPath() repoPath = NavigationPath() buildsPath = NavigationPath() ticketsPath = NavigationPath() - selectedTab = .repositories + selectedTab = .home isResolvingDeepLink = false case .authenticated: consumePendingDeepLinkIfPossible(appState.pendingDeepLink) -- cgit v1.2.3