From f0922a0763fd311af52e967562ab69d1b4877e80 Mon Sep 17 00:00:00 2001 From: 2233admin <57929895+2233admin@users.noreply.github.com> Date: Wed, 10 Jun 2026 01:10:27 +0800 Subject: [PATCH] feat(ui): add linear Alice shell pass --- ui/package.json | 3 +- ui/src/App.tsx | 7 ++- ui/src/components/ActivityBar.tsx | 25 ++++---- ui/src/components/EmptyEditor.tsx | 101 ++++++++++++++++++++++++------ ui/src/components/Sidebar.tsx | 4 +- ui/src/components/TabHost.tsx | 34 +++++----- ui/src/components/TabStrip.tsx | 10 +-- ui/src/i18n/locales/en.ts | 14 ++++- ui/src/i18n/locales/ja.ts | 14 ++++- ui/src/i18n/locales/zh-Hant.ts | 12 ++++ ui/src/i18n/locales/zh.ts | 14 ++++- ui/src/index.css | 46 +++++++++----- ui/src/tabs/UrlAdopter.tsx | 31 ++++++--- ui/src/vite-env.d.ts | 1 + 14 files changed, 231 insertions(+), 85 deletions(-) diff --git a/ui/package.json b/ui/package.json index 42643b184..16127c6ac 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 ef32fd5f4..d4b477aa2 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 */} -
+