diff --git a/surfsense_web/app/dashboard/[search_space_id]/connectors/[connector_id]/page.tsx b/surfsense_web/app/dashboard/[search_space_id]/connectors/[connector_id]/page.tsx index e420b9edf..be481eec9 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/connectors/[connector_id]/page.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/connectors/[connector_id]/page.tsx @@ -48,6 +48,11 @@ const getConnectorTypeDisplay = (type: string): string => { JIRA_CONNECTOR: "Jira Connector", DISCORD_CONNECTOR: "Discord Connector", LINKUP_API: "Linkup", + CONFLUENCE_CONNECTOR: "Confluence Connector", + CLICKUP_CONNECTOR: "ClickUp Connector", + GOOGLE_CALENDAR_CONNECTOR: "Google Calendar Connector", + GOOGLE_GMAIL_CONNECTOR: "Google Gmail Connector", + AIRTABLE_CONNECTOR: "Airtable Connector", // Add other connector types here as needed }; return typeMap[type] || type; diff --git a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentTypeIcon.tsx b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentTypeIcon.tsx index 5273fa57e..403acfee4 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentTypeIcon.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentTypeIcon.tsx @@ -11,6 +11,7 @@ import { IconChecklist, IconLayoutKanban, IconMail, + IconTable, IconTicket, } from "@tabler/icons-react"; import { File, Globe, Webhook } from "lucide-react"; @@ -33,6 +34,7 @@ const documentTypeIcons: Record = { CLICKUP_CONNECTOR: IconChecklist, GOOGLE_CALENDAR_CONNECTOR: IconCalendar, GOOGLE_GMAIL_CONNECTOR: IconMail, + AIRTABLE_CONNECTOR: IconTable, }; export function getDocumentTypeIcon(type: string): IconComponent { diff --git a/surfsense_web/components/chat/ChatSources.tsx b/surfsense_web/components/chat/ChatSources.tsx index d7a0d3270..c74369e35 100644 --- a/surfsense_web/components/chat/ChatSources.tsx +++ b/surfsense_web/components/chat/ChatSources.tsx @@ -12,6 +12,7 @@ import { BookOpen, Calendar, CheckSquare, + Database, ExternalLink, FileText, Globe, @@ -86,6 +87,11 @@ function getSourceIcon(type: string) { case "GOOGLE_GMAIL_CONNECTOR": return ; + // Airtable + case "USER_SELECTED_AIRTABLE_CONNECTOR": + case "AIRTABLE_CONNECTOR": + return ; + // YouTube case "USER_SELECTED_YOUTUBE_VIDEO": case "YOUTUBE_VIDEO": diff --git a/surfsense_web/components/chat/ConnectorComponents.tsx b/surfsense_web/components/chat/ConnectorComponents.tsx index d66227e7a..d016fb49e 100644 --- a/surfsense_web/components/chat/ConnectorComponents.tsx +++ b/surfsense_web/components/chat/ConnectorComponents.tsx @@ -8,6 +8,7 @@ import { IconLayoutKanban, IconLinkPlus, IconMail, + IconTable, IconTicket, } from "@tabler/icons-react"; import { @@ -62,6 +63,8 @@ export const getConnectorIcon = (connectorType: string) => { return ; case "GOOGLE_GMAIL_CONNECTOR": return ; + case "AIRTABLE_CONNECTOR": + return ; case "DEEP": return ; case "DEEPER": diff --git a/surfsense_web/components/chat/DocumentsDataTable.tsx b/surfsense_web/components/chat/DocumentsDataTable.tsx index 685178c14..d7a240df9 100644 --- a/surfsense_web/components/chat/DocumentsDataTable.tsx +++ b/surfsense_web/components/chat/DocumentsDataTable.tsx @@ -55,6 +55,10 @@ const DOCUMENT_TYPES: (DocumentType | "ALL")[] = [ "DISCORD_CONNECTOR", "JIRA_CONNECTOR", "CONFLUENCE_CONNECTOR", + "CLICKUP_CONNECTOR", + "GOOGLE_CALENDAR_CONNECTOR", + "GOOGLE_GMAIL_CONNECTOR", + "AIRTABLE_CONNECTOR", ]; const getDocumentTypeColor = (type: DocumentType) => { diff --git a/surfsense_web/hooks/use-documents.ts b/surfsense_web/hooks/use-documents.ts index c88851356..4c7536689 100644 --- a/surfsense_web/hooks/use-documents.ts +++ b/surfsense_web/hooks/use-documents.ts @@ -23,7 +23,11 @@ export type DocumentType = | "LINEAR_CONNECTOR" | "DISCORD_CONNECTOR" | "JIRA_CONNECTOR" - | "CONFLUENCE_CONNECTOR"; + | "CONFLUENCE_CONNECTOR" + | "CLICKUP_CONNECTOR" + | "GOOGLE_CALENDAR_CONNECTOR" + | "GOOGLE_GMAIL_CONNECTOR" + | "AIRTABLE_CONNECTOR"; export function useDocuments(searchSpaceId: number, lazy: boolean = false) { const [documents, setDocuments] = useState([]);