- Move chat history from left sidebar to floating popover on tab bar - Add dench-ui components (Button, Card, Input, Label, Switch) with deps - Glassmorphism styling for all dropdowns/context menus with dark mode - Chrome-style active tab that merges with content area - Align sidebar header with tab bar (34px) - Condense sidebar header to single line - Move sidebar expand button into tab bar - Add next-themes for proper dark mode with system preference support - Add Tailwind v4 class-based dark mode via @custom-variant - Add dench-ui CSS tokens (light + dark) - Restore pointer cursor for all interactive elements - New chat button always visible in tab bar - "Delete this chat" label in dropdown menu Made-with: Cursor
55 lines
1.5 KiB
TypeScript
55 lines
1.5 KiB
TypeScript
import type { Metadata, Viewport } from "next";
|
|
import { Suspense } from "react";
|
|
import { ThemeProvider } from "next-themes";
|
|
import { getOrCreateAnonymousId } from "@/lib/telemetry";
|
|
import { PostHogProvider } from "./components/posthog-provider";
|
|
import "./globals.css";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "DenchClaw",
|
|
description:
|
|
"AI Workspace with an agent that connects to your apps and does the work for you",
|
|
};
|
|
|
|
export const viewport: Viewport = {
|
|
width: "device-width",
|
|
initialScale: 1,
|
|
maximumScale: 1,
|
|
};
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
const anonymousId = getOrCreateAnonymousId();
|
|
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<head>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link
|
|
rel="preconnect"
|
|
href="https://fonts.gstatic.com"
|
|
crossOrigin="anonymous"
|
|
/>
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
</head>
|
|
<body className="antialiased">
|
|
<ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
|
|
<Suspense fallback={null}>
|
|
<PostHogProvider anonymousId={anonymousId}>
|
|
{children}
|
|
</PostHogProvider>
|
|
</Suspense>
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|