- {isMobile && (
-
- )}
{t("chats") || "Chats"}
@@ -584,25 +550,14 @@ export function AllChatsSidebarContent({
- >
+
);
}
-export function AllChatsSidebar({
- open,
- onOpenChange,
- searchSpaceId,
- onCloseMobileSidebar,
-}: AllChatsSidebarProps) {
- const t = useTranslations("sidebar");
-
+export function AllChatsWorkspaceContent({ searchSpaceId }: { searchSpaceId: string }) {
return (
-
-
-
+
);
}
diff --git a/surfsense_web/components/layout/ui/sidebar/MobileSidebar.tsx b/surfsense_web/components/layout/ui/sidebar/MobileSidebar.tsx
index cb192ba37..40a563ab2 100644
--- a/surfsense_web/components/layout/ui/sidebar/MobileSidebar.tsx
+++ b/surfsense_web/components/layout/ui/sidebar/MobileSidebar.tsx
@@ -27,7 +27,7 @@ interface MobileSidebarProps {
onChatDelete?: (chat: ChatItem) => void;
onChatArchive?: (chat: ChatItem) => void;
onViewAllChats?: () => void;
- isChatsPanelOpen?: boolean;
+ isAllChatsActive?: boolean;
user: User;
onSettings?: () => void;
onManageMembers?: () => void;
@@ -75,7 +75,7 @@ export function MobileSidebar({
onChatDelete,
onChatArchive,
onViewAllChats,
- isChatsPanelOpen = false,
+ isAllChatsActive = false,
user,
onSettings,
onManageMembers,
@@ -166,7 +166,7 @@ export function MobileSidebar({
}
: undefined
}
- isChatsPanelOpen={isChatsPanelOpen}
+ isAllChatsActive={isAllChatsActive}
user={user}
onSettings={
onSettings
diff --git a/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx b/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx
index 6044508b0..6f17a95ce 100644
--- a/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx
+++ b/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx
@@ -75,7 +75,7 @@ interface SidebarProps {
onChatDelete?: (chat: ChatItem) => void;
onChatArchive?: (chat: ChatItem) => void;
onViewAllChats?: () => void;
- isChatsPanelOpen?: boolean;
+ isAllChatsActive?: boolean;
user: User;
onSettings?: () => void;
onManageMembers?: () => void;
@@ -112,7 +112,7 @@ export function Sidebar({
onChatDelete,
onChatArchive,
onViewAllChats,
- isChatsPanelOpen = false,
+ isAllChatsActive = false,
user,
onSettings,
onManageMembers,
@@ -281,7 +281,7 @@ export function Sidebar({
title={t("recents")}
defaultOpen={true}
fillHeight={true}
- alwaysShowAction={!disableTooltips && isChatsPanelOpen}
+ alwaysShowAction={!disableTooltips && isAllChatsActive}
action={
onViewAllChats ? (
) : undefined
}
diff --git a/surfsense_web/components/layout/ui/sidebar/index.ts b/surfsense_web/components/layout/ui/sidebar/index.ts
index fcfe2252d..8a61633b8 100644
--- a/surfsense_web/components/layout/ui/sidebar/index.ts
+++ b/surfsense_web/components/layout/ui/sidebar/index.ts
@@ -1,4 +1,4 @@
-export { AllChatsSidebar, AllChatsSidebarContent } from "./AllChatsSidebar";
+export { AllChatsWorkspaceContent } from "./AllChatsSidebar";
export { ChatListItem } from "./ChatListItem";
export { CreditBalanceDisplay } from "./CreditBalanceDisplay";
export { DocumentsSidebar } from "./DocumentsSidebar";