From 056b2e270b62d3a7642b5ca35b3174a934ab5b09 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Sun, 3 May 2026 22:52:43 +0530 Subject: [PATCH] refactor(ui): enhance Drawer component structure and styling; add Manage Connectors option to dropdown menu --- .../components/assistant-ui/thread.tsx | 66 +++++++++++-------- .../comment-sheet/comment-sheet.tsx | 5 +- 2 files changed, 40 insertions(+), 31 deletions(-) diff --git a/surfsense_web/components/assistant-ui/thread.tsx b/surfsense_web/components/assistant-ui/thread.tsx index e5b6e4da8..6ec33c281 100644 --- a/surfsense_web/components/assistant-ui/thread.tsx +++ b/surfsense_web/components/assistant-ui/thread.tsx @@ -69,7 +69,13 @@ import { import { PromptPicker, type PromptPickerRef } from "@/components/new-chat/prompt-picker"; import { Avatar, AvatarFallback, AvatarGroup } from "@/components/ui/avatar"; import { Button } from "@/components/ui/button"; -import { Drawer, DrawerContent, DrawerHandle, DrawerTitle } from "@/components/ui/drawer"; +import { + Drawer, + DrawerContent, + DrawerHandle, + DrawerHeader, + DrawerTitle, +} from "@/components/ui/drawer"; import { DropdownMenu, DropdownMenuContent, @@ -900,15 +906,28 @@ const ComposerAction: FC = ({ isBlockedByOtherUser = false Upload Files + setConnectorDialogOpen(true)}> + + Manage Connectors + - - + + -
- Manage Tools -
-
+ + + Manage Tools + + +
{groupedTools .filter((g) => !g.connectorIcon) .map((group) => ( @@ -1003,15 +1022,6 @@ const ComposerAction: FC = ({ isBlockedByOtherUser = false
- ) : ( @@ -1212,17 +1222,19 @@ const ComposerAction: FC = ({ isBlockedByOtherUser = false
)}
- void handleScreenCapture()} - > - - + {isDesktop && ( + void handleScreenCapture()} + > + + + )} !thread.isRunning}> - - + Comments {commentCount > 0 && ( @@ -56,7 +54,6 @@ export function CommentSheet({ > - Comments {commentCount > 0 && (