From 36afb5f02e52b07b0cfaa393678368f8386d1b87 Mon Sep 17 00:00:00 2001 From: Thomas Petersen Date: Tue, 12 May 2026 11:32:14 -0400 Subject: [PATCH] fix(desktop): make inbox category filters clickable Co-authored-by: Cursor --- desktop/src/features/home/lib/inbox.ts | 20 +++++++++++++++---- .../src/features/home/ui/InboxListPane.tsx | 5 +---- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/desktop/src/features/home/lib/inbox.ts b/desktop/src/features/home/lib/inbox.ts index 1c5f6a4242..83ccc019c8 100644 --- a/desktop/src/features/home/lib/inbox.ts +++ b/desktop/src/features/home/lib/inbox.ts @@ -250,10 +250,22 @@ export function buildInboxItems({ } const feedItems = [ - ...feed.feed.mentions, - ...feed.feed.needsAction, - ...feed.feed.activity, - ...feed.feed.agentActivity, + ...feed.feed.mentions.map((item) => ({ + ...item, + category: "mention" as const, + })), + ...feed.feed.needsAction.map((item) => ({ + ...item, + category: "needs_action" as const, + })), + ...feed.feed.activity.map((item) => ({ + ...item, + category: "activity" as const, + })), + ...feed.feed.agentActivity.map((item) => ({ + ...item, + category: "agent_activity" as const, + })), ]; const threadGroups = new Map< diff --git a/desktop/src/features/home/ui/InboxListPane.tsx b/desktop/src/features/home/ui/InboxListPane.tsx index 1ec7f2c725..ab1a1a0716 100644 --- a/desktop/src/features/home/ui/InboxListPane.tsx +++ b/desktop/src/features/home/ui/InboxListPane.tsx @@ -37,10 +37,7 @@ export function InboxListPane({ }: InboxListPaneProps) { return (
-
+