From 4da133055a3d64bb3cee68fec03ac98a802682b6 Mon Sep 17 00:00:00 2001 From: Alex Lebedev Date: Mon, 20 Apr 2026 11:15:54 +0200 Subject: [PATCH] feat: Add Conversations source to the filter + Allow searching by report uuid. --- .../features/inbox/components/list/FilterSortMenu.tsx | 6 ++++++ .../inbox/components/utils/source-product-icons.tsx | 6 ++++++ .../features/inbox/stores/inboxSignalsFilterStore.ts | 3 ++- .../code/src/renderer/features/inbox/utils/filterReports.ts | 3 ++- 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/apps/code/src/renderer/features/inbox/components/list/FilterSortMenu.tsx b/apps/code/src/renderer/features/inbox/components/list/FilterSortMenu.tsx index d4cbedeb3..71784b09d 100644 --- a/apps/code/src/renderer/features/inbox/components/list/FilterSortMenu.tsx +++ b/apps/code/src/renderer/features/inbox/components/list/FilterSortMenu.tsx @@ -15,6 +15,7 @@ import { FunnelSimple as FunnelSimpleIcon, GithubLogoIcon, KanbanIcon, + LifebuoyIcon, ListNumbers, TicketIcon, TrendUp, @@ -96,6 +97,11 @@ const SOURCE_PRODUCT_OPTIONS: { { value: "github", label: "GitHub", icon: }, { value: "linear", label: "Linear", icon: }, { value: "zendesk", label: "Zendesk", icon: }, + { + value: "conversations", + label: "Conversations", + icon: , + }, ]; const ITEM_CLASS_NAME = diff --git a/apps/code/src/renderer/features/inbox/components/utils/source-product-icons.tsx b/apps/code/src/renderer/features/inbox/components/utils/source-product-icons.tsx index c8d209fb6..f7fdbc7c5 100644 --- a/apps/code/src/renderer/features/inbox/components/utils/source-product-icons.tsx +++ b/apps/code/src/renderer/features/inbox/components/utils/source-product-icons.tsx @@ -4,6 +4,7 @@ import { BugIcon, GithubLogoIcon, KanbanIcon, + LifebuoyIcon, TicketIcon, VideoIcon, } from "@phosphor-icons/react"; @@ -47,4 +48,9 @@ export const SOURCE_PRODUCT_META: Record< color: "var(--green-9)", label: "Zendesk", }, + conversations: { + Icon: LifebuoyIcon, + color: "var(--cyan-9)", + label: "Conversations", + }, }; diff --git a/apps/code/src/renderer/features/inbox/stores/inboxSignalsFilterStore.ts b/apps/code/src/renderer/features/inbox/stores/inboxSignalsFilterStore.ts index 865b4b765..57b6ce395 100644 --- a/apps/code/src/renderer/features/inbox/stores/inboxSignalsFilterStore.ts +++ b/apps/code/src/renderer/features/inbox/stores/inboxSignalsFilterStore.ts @@ -18,7 +18,8 @@ export type SourceProduct = | "llm_analytics" | "github" | "linear" - | "zendesk"; + | "zendesk" + | "conversations"; const DEFAULT_STATUS_FILTER: SignalReportStatus[] = [ "ready", diff --git a/apps/code/src/renderer/features/inbox/utils/filterReports.ts b/apps/code/src/renderer/features/inbox/utils/filterReports.ts index 300d79f31..c494c70bb 100644 --- a/apps/code/src/renderer/features/inbox/utils/filterReports.ts +++ b/apps/code/src/renderer/features/inbox/utils/filterReports.ts @@ -19,7 +19,8 @@ export function filterReportsBySearch( return reports.filter( (report) => report.title?.toLowerCase().includes(lower) || - report.summary?.toLowerCase().includes(lower), + report.summary?.toLowerCase().includes(lower) || + report.id.toLowerCase().includes(lower), ); }