From 202821a4436e2605141191e9c3d288948c2392c5 Mon Sep 17 00:00:00 2001 From: Evgeny Shurakov Date: Tue, 31 Mar 2026 15:49:41 +0200 Subject: [PATCH] feat(cloud-agent): add Slack to sidebar platform filters --- src/components/cloud-agent-next/ChatSidebar.tsx | 12 ++++++++---- src/routers/cli-sessions-router.ts | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/cloud-agent-next/ChatSidebar.tsx b/src/components/cloud-agent-next/ChatSidebar.tsx index 28d7c559ff..f7bcb1a882 100644 --- a/src/components/cloud-agent-next/ChatSidebar.tsx +++ b/src/components/cloud-agent-next/ChatSidebar.tsx @@ -248,7 +248,7 @@ function SessionRow({ ); } -const PLATFORM_FILTERS = ['all', 'cloud-agent', 'cli', 'extension'] as const; +const PLATFORM_FILTERS = ['all', 'cloud-agent', 'cli', 'slack', 'extension'] as const; function platformFilterLabel(p: (typeof PLATFORM_FILTERS)[number]): string { switch (p) { @@ -258,6 +258,8 @@ function platformFilterLabel(p: (typeof PLATFORM_FILTERS)[number]): string { return 'Cloud'; case 'cli': return 'CLI'; + case 'slack': + return 'Slack'; case 'extension': return 'Ext'; } @@ -475,9 +477,11 @@ export function ChatSidebar({ ? 'Cloud' : platformFilter === 'cli' ? 'CLI' - : platformFilter === 'extension' - ? 'Ext' - : platformFilter} + : platformFilter === 'slack' + ? 'Slack' + : platformFilter === 'extension' + ? 'Ext' + : platformFilter} )} diff --git a/src/routers/cli-sessions-router.ts b/src/routers/cli-sessions-router.ts index 5434c8fbcd..707c003ef9 100644 --- a/src/routers/cli-sessions-router.ts +++ b/src/routers/cli-sessions-router.ts @@ -46,6 +46,7 @@ export const KNOWN_PLATFORMS = [ 'cli', 'agent-manager', 'app-builder', + 'slack', ] as const; const PAGE_SIZE = 10;