Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
feat(ui): split AppShell into workbench + control panel modes
cyh3c622bb432d9
diff --git a/ui/src/App.tsx b/ui/src/App.tsxindex c54cd951b..09c2de525 100644--- a/ui/src/App.tsx+++ b/ui/src/App.tsx@@ -1,6 +1,7 @@import { BrowserRouter, Routes, Route, Navigate, useLocation } from 'react-router-dom';import { Wizard } from './components/Wizard';import { AppShell } from './components/AppShell';+import { Workbench } from './components/Workbench';import { Dashboard } from './components/Dashboard';import { ChannelList } from './components/steps/ChannelList';import { UserList } from './components/steps/UserList';@@ -22,7 +23,9 @@ import { useEffect, useState } from 'react';import type { ReactNode } from 'react';import { hasConfiguredPlatformCredentials } from './lib/platforms';-const LOGIN_CHECK_PATHS = new Set(['/doctor/logs', '/logs']);+// Paths that bypass the setup guard so the wizard and diagnostics can show+// logs / doctor output even before configuration is complete.+const LOGIN_CHECK_PATHS = new Set(['/admin/logs', '/admin/settings/diagnostics']);const RemoteLoginRedirect = ({ target }: { target: string }) => {useEffect(() => {@@ -107,27 +110,51 @@ function AppRoutes() {<Routes><Route element={<AuthGuard><AppShell /></AuthGuard>}><Route path="/setup" element={<Wizard />} />- <Route path="/dashboard" element={<Dashboard />} />- <Route path="/groups" element={<ChannelList isPage />} />- <Route path="/channels" element={<Navigate to="/groups" replace />} />- <Route path="/users" element={<UserList />} />- <Route path="/logs" element={<SettingsLogsPage standalone />} />- {/* No client-side route at /settings: Flask owns GET /settings as a- JSON API, so a hard refresh would hit the API instead of the SPA.- The Flask handler redirects browser-Accept hits to /settings/service. */}- <Route path="/settings/service" element={<SettingsServicePage />} />- <Route path="/settings/platforms" element={<SettingsPlatformsPage />} />- <Route path="/settings/backends" element={<SettingsBackendsPage />} />- <Route path="/settings/backends/opencode" element={<SettingsOpencodeProviderPage />} />- <Route path="/settings/backends/claude" element={<SettingsClaudeProviderPage />} />- <Route path="/settings/backends/codex" element={<SettingsCodexProviderPage />} />- <Route path="/settings/messaging" element={<SettingsMessagingPage />} />- <Route path="/settings/diagnostics" element={<SettingsDiagnosticsPage />} />- <Route path="/settings/logs" element={<SettingsLogsPage />} />- <Route path="/remote-access" element={<Navigate to="/settings/service" replace />} />- <Route path="/doctor" element={<Navigate to="/settings/diagnostics" replace />} />- <Route path="/doctor/logs" element={<Navigate to="/logs" replace />} />- <Route path="/" element={<Navigate to="/dashboard" replace />} />++ {/* Workbench mode — the new default at `/`. Commit 01 ships a+ placeholder; the capability modules + projects + canvas land+ in later commits. */}+ <Route path="/" element={<Workbench />} />++ {/* Control Panel mode — existing pages moved under /admin/* */}+ <Route path="/admin" element={<Navigate to="/admin/dashboard" replace />} />+ <Route path="/admin/dashboard" element={<Dashboard />} />+ <Route path="/admin/groups" element={<ChannelList isPage />} />+ <Route path="/admin/users" element={<UserList />} />+ <Route path="/admin/logs" element={<SettingsLogsPage standalone />} />+ {/* No client-side route at /admin/settings: Flask owns GET /settings as+ a JSON API. The Flask handler redirects browser-Accept hits to+ /admin/settings/service. */}+ <Route path="/admin/settings/service" element={<SettingsServicePage />} />+ <Route path="/admin/settings/platforms" element={<SettingsPlatformsPage />} />+ <Route path="/admin/settings/backends" element={<SettingsBackendsPage />} />+ <Route path="/admin/settings/backends/opencode" element={<SettingsOpencodeProviderPage />} />+ <Route path="/admin/settings/backends/claude" element={<SettingsClaudeProviderPage />} />+ <Route path="/admin/settings/backends/codex" element={<SettingsCodexProviderPage />} />+ <Route path="/admin/settings/messaging" element={<SettingsMessagingPage />} />+ <Route path="/admin/settings/diagnostics" element={<SettingsDiagnosticsPage />} />+ <Route path="/admin/settings/logs" element={<SettingsLogsPage />} />++ {/* Legacy redirects: old top-level paths → /admin/* equivalents.+ Bookmarked URLs and external links keep working without a server+ round-trip. */}+ <Route path="/dashboard" element={<Navigate to="/admin/dashboard" replace />} />+ <Route path="/groups" element={<Navigate to="/admin/groups" replace />} />+ <Route path="/channels" element={<Navigate to="/admin/groups" replace />} />+ <Route path="/users" element={<Navigate to="/admin/users" replace />} />+ <Route path="/logs" element={<Navigate to="/admin/logs" replace />} />+ <Route path="/settings/service" element={<Navigate to="/admin/settings/service" replace />} />+ <Route path="/settings/platforms" element={<Navigate to="/admin/settings/platforms" replace />} />+ <Route path="/settings/backends" element={<Navigate to="/admin/settings/backends" replace />} />+ <Route path="/settings/backends/opencode" element={<Navigate to="/admin/settings/backends/opencode" replace />} />+ <Route path="/settings/backends/claude" element={<Navigate to="/admin/settings/backends/claude" replace />} />+ <Route path="/settings/backends/codex" element={<Navigate to="/admin/settings/backends/codex" replace />} />+ <Route path="/settings/messaging" element={<Navigate to="/admin/settings/messaging" replace />} />+ <Route path="/settings/diagnostics" element={<Navigate to="/admin/settings/diagnostics" replace />} />+ <Route path="/settings/logs" element={<Navigate to="/admin/settings/logs" replace />} />+ <Route path="/remote-access" element={<Navigate to="/admin/settings/service" replace />} />+ <Route path="/doctor" element={<Navigate to="/admin/settings/diagnostics" replace />} />+ <Route path="/doctor/logs" element={<Navigate to="/admin/logs" replace />} /></Route></Routes>);diff --git a/ui/src/components/AppShell.tsx b/ui/src/components/AppShell.tsxindex cb67dcfba..9631e3a2f 100644--- a/ui/src/components/AppShell.tsx+++ b/ui/src/components/AppShell.tsx@@ -84,18 +84,28 @@ export const AppShell: React.FC = () => {return <Outlet />;}- const items: ShellNavItem[] = [- { to: '/dashboard', label: t('nav.dashboard'), icon: LayoutDashboard },- ...(hasChannelPlatforms ? [{ to: '/groups', label: t('nav.channels'), icon: Hash }] : []),- { to: '/users', label: t('nav.users'), icon: Users },+ // Two shell modes share the same chrome (brand + bottom status):+ // - admin: control-panel pages under /admin/* (legacy dashboard/groups/...+ // paths are now Navigate redirects to /admin/*).+ // - workbench: the new `/` entry. Commit 01 ships a placeholder with no+ // sidebar nav; commit 02 layers in the capability modules + projects.+ const shellMode: 'workbench' | 'admin' =+ location.pathname.startsWith('/admin') ? 'admin' : 'workbench';++ const adminItems: ShellNavItem[] = [+ { to: '/admin/dashboard', label: t('nav.dashboard'), icon: LayoutDashboard },+ ...(hasChannelPlatforms ? [{ to: '/admin/groups', label: t('nav.channels'), icon: Hash }] : []),+ { to: '/admin/users', label: t('nav.users'), icon: Users },{- to: '/settings/service',+ to: '/admin/settings/service',label: t('nav.settings'),icon: Settings,- match: (pathname) => pathname.startsWith('/settings'),+ match: (pathname) => pathname.startsWith('/admin/settings'),},];+ const items: ShellNavItem[] = shellMode === 'admin' ? adminItems : [];+// Mobile nav uses the same routes as desktop; diagnostics lives under// the Settings tab so we don't promote it to its own bottom-nav slot.const mobileItems = items;@@ -118,14 +128,16 @@ export const AppShell: React.FC = () => {</div></div>- <div className="flex flex-col gap-2">- <div className="px-1 font-mono text-[10px] font-bold uppercase tracking-[0.18em] text-muted">- {t('appShell.workspaceLabel')}+ {items.length > 0 && (+ <div className="flex flex-col gap-2">+ <div className="px-1 font-mono text-[10px] font-bold uppercase tracking-[0.18em] text-muted">+ {t('appShell.workspaceLabel')}+ </div>+ <nav className="flex flex-col gap-0.5">+ {items.map((item) => <ShellNavLink key={item.to} item={item} />)}+ </nav></div>- <nav className="flex flex-col gap-0.5">- {items.map((item) => <ShellNavLink key={item.to} item={item} />)}- </nav>- </div>+ )}</div>{/* Bottom: Status (with embedded version badge) + toggles + hostname */}@@ -188,7 +200,7 @@ export const AppShell: React.FC = () => {<mainclassName={clsx('min-h-screen pb-[calc(5.5rem+env(safe-area-inset-bottom))] md:ml-[240px] md:pb-0',- location.pathname.startsWith('/settings') ? 'page-glow-settings' : 'page-glow-console'+ location.pathname.startsWith('/admin/settings') ? 'page-glow-settings' : 'page-glow-console')}><div className="mx-auto w-full px-4 py-5 md:px-10 md:py-8">@@ -196,11 +208,13 @@ export const AppShell: React.FC = () => {</div></main>- <nav className="fixed bottom-0 left-0 right-0 z-50 border-t border-border bg-surface/96 px-2 py-2 pb-[calc(0.5rem+env(safe-area-inset-bottom))] backdrop-blur md:hidden">- <div className="flex gap-1">- {mobileItems.map((item) => <MobileNavLink key={item.to} item={item} />)}- </div>- </nav>+ {mobileItems.length > 0 && (+ <nav className="fixed bottom-0 left-0 right-0 z-50 border-t border-border bg-surface/96 px-2 py-2 pb-[calc(0.5rem+env(safe-area-inset-bottom))] backdrop-blur md:hidden">+ <div className="flex gap-1">+ {mobileItems.map((item) => <MobileNavLink key={item.to} item={item} />)}+ </div>+ </nav>+ )}</div>);};diff --git a/ui/src/components/Dashboard.tsx b/ui/src/components/Dashboard.tsxindex 195254e3e..15604e812 100644--- a/ui/src/components/Dashboard.tsx+++ b/ui/src/components/Dashboard.tsx@@ -213,7 +213,7 @@ export const Dashboard: React.FC = () => {supportsGroups,activeGroups,discoveredGroups,- actionHref: supportsGroups ? '/groups' : '/settings/platforms',+ actionHref: supportsGroups ? '/admin/groups' : '/settings/platforms',actionLabel: supportsGroups ? t('dashboard.manageRoute') : t('dashboard.configure'),};});@@ -377,21 +377,21 @@ export const Dashboard: React.FC = () => {value={`${enabledPlatforms.length} / ${platformCatalog.length}`}hint={enabledPlatformTitles || t('dashboard.metricPlatformsHint')}icon={<PlugZap className="size-4" />}- to="/settings/platforms"+ to="/admin/settings/platforms"/><StatCardlabel={t('dashboard.metricGroups')}value={String(totalActiveGroups)}hint={t('dashboard.metricGroupsHint').replace('{{count}}', String(totalDiscoveredGroups))}icon={<Hash className="size-4" />}- to="/groups"+ to="/admin/groups"/><StatCardlabel={t('dashboard.metricUsers')}value={String(usersCount)}hint={t('dashboard.metricUsersHint')}icon={<MessageSquare className="size-4" />}- to="/users"+ to="/admin/users"/><CloudStatCardlabel={t('dashboard.metricCloud')}@@ -399,7 +399,7 @@ export const Dashboard: React.FC = () => {hint={cloudHint}icon={<Cloud className="size-4" />}cloudHomeUrl="https://avibe.bot"- settingsHref="/settings/service#remote-access"+ settingsHref="/admin/settings/service#remote-access"publicUrl={cloudPublicHref}/></div>@@ -417,7 +417,7 @@ export const Dashboard: React.FC = () => {<p className="text-[12px] text-muted">{t('dashboard.platformOverviewSubtitle')}</p></div><Link- to="/settings/platforms"+ to="/admin/settings/platforms"className="inline-flex items-center gap-1 rounded-lg border border-border bg-foreground/[0.04] px-3 py-1.5 text-[12px] font-medium text-foreground transition hover:border-border-strong">{t('dashboard.manageAll')}@@ -475,7 +475,7 @@ export const Dashboard: React.FC = () => {<p className="text-[12px] text-muted">{t('dashboard.recentActivitySubtitle')}</p></div><Link- to="/logs"+ to="/admin/logs"className="inline-flex items-center gap-1 text-[12px] font-medium text-foreground transition hover:text-mint">{t('common.viewLogs')}diff --git a/ui/src/components/Workbench.tsx b/ui/src/components/Workbench.tsxnew file mode 100644index 000000000..ebda0d9cb--- /dev/null+++ b/ui/src/components/Workbench.tsx@@ -0,0 +1,29 @@+import { useTranslation } from 'react-i18next';+import { Link } from 'react-router-dom';+import { ArrowRight, SlidersHorizontal } from 'lucide-react';++import { Button } from './ui/button';++// Commit 01 placeholder: the full Workbench shell (capability modules,+// projects, inbox, canvas) is built in later commits. This stub keeps `/`+// routable while the new shell is staged in.+export const Workbench: React.FC = () => {+ const { t } = useTranslation();++ return (+ <div className="mx-auto flex min-h-[calc(100vh-200px)] max-w-2xl flex-col items-center justify-center gap-5 text-center">+ <div className="font-mono text-[10px] font-bold uppercase tracking-[0.18em] text-mint">+ {t('workbench.eyebrow')}+ </div>+ <h1 className="text-3xl font-bold text-foreground">{t('workbench.placeholderTitle')}</h1>+ <p className="text-sm leading-relaxed text-muted">{t('workbench.placeholderBody')}</p>+ <Button asChild variant="outline" size="sm">+ <Link to="/admin/dashboard" className="inline-flex items-center gap-2">+ <SlidersHorizontal className="size-3.5" />+ {t('workbench.openControlPanel')}+ <ArrowRight className="size-3.5" />+ </Link>+ </Button>+ </div>+ );+};diff --git a/ui/src/components/settings/SettingsClaudeProviderPage.tsx b/ui/src/components/settings/SettingsClaudeProviderPage.tsxindex d0af0eb06..52da30e2a 100644--- a/ui/src/components/settings/SettingsClaudeProviderPage.tsx+++ b/ui/src/components/settings/SettingsClaudeProviderPage.tsx@@ -202,7 +202,7 @@ export const SettingsClaudeProviderPage: React.FC = () => {title={t('settings.backends.claudeTitle')}subtitle={t('settings.backends.claudeSubtitle')}breadcrumb={- <Link to="/settings/backends" className="inline-flex items-center gap-1.5 hover:text-foreground">+ <Link to="/admin/settings/backends" className="inline-flex items-center gap-1.5 hover:text-foreground"><ArrowLeft className="size-3" />{t('settings.backends.codexBackToBackends')}</Link>diff --git a/ui/src/components/settings/SettingsCodexProviderPage.tsx b/ui/src/components/settings/SettingsCodexProviderPage.tsxindex 672574502..d6b90efaa 100644--- a/ui/src/components/settings/SettingsCodexProviderPage.tsx+++ b/ui/src/components/settings/SettingsCodexProviderPage.tsx@@ -212,7 +212,7 @@ export const SettingsCodexProviderPage: React.FC = () => {title={t('settings.backends.codexTitle')}subtitle={t('settings.backends.codexSubtitle')}breadcrumb={- <Link to="/settings/backends" className="inline-flex items-center gap-1.5 hover:text-foreground">+ <Link to="/admin/settings/backends" className="inline-flex items-center gap-1.5 hover:text-foreground"><ArrowLeft className="size-3" />{t('settings.backends.codexBackToBackends')}</Link>diff --git a/ui/src/components/settings/SettingsMessagingPage.tsx b/ui/src/components/settings/SettingsMessagingPage.tsxindex 88fb20891..fd525beb1 100644--- a/ui/src/components/settings/SettingsMessagingPage.tsx+++ b/ui/src/components/settings/SettingsMessagingPage.tsx@@ -380,7 +380,7 @@ export const SettingsMessagingPage: React.FC = () => {description={t('settings.messagingGroupsHint')}control={<Link- to="/groups"+ to="/admin/groups"className="inline-flex h-8 items-center gap-1.5 rounded-lg border border-border bg-foreground/[0.04] px-3 text-[12px] font-medium text-foreground transition hover:border-border-strong">{t('common.manageChannels')}diff --git a/ui/src/components/settings/SettingsOpencodeProviderPage.tsx b/ui/src/components/settings/SettingsOpencodeProviderPage.tsxindex 0ef5025ff..e8645cfc6 100644--- a/ui/src/components/settings/SettingsOpencodeProviderPage.tsx+++ b/ui/src/components/settings/SettingsOpencodeProviderPage.tsx@@ -497,7 +497,7 @@ export const SettingsOpencodeProviderPage: React.FC = () => {title={t('settings.backends.opencodeTitle')}subtitle={t('settings.backends.opencodeSubtitle')}breadcrumb={- <Link to="/settings/backends" className="inline-flex items-center gap-1.5 hover:text-foreground">+ <Link to="/admin/settings/backends" className="inline-flex items-center gap-1.5 hover:text-foreground"><ArrowLeft className="size-3" />{t('settings.backends.codexBackToBackends')}</Link>diff --git a/ui/src/components/steps/ChannelList.tsx b/ui/src/components/steps/ChannelList.tsxindex 7224e20fd..631b72755 100644--- a/ui/src/components/steps/ChannelList.tsx+++ b/ui/src/components/steps/ChannelList.tsx@@ -984,7 +984,7 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onBtype="button"variant="brand"size="default"- onClick={() => navigate('/users')}+ onClick={() => navigate('/admin/users')}><Users size={18} />{t('wechat.manageUserSettings')}diff --git a/ui/src/components/steps/Summary.tsx b/ui/src/components/steps/Summary.tsxindex dd368cc5c..bd53d681c 100644--- a/ui/src/components/steps/Summary.tsx+++ b/ui/src/components/steps/Summary.tsx@@ -127,7 +127,7 @@ export const Summary: React.FC<SummaryProps> = ({ data, onBack }) => {setSaving(false);showToast(t('wechat.setupComplete'));setTimeout(() => {- navigate('/dashboard');+ navigate('/');}, 1000);return;}@@ -144,7 +144,7 @@ export const Summary: React.FC<SummaryProps> = ({ data, onBack }) => {}setTimeout(() => {- navigate('/dashboard');+ navigate('/');}, 1000);} catch (exc: any) {const message = exc && exc.message ? exc.message : 'Failed to save configuration';@@ -226,7 +226,7 @@ export const Summary: React.FC<SummaryProps> = ({ data, onBack }) => {<p className="mt-2 text-[11px] text-mint">{t('summary.bindCodeCopied')}</p>)}</div>- <Button variant="brand" size="lg" onClick={() => navigate('/dashboard')}>+ <Button variant="brand" size="lg" onClick={() => navigate('/')}>{t('summary.goToDashboard')}<ArrowRight size={16} strokeWidth={2.25} /></Button>diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.jsonindex 9caca7e5c..321c7c6ec 100644--- a/ui/src/i18n/en.json+++ b/ui/src/i18n/en.json@@ -389,6 +389,12 @@"signOut": "Sign out","signingOut": "Signing out…"},+ "workbench": {+ "eyebrow": "Workbench",+ "placeholderTitle": "Your AI workbench is coming together",+ "placeholderBody": "Agents, Skills, Harness, and Vaults will live here. For now, jump into the control panel to configure platforms and backends.",+ "openControlPanel": "Open Control Panel"+ },"wizard": {"title": "Vibe Remote Setup"},diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.jsonindex bb0b5a920..8812d883b 100644--- a/ui/src/i18n/zh.json+++ b/ui/src/i18n/zh.json@@ -389,6 +389,12 @@"signOut": "退出登录","signingOut": "正在退出…"},+ "workbench": {+ "eyebrow": "工作台",+ "placeholderTitle": "你的 AI 工作台正在搭建",+ "placeholderBody": "Agents、Skills、Harness、Vaults 将会汇聚到这里。现在先进控制面板配置平台和 backend。",+ "openControlPanel": "进入控制面板"+ },"wizard": {"title": "Vibe Remote 设置向导"},diff --git a/vibe/ui_server.py b/vibe/ui_server.pyindex af70cea9c..19a42b3dc 100644--- a/vibe/ui_server.py+++ b/vibe/ui_server.py@@ -1396,7 +1396,7 @@ def settings_get():# bookmarked / hard-refreshed browser hits to the canonical settings page# instead of serving raw JSON.if "text/html" in request.headers.get("Accept", ""):- return redirect("/settings/service")+ return redirect("/admin/settings/service")from vibe import apireturn jsonify(api.get_settings(request.args.get("platform") or None))