diff --git a/ui/package.json b/ui/package.json index 42643b18..16127c6a 100644 --- a/ui/package.json +++ b/ui/package.json @@ -5,6 +5,7 @@ "scripts": { "dev": "vite", "dev:demo": "vite --mode demo", + "dev:design": "vite --mode demo --host 127.0.0.1 --port 5173", "build": "tsc -b && vite build", "build:demo": "tsc -b && vite build --mode demo", "preview": "vite preview", @@ -47,4 +48,4 @@ "public" ] } -} \ No newline at end of file +} diff --git a/ui/src/App.tsx b/ui/src/App.tsx index ef32fd5f..d4b477aa 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -58,6 +58,7 @@ function AppShell() { const section = findSectionForActivity(selectedSidebar) const isDesktop = useIsDesktop() const showSidebarPanel = isDesktop && section != null + const showDemoBanner = import.meta.env.VITE_DEMO_MODE && import.meta.env.VITE_SHOW_DEMO_BANNER // Auto-close the mobile secondary drawer once the user picks a sub-item. // We snapshot the focused tab at drawer-open time (see openSecondaryDrawer @@ -104,7 +105,7 @@ function AppShell() { const mainContent = (
{/* Mobile header — visible only below md */} -
+