From 6ba4e967d5dfb5d3c7bb97a0f2662f3180595563 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Thu, 19 Mar 2026 15:17:38 -0500 Subject: feat: implement support for projects, lists, and pastes --- Hutch/Views/Inbox/InboxView.swift | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'Hutch/Views/Inbox/InboxView.swift') diff --git a/Hutch/Views/Inbox/InboxView.swift b/Hutch/Views/Inbox/InboxView.swift index 602f8d9..304e62d 100644 --- a/Hutch/Views/Inbox/InboxView.swift +++ b/Hutch/Views/Inbox/InboxView.swift @@ -51,9 +51,9 @@ struct InboxView: View { ) } else if viewModel.threads.isEmpty, viewModel.error == nil { ContentUnavailableView( - "No Threads", + "Inbox Zero", systemImage: "tray", - description: Text("Patch threads will appear here.") + description: Text("Unread threads will appear here.") ) } } @@ -75,19 +75,16 @@ struct InboxView: View { private func readStateAction(for thread: InboxThreadSummary, in viewModel: InboxViewModel) -> some View { Button { withAnimation(.easeInOut(duration: 0.2)) { - viewModel.toggleThreadReadState(thread) + viewModel.markThreadRead(thread) } } label: { - Label( - thread.isUnread ? "Mark as Read" : "Mark as Unread", - systemImage: thread.isUnread ? "envelope.open" : "envelope.badge" - ) + Label("Mark as Read", systemImage: "envelope.open") } - .tint(thread.isUnread ? .blue : .gray) + .tint(.blue) } } -private struct InboxThreadRow: View { +struct InboxThreadRow: View { let thread: InboxThreadSummary var body: some View { -- cgit v1.2.3