@@ -874,7 +871,7 @@ const ChatPage = () => {
setSourcesPage={setSourcesPage}
setSourceFilter={setSourceFilter}
setExpandedSources={setExpandedSources}
- isLoadingMore={isLoadingMore}
+ isLoadingMore={false}
/>
@@ -887,7 +884,7 @@ const ChatPage = () => {
{/* Answer Section */}
- {showAnswer && (
+ {
{message.annotations && (() => {
// Get all ANSWER annotations
@@ -913,7 +910,7 @@ const ChatPage = () => {
return ;
})()}
- )}
+ }
{/* Scroll to bottom button */}
diff --git a/surfsense_web/components/chat/ConnectorComponents.tsx b/surfsense_web/components/chat/ConnectorComponents.tsx
index b6dad8216..56aaa21b1 100644
--- a/surfsense_web/components/chat/ConnectorComponents.tsx
+++ b/surfsense_web/components/chat/ConnectorComponents.tsx
@@ -4,15 +4,14 @@ import {
Plus,
Search,
Globe,
- BookOpen,
Sparkles,
Microscope,
Telescope,
File,
Link,
- Slack,
- Webhook
+ Webhook,
} from 'lucide-react';
+import { IconBrandNotion, IconBrandSlack, IconBrandYoutube } from "@tabler/icons-react";
import { Button } from '@/components/ui/button';
import { Connector, ResearchMode } from './types';
@@ -21,6 +20,8 @@ export const getConnectorIcon = (connectorType: string) => {
const iconProps = { className: "h-4 w-4" };
switch(connectorType) {
+ case 'YOUTUBE_VIDEO':
+ return ;
case 'CRAWLED_URL':
return ;
case 'FILE':
@@ -31,9 +32,9 @@ export const getConnectorIcon = (connectorType: string) => {
case 'TAVILY_API':
return ;
case 'SLACK_CONNECTOR':
- return ;
+ return ;
case 'NOTION_CONNECTOR':
- return ;
+ return ;
case 'DEEP':
return ;
case 'DEEPER':
diff --git a/surfsense_web/components/chat/connector-sources.ts b/surfsense_web/components/chat/connector-sources.ts
index 6f0985730..58a4bd1a4 100644
--- a/surfsense_web/components/chat/connector-sources.ts
+++ b/surfsense_web/components/chat/connector-sources.ts
@@ -15,4 +15,9 @@ export const connectorSourcesMenu = [
name: "Extension",
type: "EXTENSION",
},
+ {
+ id: 4,
+ name: "Youtube Video",
+ type: "YOUTUBE_VIDEO",
+ }
];
\ No newline at end of file
diff --git a/surfsense_web/hooks/useSearchSourceConnectors.ts b/surfsense_web/hooks/useSearchSourceConnectors.ts
index 499bea5b7..2bb6bc1f6 100644
--- a/surfsense_web/hooks/useSearchSourceConnectors.ts
+++ b/surfsense_web/hooks/useSearchSourceConnectors.ts
@@ -43,6 +43,12 @@ export const useSearchSourceConnectors = () => {
name: "Extension",
type: "EXTENSION",
sources: [],
+ },
+ {
+ id: 4,
+ name: "Youtube Video",
+ type: "YOUTUBE_VIDEO",
+ sources: [],
}
]);
@@ -108,6 +114,12 @@ export const useSearchSourceConnectors = () => {
name: "Extension",
type: "EXTENSION",
sources: [],
+ },
+ {
+ id: 4,
+ name: "Youtube Video",
+ type: "YOUTUBE_VIDEO",
+ sources: [],
}
];