diff --git a/frontend/web/src/admin/AdminApp.tsx b/frontend/web/src/admin/AdminApp.tsx index b81f401..514183e 100644 --- a/frontend/web/src/admin/AdminApp.tsx +++ b/frontend/web/src/admin/AdminApp.tsx @@ -5,7 +5,7 @@ import { useAppStore } from "../store/useAppStore"; import type { WsStatus } from "../lib/types"; import { UiModeSwitch } from "../design/UiModeSwitch"; import { ADMIN_GROUPS, ADMIN_SECTIONS } from "./sections"; -import { navigateAdmin, type AdminSectionId } from "./router"; +import { navigateAdmin, navigateUserShell, type AdminSectionId } from "./router"; import { Button, Tag, type TagTone } from "../components/primitives"; import { Icon } from "../components/Icon"; import { DashboardModule } from "./modules/Dashboard"; @@ -239,7 +239,7 @@ function AdminTopBar({ section, onMenu }: { section: AdminSectionId; onMenu?: () > - @@ -256,7 +256,7 @@ function LoginGate(): React.ReactNode {

管理面板需持有 JWT。请先在用户端 登录页 完成登录后,再返回本页。

- + ); } @@ -273,7 +273,7 @@ function Forbidden403(): React.ReactNode { 当前角色 {role ?? "?"}(viewer 只读)。管理面板需 owner 或 admin 角色;管理端写操作仅 owner。

- +
); diff --git a/frontend/web/src/components/Nav.tsx b/frontend/web/src/components/Nav.tsx index b835e02..66edc2a 100644 --- a/frontend/web/src/components/Nav.tsx +++ b/frontend/web/src/components/Nav.tsx @@ -16,7 +16,7 @@ import { Tag } from "./primitives"; * at runtime by the agent / user, and rendered per message). This is a small * navigation rail: brand + connection status + the conversation list * (`SessionRail`, which also owns per-session role picking, design/22 §4.6) + - * theme + admin/settings entry. + * 主题切换 + UI 档位开关(双档,裁决 16.4.4)。 * * Two surface variants share the same NavContent: * - Sidebar (desktop): fixed rail, `hidden md:flex`. @@ -76,22 +76,6 @@ function NavContent({ onNavigate }: { onNavigate: () => void }): React.ReactNode {hasToken ? : null}
- { - window.location.hash = "#/admin/system"; - onNavigate(); - }} - /> - { - window.location.hash = "#/admin"; - onNavigate(); - }} - /> void }): React.ReactNode { {meta.label} - {/* 双档 UI 档位(裁决 16.4.4):胶囊形态,尺寸对齐本栏其余 h-8 按钮。 窄屏(