From 596515f5236cada751dd1d37736369a05250ec96 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Thu, 22 Jan 2026 04:02:32 +0530 Subject: [PATCH] feat: integrate Drawer component for mobile filtering in InboxSidebar - Added a Drawer component to replace the dropdown menu for filtering in the InboxSidebar on mobile devices, enhancing usability. - Implemented state management for the filter drawer, allowing users to select filters and connectors seamlessly. - Updated the UI to accommodate the new Drawer, ensuring a consistent experience across different screen sizes. - Enhanced connector filtering logic to improve item management and display options effectively. --- .../comment-panel/comment-panel.tsx | 4 +- .../comment-sheet/comment-sheet.tsx | 40 ++- .../layout/ui/sidebar/InboxSidebar.tsx | 333 +++++++++++++----- surfsense_web/components/ui/drawer.tsx | 140 ++++++++ surfsense_web/components/ui/sheet.tsx | 4 +- surfsense_web/messages/en.json | 4 +- surfsense_web/messages/zh.json | 4 +- surfsense_web/package.json | 1 + surfsense_web/pnpm-lock.yaml | 18 + 9 files changed, 445 insertions(+), 103 deletions(-) create mode 100644 surfsense_web/components/ui/drawer.tsx diff --git a/surfsense_web/components/chat-comments/comment-panel/comment-panel.tsx b/surfsense_web/components/chat-comments/comment-panel/comment-panel.tsx index 0def32932..c72c77f65 100644 --- a/surfsense_web/components/chat-comments/comment-panel/comment-panel.tsx +++ b/surfsense_web/components/chat-comments/comment-panel/comment-panel.tsx @@ -69,7 +69,7 @@ export function CommentPanel({ style={!isMobile && effectiveMaxHeight ? { maxHeight: effectiveMaxHeight } : undefined} > {hasThreads && ( -
+ {t("filter") || "Filter"} +
++ {t("connectors") || "Connectors"} +
+