From 8b73fd9cd43753b36b3ab3ca5e4dc83a47ea3480 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Mon, 20 Apr 2026 13:04:57 -0500 Subject: fix: add mark all read actions and avoid resending unchanged repo metadata --- Hutch/Views/Work/WorkView.swift | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Hutch/Views/Work') diff --git a/Hutch/Views/Work/WorkView.swift b/Hutch/Views/Work/WorkView.swift index 2326236..8b932dd 100644 --- a/Hutch/Views/Work/WorkView.swift +++ b/Hutch/Views/Work/WorkView.swift @@ -26,6 +26,14 @@ struct WorkView: View { } .navigationTitle("Work") .navigationBarTitleDisplayMode(.inline) + .toolbar { + ToolbarItem(placement: .topBarTrailing) { + Button("Mark All Read") { + viewModel?.markAllInboxThreadsRead() + } + .disabled(viewModel.map { unreadCount($0) } ?? 0 == 0) + } + } .task { guard let currentUser = appState.currentUser else { return } await ensureViewModel(currentUser: currentUser).loadDashboard() -- cgit v1.2.3