diff --git a/src/app/demo/page.tsx b/src/app/demo/page.tsx index c6342d0..344673a 100644 --- a/src/app/demo/page.tsx +++ b/src/app/demo/page.tsx @@ -9,6 +9,8 @@ import { DEMO_CODE } from '@/components/demo/demo-constants'; import { DemoFeatureCards } from '@/components/demo/DemoFeatureCards'; import { PageLayout } from '../PageLayout'; +export const dynamic = 'force-dynamic' + // Dynamically import SplitScreenEditor to avoid SSR issues with Pyodide const SplitScreenEditor = dynamic( () => import('@/components/features/snippet-editor/SplitScreenEditor').then(mod => ({ default: mod.SplitScreenEditor })), diff --git a/src/app/globals.css b/src/app/globals.css index 4f59768..8d525bb 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,4 +1,5 @@ @import '../styles/m3-base.css'; +@import '../styles/tailwind-m3-compat.css'; /* Material Design 3 CSS Custom Properties */ /* Light theme (default) */ diff --git a/src/app/page.tsx b/src/app/page.tsx index c547712..f22a75e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -10,6 +10,8 @@ const SnippetManagerRedux = dynamic( { ssr: false } ); +export const dynamic = 'force-dynamic' + export default function HomePage() { return ( diff --git a/src/app/settings/page.tsx b/src/app/settings/page.tsx index 82ca29f..8557dc6 100644 --- a/src/app/settings/page.tsx +++ b/src/app/settings/page.tsx @@ -12,6 +12,8 @@ import { OpenAISettingsCard } from '@/components/settings/OpenAISettingsCard'; import { useSettingsState } from '@/hooks/useSettingsState'; import { PageLayout } from '../PageLayout'; +export const dynamic = 'force-dynamic' + export default function SettingsPage() { const { stats, diff --git a/src/components/demo/DemoFeatureCards.tsx b/src/components/demo/DemoFeatureCards.tsx index 9b3652e..d69a751 100644 --- a/src/components/demo/DemoFeatureCards.tsx +++ b/src/components/demo/DemoFeatureCards.tsx @@ -1,6 +1,8 @@ +'use client' + import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card' -export function DemoFeatureCards() { +export const DemoFeatureCards = () => { return (
diff --git a/src/components/demo/PersistenceSettings.tsx b/src/components/demo/PersistenceSettings.tsx index d9c6ea7..ad4d7c4 100644 --- a/src/components/demo/PersistenceSettings.tsx +++ b/src/components/demo/PersistenceSettings.tsx @@ -1,3 +1,5 @@ +'use client' + import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card' import { Label } from '@/components/ui/label' import { Switch } from '@/components/ui/switch' diff --git a/src/components/features/namespace-manager/CreateNamespaceDialog.tsx b/src/components/features/namespace-manager/CreateNamespaceDialog.tsx index 63750a7..6f27696 100644 --- a/src/components/features/namespace-manager/CreateNamespaceDialog.tsx +++ b/src/components/features/namespace-manager/CreateNamespaceDialog.tsx @@ -1,3 +1,5 @@ +"use client" + import { Button } from '@/components/ui/button' import { Input } from '@/components/ui/input' import { diff --git a/src/components/features/snippet-editor/SnippetDialog.tsx b/src/components/features/snippet-editor/SnippetDialog.tsx index 6459133..1d92e2a 100644 --- a/src/components/features/snippet-editor/SnippetDialog.tsx +++ b/src/components/features/snippet-editor/SnippetDialog.tsx @@ -1,3 +1,5 @@ +"use client" + import { Dialog, DialogContent, diff --git a/src/components/features/snippet-viewer/SnippetViewer.tsx b/src/components/features/snippet-viewer/SnippetViewer.tsx index e8d599b..a097b5d 100644 --- a/src/components/features/snippet-viewer/SnippetViewer.tsx +++ b/src/components/features/snippet-viewer/SnippetViewer.tsx @@ -1,3 +1,5 @@ +"use client" + import { Dialog, DialogContent, diff --git a/src/components/features/snippet-viewer/SnippetViewerHeader.tsx b/src/components/features/snippet-viewer/SnippetViewerHeader.tsx index f1f7221..6327cbb 100644 --- a/src/components/features/snippet-viewer/SnippetViewerHeader.tsx +++ b/src/components/features/snippet-viewer/SnippetViewerHeader.tsx @@ -1,3 +1,5 @@ +"use client" + import { Button } from '@/components/ui/button' import { Badge } from '@/components/ui/badge' import { DialogTitle } from '@/components/ui/dialog' diff --git a/src/components/layout/navigation/Navigation.tsx b/src/components/layout/navigation/Navigation.tsx index 9d14f26..7ebe301 100644 --- a/src/components/layout/navigation/Navigation.tsx +++ b/src/components/layout/navigation/Navigation.tsx @@ -1,3 +1,5 @@ +'use client' + import { List } from '@phosphor-icons/react' import { useNavigation } from './useNavigation' diff --git a/src/components/settings/BackendAutoConfigCard.tsx b/src/components/settings/BackendAutoConfigCard.tsx index 979a8cf..12910e4 100644 --- a/src/components/settings/BackendAutoConfigCard.tsx +++ b/src/components/settings/BackendAutoConfigCard.tsx @@ -1,3 +1,5 @@ +'use client' + import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/components/ui/card' import { Button } from '@/components/ui/button' import { CloudCheck, CloudSlash } from '@phosphor-icons/react' diff --git a/src/components/settings/DatabaseActionsCard.tsx b/src/components/settings/DatabaseActionsCard.tsx index a2b4fce..e4765c2 100644 --- a/src/components/settings/DatabaseActionsCard.tsx +++ b/src/components/settings/DatabaseActionsCard.tsx @@ -1,3 +1,5 @@ +'use client' + import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/components/ui/card' import { Button } from '@/components/ui/button' import { Database, Download, Upload, Trash } from '@phosphor-icons/react' diff --git a/src/components/settings/DatabaseStatsCard.tsx b/src/components/settings/DatabaseStatsCard.tsx index b9b5b2b..3e83e67 100644 --- a/src/components/settings/DatabaseStatsCard.tsx +++ b/src/components/settings/DatabaseStatsCard.tsx @@ -1,3 +1,5 @@ +'use client' + import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/components/ui/card' import { Database } from '@phosphor-icons/react' diff --git a/src/components/settings/SchemaHealthCard.tsx b/src/components/settings/SchemaHealthCard.tsx index bdb0cff..3f3572e 100644 --- a/src/components/settings/SchemaHealthCard.tsx +++ b/src/components/settings/SchemaHealthCard.tsx @@ -1,3 +1,5 @@ +'use client' + import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/components/ui/card' import { Button } from '@/components/ui/button' import { Alert, AlertDescription } from '@/components/ui/alert' diff --git a/src/components/settings/StorageBackendCard.tsx b/src/components/settings/StorageBackendCard.tsx index 7058523..f3d1682 100644 --- a/src/components/settings/StorageBackendCard.tsx +++ b/src/components/settings/StorageBackendCard.tsx @@ -1,3 +1,5 @@ +'use client' + import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/components/ui/card' import { Button } from '@/components/ui/button' import { Input } from '@/components/ui/input' diff --git a/src/components/settings/StorageInfoCard.tsx b/src/components/settings/StorageInfoCard.tsx index 41d7c76..8b7f3ae 100644 --- a/src/components/settings/StorageInfoCard.tsx +++ b/src/components/settings/StorageInfoCard.tsx @@ -1,3 +1,5 @@ +'use client' + import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/components/ui/card' import { Alert, AlertDescription } from '@/components/ui/alert' diff --git a/src/components/ui/breadcrumb.tsx b/src/components/ui/breadcrumb.tsx deleted file mode 100644 index fb8b2ec..0000000 --- a/src/components/ui/breadcrumb.tsx +++ /dev/null @@ -1,110 +0,0 @@ -import { ComponentProps } from "react" -import { Slot } from "@radix-ui/react-slot" -import ChevronRight from "lucide-react/dist/esm/icons/chevron-right" -import MoreHorizontal from "lucide-react/dist/esm/icons/more-horizontal" - -import { cn } from "@/lib/utils" - -function Breadcrumb({ ...props }: ComponentProps<"nav">) { - return