diff --git a/web/src/app/assistants/gallery/WrappedAssistantsGallery.tsx b/web/src/app/assistants/gallery/WrappedAssistantsGallery.tsx index afb5f6a7a60e..4169d85d84de 100644 --- a/web/src/app/assistants/gallery/WrappedAssistantsGallery.tsx +++ b/web/src/app/assistants/gallery/WrappedAssistantsGallery.tsx @@ -1,31 +1,15 @@ "use client"; import SidebarWrapper from "../SidebarWrapper"; -import { ChatSession } from "@/app/chat/interfaces"; -import { Folder } from "@/app/chat/folders/interfaces"; -import { Persona } from "@/app/admin/assistants/interfaces"; -import { User } from "@/lib/types"; import { AssistantsGallery } from "./AssistantsGallery"; export default function WrappedAssistantsGallery({ - chatSessions, - initiallyToggled, - folders, - openedFolders, + toggleSidebar, }: { - chatSessions: ChatSession[]; - folders: Folder[]; - initiallyToggled: boolean; - openedFolders?: { [key: number]: boolean }; + toggleSidebar: boolean; }) { return ( - + ); diff --git a/web/src/app/assistants/gallery/page.tsx b/web/src/app/assistants/gallery/page.tsx index ccb59b95d98b..691d5757a59f 100644 --- a/web/src/app/assistants/gallery/page.tsx +++ b/web/src/app/assistants/gallery/page.tsx @@ -5,6 +5,7 @@ import { unstable_noStore as noStore } from "next/cache"; import { redirect } from "next/navigation"; import WrappedAssistantsGallery from "./WrappedAssistantsGallery"; import { cookies } from "next/headers"; +import { ChatProvider } from "@/components/context/ChatContext"; export default async function GalleryPage(props: { searchParams: Promise<{ [key: string]: string }>; @@ -26,22 +27,38 @@ export default async function GalleryPage(props: { openedFolders, toggleSidebar, shouldShowWelcomeModal, + availableSources, + ccPairs, + documentSets, + tags, + llmProviders, + defaultAssistantId, } = data; return ( - <> + {shouldShowWelcomeModal && ( )} - - + + ); } diff --git a/web/src/app/assistants/mine/WrappedAssistantsMine.tsx b/web/src/app/assistants/mine/WrappedAssistantsMine.tsx index 3e54662b8cbe..d5b581e4009c 100644 --- a/web/src/app/assistants/mine/WrappedAssistantsMine.tsx +++ b/web/src/app/assistants/mine/WrappedAssistantsMine.tsx @@ -1,28 +1,14 @@ "use client"; import { AssistantsList } from "./AssistantsList"; import SidebarWrapper from "../SidebarWrapper"; -import { ChatSession } from "@/app/chat/interfaces"; -import { Folder } from "@/app/chat/folders/interfaces"; export default function WrappedAssistantsMine({ - chatSessions, initiallyToggled, - folders, - openedFolders, }: { - chatSessions: ChatSession[]; - folders: Folder[]; initiallyToggled: boolean; - openedFolders?: { [key: number]: boolean }; }) { return ( - + ); diff --git a/web/src/app/assistants/mine/page.tsx b/web/src/app/assistants/mine/page.tsx index 7058e7d3db2c..d6e66c5f12ea 100644 --- a/web/src/app/assistants/mine/page.tsx +++ b/web/src/app/assistants/mine/page.tsx @@ -6,6 +6,7 @@ import { redirect } from "next/navigation"; import WrappedAssistantsMine from "./WrappedAssistantsMine"; import { WelcomeModal } from "@/components/initialSetup/welcome/WelcomeModalWrapper"; import { cookies } from "next/headers"; +import { ChatProvider } from "@/components/context/ChatContext"; export default async function GalleryPage(props: { searchParams: Promise<{ [key: string]: string }>; @@ -27,21 +28,37 @@ export default async function GalleryPage(props: { openedFolders, toggleSidebar, shouldShowWelcomeModal, + availableSources, + ccPairs, + documentSets, + tags, + llmProviders, + defaultAssistantId, } = data; return ( - <> + {shouldShowWelcomeModal && ( )} - - + + ); }