From 8bdb2fbd1e0346d0a763aec04e41b62b99795bcb Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Sun, 5 Jul 2026 23:21:27 -0700 Subject: [PATCH] nvrsion: Add: Fix Chat: Restore native header type and remove archive button in SessionsView. Nucleic-Promote: 1 Co-authored-by: Nucleic --- .../NucleicRemote/Views/SessionsView.swift | 31 +------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/NucleicRemote/NucleicRemote/Views/SessionsView.swift b/NucleicRemote/NucleicRemote/Views/SessionsView.swift index 71d0d9e..4389191 100644 --- a/NucleicRemote/NucleicRemote/Views/SessionsView.swift +++ b/NucleicRemote/NucleicRemote/Views/SessionsView.swift @@ -79,12 +79,7 @@ struct SessionsView: View { .compactTabBarInset() } } - // The title is rendered as content (`sessionsHeader`) rather than a system - // `.navigationTitle`, so the archive toggle can sit on the same row, centered with it - // (a system toolbar item can only ride in the compact bar, floating above a large - // title). The empty inline bar keeps the top band matching the Home dashboard. - .navigationBarTitleDisplayMode(.inline) - .safeAreaInset(edge: .top, spacing: 0) { sessionsHeader } + .navigationTitle("Sessions") .navigationDestination(for: SessionID.self) { id in SessionDetailView(sessionID: id) } @@ -110,30 +105,6 @@ struct SessionsView: View { } } - /// The page's large title as content, so the archive toggle can share its row (vertically - /// centered with the title) instead of floating in the compact bar above it. Mirrors the Home - /// dashboard's greeting header — same large-title font and top band — for a consistent look. - private var sessionsHeader: some View { - HStack { - Text("Sessions").font(.largeTitle.bold()) - Spacer() - Button { - showArchived.toggle() - } label: { - Image(systemName: showArchived ? "archivebox.fill" : "archivebox") - .font(.title3) - } - .foregroundStyle(Palette.accent) - .accessibilityLabel(showArchived ? "Hide archived sessions" : "Show archived sessions") - } - .padding(.horizontal) - .padding(.top, 52) - .padding(.bottom, 8) - .frame(maxWidth: .infinity) - // Cover the list rows that scroll up behind the pinned header. - .background(Color(.systemGroupedBackground)) - } - /// Push the session a notification tap asked for, then clear the request. private func consumeRoute() { guard let route = store.pendingRoute else { return }