From aea3040271fe68a96ab8d0022036d51cb54ae269 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Thu, 15 Jan 2026 17:17:51 +0530 Subject: [PATCH] refactor: update sidebar components for improved styling and consistency - Removed unused type import from `AllPrivateChatsSidebar` and `AllSharedChatsSidebar`. - Adjusted class names for icons in sidebar components to enhance visual consistency. - Updated `SidebarSection` to remove unnecessary gap classes for cleaner layout. - Changed sync version in `client.ts` to v2 for user-specific database architecture. - Modified search chat placeholder text in `en.json` for clarity. --- .../layout/ui/sidebar/AllPrivateChatsSidebar.tsx | 5 ++--- .../layout/ui/sidebar/AllSharedChatsSidebar.tsx | 5 ++--- surfsense_web/components/layout/ui/sidebar/Sidebar.tsx | 8 ++++---- .../components/layout/ui/sidebar/SidebarSection.tsx | 4 ++-- surfsense_web/lib/electric/client.ts | 4 ++-- surfsense_web/messages/en.json | 2 +- 6 files changed, 13 insertions(+), 15 deletions(-) diff --git a/surfsense_web/components/layout/ui/sidebar/AllPrivateChatsSidebar.tsx b/surfsense_web/components/layout/ui/sidebar/AllPrivateChatsSidebar.tsx index 117f8acef..0d1dd281e 100644 --- a/surfsense_web/components/layout/ui/sidebar/AllPrivateChatsSidebar.tsx +++ b/surfsense_web/components/layout/ui/sidebar/AllPrivateChatsSidebar.tsx @@ -34,7 +34,6 @@ import { deleteThread, fetchThreads, searchThreads, - type ThreadListItem, updateThread, } from "@/lib/chat/thread-persistence"; import { cn } from "@/lib/utils"; @@ -410,7 +409,7 @@ export function AllPrivateChatsSidebar({ ) : isSearchMode ? (
{t("no_chats_found") || "No chats found"}
@@ -420,7 +419,7 @@ export function AllPrivateChatsSidebar({{showArchived ? t("no_archived_chats") || "No archived chats" diff --git a/surfsense_web/components/layout/ui/sidebar/AllSharedChatsSidebar.tsx b/surfsense_web/components/layout/ui/sidebar/AllSharedChatsSidebar.tsx index d2e7bf1d1..f50cb028a 100644 --- a/surfsense_web/components/layout/ui/sidebar/AllSharedChatsSidebar.tsx +++ b/surfsense_web/components/layout/ui/sidebar/AllSharedChatsSidebar.tsx @@ -34,7 +34,6 @@ import { deleteThread, fetchThreads, searchThreads, - type ThreadListItem, updateThread, } from "@/lib/chat/thread-persistence"; import { cn } from "@/lib/utils"; @@ -410,7 +409,7 @@ export function AllSharedChatsSidebar({
{t("no_chats_found") || "No chats found"}
@@ -420,7 +419,7 @@ export function AllSharedChatsSidebar({
{showArchived
? t("no_archived_chats") || "No archived chats"
diff --git a/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx b/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx
index a23bec11a..9a632506c 100644
--- a/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx
+++ b/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx
@@ -156,10 +156,10 @@ export function Sidebar({