diff --git a/surfsense_web/components/documents/FolderTreeView.tsx b/surfsense_web/components/documents/FolderTreeView.tsx
index ed06abcee..78a8afa43 100644
--- a/surfsense_web/components/documents/FolderTreeView.tsx
+++ b/surfsense_web/components/documents/FolderTreeView.tsx
@@ -336,7 +336,7 @@ export function FolderTreeView({
return (
- {treeNodes}
+ {treeNodes}
);
}
diff --git a/surfsense_web/components/layout/ui/sidebar/AllChatsSidebar.tsx b/surfsense_web/components/layout/ui/sidebar/AllChatsSidebar.tsx
index 93bd51894..db528b13a 100644
--- a/surfsense_web/components/layout/ui/sidebar/AllChatsSidebar.tsx
+++ b/surfsense_web/components/layout/ui/sidebar/AllChatsSidebar.tsx
@@ -11,7 +11,6 @@ import {
RotateCcwIcon,
Search,
Trash2,
- User,
Users,
X,
} from "lucide-react";
@@ -236,8 +235,12 @@ function AllChatsContent({ searchSpaceId, className }: AllChatsContentProps) {
return (
-
-
{t("chats") || "Chats"}
+
+
+
+ {t("chats") || "Chats"}
+
+
{!isSearchMode && (
@@ -276,22 +279,22 @@ function AllChatsContent({ searchSpaceId, className }: AllChatsContentProps) {
-
+
setSearchQuery(e.target.value)}
- className="h-8 border-0 bg-muted pl-8 pr-7 text-sm shadow-none"
+ className="h-12 border-0 bg-muted pl-10 pr-9 text-base shadow-none"
/>
{searchQuery && (
)}
@@ -487,17 +490,11 @@ function AllChatsContent({ searchSpaceId, className }: AllChatsContentProps) {
) : (
-
-
+
{showArchived
? t("no_archived_chats") || "No archived chats"
: t("no_chats") || "No chats"}
- {!showArchived && (
-
- {t("start_new_chat_hint") || "Start a new chat from the chat page"}
-
- )}
)}
diff --git a/surfsense_web/components/layout/ui/sidebar/DocumentsSidebar.tsx b/surfsense_web/components/layout/ui/sidebar/DocumentsSidebar.tsx
index 60cb6659f..1a241023b 100644
--- a/surfsense_web/components/layout/ui/sidebar/DocumentsSidebar.tsx
+++ b/surfsense_web/components/layout/ui/sidebar/DocumentsSidebar.tsx
@@ -176,7 +176,7 @@ function CloudDocumentsSkeleton() {
];
return (
-
+
{rows.map((row) => (
@@ -971,7 +971,7 @@ function AuthenticatedDocumentsSidebarBase({
activeTypesForTree?: DocumentTypeEnum[];
searchQuery?: string;
} = {}) => (
-
+
{deletableSelectedIds.length > 0 && (
-
+
- {inboxItem && (
- onNavItemClick?.(inboxItem)}
- isCollapsed={isCollapsed}
- isActive={inboxItem.isActive}
- badge={inboxItem.badge}
- collapsedIconNode={}
- tooltipContent={isCollapsed ? inboxItem.title : undefined}
- buttonProps={
- {
- "data-joyride": "inbox-sidebar",
- } as React.ButtonHTMLAttributes
- }
- />
- )}
- {automationsItem && (
- onNavItemClick?.(automationsItem)}
- isCollapsed={isCollapsed}
- isActive={automationsItem.isActive}
- tooltipContent={isCollapsed ? automationsItem.title : undefined}
- />
- )}
- {artifactsItem && (
- onNavItemClick?.(artifactsItem)}
- isCollapsed={isCollapsed}
- isActive={artifactsItem.isActive}
- tooltipContent={isCollapsed ? artifactsItem.title : undefined}
- />
- )}
- {documentsItem && (
- onNavItemClick?.(documentsItem)}
- isCollapsed={isCollapsed}
- isActive={documentsItem.isActive}
- tooltipContent={isCollapsed ? documentsItem.title : undefined}
- />
- )}
- {/* Chat sections - fills available space */}
- {isCollapsed ? (
-
- ) : (
-
-
- {!disableTooltips && isAllChatsActive ? t("hide") : t("show_all")}
-
- ) : undefined
- }
- >
- {isLoadingChats ? (
-
- ) : chats.length > 0 ? (
-
-
4 ? "pb-2" : ""}`}
- >
- {chats.slice(0, 20).map((chat) => (
- setOpenDropdownChatId(open ? chat.id : null)}
- onClick={() => onChatSelect(chat)}
- onPrefetch={() => onChatPrefetch?.(chat)}
- onRename={() => onChatRename?.(chat)}
- onArchive={() => onChatArchive?.(chat)}
- onDelete={() => onChatDelete?.(chat)}
- />
- ))}
-
- {/* Gradient fade indicator when more than 4 items */}
- {chats.length > 4 && (
-
- )}
-
- ) : (
- {t("no_chats")}
- )}
-
- {documentsPanel?.open ? (
-
-
-
- ) : null}
+
setIsSidebarNavScrolled(event.currentTarget.scrollTop > 0)}
+ >
+
+ {inboxItem && (
+ onNavItemClick?.(inboxItem)}
+ isCollapsed={isCollapsed}
+ isActive={inboxItem.isActive}
+ badge={inboxItem.badge}
+ collapsedIconNode={}
+ tooltipContent={isCollapsed ? inboxItem.title : undefined}
+ buttonProps={
+ {
+ "data-joyride": "inbox-sidebar",
+ } as React.ButtonHTMLAttributes
+ }
+ />
+ )}
+ {automationsItem && (
+ onNavItemClick?.(automationsItem)}
+ isCollapsed={isCollapsed}
+ isActive={automationsItem.isActive}
+ tooltipContent={isCollapsed ? automationsItem.title : undefined}
+ />
+ )}
+ {artifactsItem && (
+ onNavItemClick?.(artifactsItem)}
+ isCollapsed={isCollapsed}
+ isActive={artifactsItem.isActive}
+ tooltipContent={isCollapsed ? artifactsItem.title : undefined}
+ />
+ )}
+ {documentsItem && (
+ onNavItemClick?.(documentsItem)}
+ isCollapsed={isCollapsed}
+ isActive={documentsItem.isActive}
+ tooltipContent={isCollapsed ? documentsItem.title : undefined}
+ />
+ )}
- )}
+
+ {/* Chat sections - fills available space */}
+ {isCollapsed ? (
+
+ ) : (
+
+
+ {!disableTooltips && isAllChatsActive ? t("hide") : t("show_all")}
+
+ ) : undefined
+ }
+ >
+ {isLoadingChats ? (
+
+ ) : chats.length > 0 ? (
+
+
4 ? "pb-2" : ""}`}>
+ {chats.slice(0, 20).map((chat) => (
+
+ setOpenDropdownChatId(open ? chat.id : null)
+ }
+ onClick={() => onChatSelect(chat)}
+ onPrefetch={() => onChatPrefetch?.(chat)}
+ onRename={() => onChatRename?.(chat)}
+ onArchive={() => onChatArchive?.(chat)}
+ onDelete={() => onChatDelete?.(chat)}
+ />
+ ))}
+
+ {/* Gradient fade indicator when more than 4 items */}
+ {chats.length > 4 && (
+
+ )}
+
+ ) : (
+ {t("no_chats")}
+ )}
+
+ {documentsPanel?.open ? (
+
+
+
+ ) : null}
+
+ )}
+
{/* Footer */}