From bc31d594d79e1c18fdc92002338a582ffc48bce1 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Thu, 23 Jul 2026 23:38:02 +0530 Subject: [PATCH] refactor(active-connectors): show import connectors in active list --- .../connector-popup/tabs/active-connectors-tab.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/surfsense_web/components/assistant-ui/connector-popup/tabs/active-connectors-tab.tsx b/surfsense_web/components/assistant-ui/connector-popup/tabs/active-connectors-tab.tsx index 24ee6473f..3d895f2c3 100644 --- a/surfsense_web/components/assistant-ui/connector-popup/tabs/active-connectors-tab.tsx +++ b/surfsense_web/components/assistant-ui/connector-popup/tabs/active-connectors-tab.tsx @@ -11,7 +11,6 @@ import { getDocumentTypeLabel } from "@/lib/documents/document-type-labels"; import { cn } from "@/lib/utils"; import { COMPOSIO_CONNECTORS, - IMPORT_CONNECTOR_TYPES, LIVE_CONNECTOR_TYPES, OAUTH_CONNECTORS, } from "../constants/connector-constants"; @@ -40,11 +39,7 @@ export const ActiveConnectorsTab: FC = ({ onManage, onViewAccountsList, }) => { - // Import connectors (Drive/OneDrive/Dropbox) are managed via the Documents - // sidebar "Import" menu, so they are excluded from the MCP connector list. - const connectors = allActiveConnectors.filter( - (c) => !IMPORT_CONNECTOR_TYPES.has(c.connector_type) - ); + const connectors = allActiveConnectors; // Convert activeDocumentTypes array to Record for utility function const documentTypeCounts = activeDocumentTypes.reduce( (acc, [docType, count]) => {