From bc512ec08980da8195f814fde7acbd05c38fae82 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Wed, 22 Oct 2025 14:41:47 +0200 Subject: [PATCH] Add chat pannel --- .../components/chat/ChatInterface.tsx | 53 +++++++++++++++---- 1 file changed, 42 insertions(+), 11 deletions(-) diff --git a/surfsense_web/components/chat/ChatInterface.tsx b/surfsense_web/components/chat/ChatInterface.tsx index acd22ad9e..f51b37b57 100644 --- a/surfsense_web/components/chat/ChatInterface.tsx +++ b/surfsense_web/components/chat/ChatInterface.tsx @@ -1,9 +1,13 @@ "use client"; import { type ChatHandler, ChatSection as LlamaIndexChatSection } from "@llamaindex/chat-ui"; +import { PanelRight } from "lucide-react"; +import { useState } from "react"; +import type { ResearchMode } from "@/components/chat"; import { ChatInputUI } from "@/components/chat/ChatInputGroup"; import { ChatMessagesUI } from "@/components/chat/ChatMessages"; import type { Document } from "@/hooks/use-documents"; +import { cn } from "@/lib/utils"; interface ChatInterfaceProps { handler: ChatHandler; @@ -24,19 +28,46 @@ export default function ChatInterface({ searchMode, onSearchModeChange, }: ChatInterfaceProps) { + const [isChatPannelOpen, setIsChatPannelOpen] = useState(false); + return ( -
- -
- +
+
+ +
+ +
+
+
+
+ +
+ +
Chat pannel