mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
- Introduced GlobalLoadingProvider to manage a consistent loading overlay across the application. - Replaced existing loading implementations with useGlobalLoadingEffect hook for better control and to prevent animation resets. - Updated components such as LoginPage, AuthCallbackPage, and DashboardLayout to utilize the new global loading mechanism. - Removed UnifiedLoadingScreen component to streamline loading management and enhance user experience.
121 lines
3.9 KiB
TypeScript
121 lines
3.9 KiB
TypeScript
import type { Metadata } from "next";
|
||
import "./globals.css";
|
||
import { RootProvider } from "fumadocs-ui/provider/next";
|
||
import { Roboto } from "next/font/google";
|
||
import { ElectricProvider } from "@/components/providers/ElectricProvider";
|
||
import { GlobalLoadingProvider } from "@/components/providers/GlobalLoadingProvider";
|
||
import { I18nProvider } from "@/components/providers/I18nProvider";
|
||
import { PostHogProvider } from "@/components/providers/PostHogProvider";
|
||
import { ThemeProvider } from "@/components/theme/theme-provider";
|
||
import { Toaster } from "@/components/ui/sonner";
|
||
import { LocaleProvider } from "@/contexts/LocaleContext";
|
||
import { ReactQueryClientProvider } from "@/lib/query-client/query-client.provider";
|
||
import { cn } from "@/lib/utils";
|
||
|
||
const roboto = Roboto({
|
||
subsets: ["latin"],
|
||
weight: ["400", "500", "700"],
|
||
display: "swap",
|
||
variable: "--font-roboto",
|
||
});
|
||
|
||
export const metadata: Metadata = {
|
||
title: "SurfSense – Customizable AI Research & Knowledge Management Assistant",
|
||
description:
|
||
"SurfSense is an AI-powered research assistant that integrates with tools like Notion, GitHub, Slack, and more to help you efficiently manage, search, and chat with your documents. Generate podcasts, perform hybrid search, and unlock insights from your knowledge base.",
|
||
keywords: [
|
||
"SurfSense",
|
||
"AI research assistant",
|
||
"AI knowledge management",
|
||
"AI document assistant",
|
||
"customizable AI assistant",
|
||
"notion integration",
|
||
"slack integration",
|
||
"github integration",
|
||
"hybrid search",
|
||
"vector search",
|
||
"RAG",
|
||
"LangChain",
|
||
"FastAPI",
|
||
"LLM apps",
|
||
"AI document chat",
|
||
"knowledge management AI",
|
||
"AI-powered document search",
|
||
"personal AI assistant",
|
||
"AI research tools",
|
||
"AI podcast generator",
|
||
"AI knowledge base",
|
||
"AI document assistant tools",
|
||
"AI-powered search assistant",
|
||
],
|
||
openGraph: {
|
||
title: "SurfSense – AI Research & Knowledge Management Assistant",
|
||
description:
|
||
"Connect your documents and tools like Notion, Slack, GitHub, and more to your private AI assistant. SurfSense offers powerful search, document chat, podcast generation, and RAG APIs to enhance your workflow.",
|
||
url: "https://surfsense.com",
|
||
siteName: "SurfSense",
|
||
type: "website",
|
||
images: [
|
||
{
|
||
url: "https://surfsense.com/og-image.png",
|
||
width: 1200,
|
||
height: 630,
|
||
alt: "SurfSense AI Research Assistant",
|
||
},
|
||
],
|
||
locale: "en_US",
|
||
},
|
||
twitter: {
|
||
card: "summary_large_image",
|
||
title: "SurfSense – AI Assistant for Research & Knowledge Management",
|
||
description:
|
||
"Have your own NotebookLM or Perplexity, but better. SurfSense connects external tools, allows chat with your documents, and generates fast, high-quality podcasts.",
|
||
creator: "https://surfsense.com",
|
||
site: "https://surfsense.com",
|
||
images: [
|
||
{
|
||
url: "https://surfsense.com/og-image-twitter.png",
|
||
width: 1200,
|
||
height: 630,
|
||
alt: "SurfSense AI Assistant Preview",
|
||
},
|
||
],
|
||
},
|
||
};
|
||
|
||
export default function RootLayout({
|
||
children,
|
||
}: Readonly<{
|
||
children: React.ReactNode;
|
||
}>) {
|
||
// Using client-side i18n
|
||
// Language can be switched dynamically through LanguageSwitcher component
|
||
// Locale state is managed by LocaleContext and persisted in localStorage
|
||
return (
|
||
<html lang="en" suppressHydrationWarning>
|
||
<body className={cn(roboto.className, "bg-white dark:bg-black antialiased h-full w-full ")}>
|
||
<PostHogProvider>
|
||
<LocaleProvider>
|
||
<I18nProvider>
|
||
<ThemeProvider
|
||
attribute="class"
|
||
enableSystem
|
||
disableTransitionOnChange
|
||
defaultTheme="light"
|
||
>
|
||
<RootProvider>
|
||
<ReactQueryClientProvider>
|
||
<ElectricProvider>
|
||
<GlobalLoadingProvider>{children}</GlobalLoadingProvider>
|
||
</ElectricProvider>
|
||
</ReactQueryClientProvider>
|
||
<Toaster />
|
||
</RootProvider>
|
||
</ThemeProvider>
|
||
</I18nProvider>
|
||
</LocaleProvider>
|
||
</PostHogProvider>
|
||
</body>
|
||
</html>
|
||
);
|
||
}
|