From 80f60ad2d5773ff0a625a36a9fb0ba221d44093b Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 12:14:59 +0000 Subject: [PATCH 01/10] Adopt console-ui 1.3.0 soft-card tokens; drop the palette picker and Sandbox styles - Depend on @zhin.js/console-ui ~1.3.0 and @zhin.js/client ~1.5.2 (client pins console-ui exactly). The lockfile still records 1.2.1 / 1.5.1 until both are published; run `pnpm install` then. - theme-tokens.css loses its palette, the [data-palette] blocks and the .dark color block; only a few older names remain, each pointing at a library role. - design-system.css stops redefining the library's same-named --console-* scale (type, control heights, radii, surfaces, borders, fonts, motion, content width, page padding, section gap, touch target) and its restyling of library classes (card, dialog, sheet, table, stat card, badge-info/success/warning, ...). - Theme: light / dark / system only; system writes data-theme="system" plus the resolved class; theme-color is #F7F5F3 / #121010; the saved palette is removed. - Root Toaster for useToast(); the Console's own titled notices become .console-notice so they no longer collide with the library's .console-toast. - ConsoleUiLocale passes stepper.decrease, stepper.increase and toast.undo. - Chart: received = chart-1, sent = chart-2 (soft-card chart-3 is rose). - Remove agent-playground.css and remote-entry-style-contract.ts: the Console now requires @zhin.js/adapter-sandbox >= 1.2.0 (README). - Tests follow the single soft-card palette instead of the eight palettes. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01SLUGBCKGhb7KCyhqynYFod --- README.md | 6 +- client/index.html | 11 +- client/main.tsx | 13 +- client/style.css | 27 +- client/tailwind.config.js | 12 + console-ui/src/agent-playground.css | 1885 ----------------- console-ui/src/components/ThemeToggle.tsx | 45 - console-ui/src/components/UserMenu.tsx | 60 +- .../src/components/log-panel/log-panel.css | 14 +- .../src/components/onboarding-banner.tsx | 30 +- console-ui/src/components/toast.css | 48 +- console-ui/src/components/toast.tsx | 15 +- console-ui/src/design-system.css | 527 +---- console-ui/src/hooks/useTheme.ts | 11 +- console-ui/src/i18n/console-ui-locale.tsx | 3 + console-ui/src/i18n/messages.en.auth.mjs | 2 - console-ui/src/i18n/messages.en.insights.mjs | 2 - console-ui/src/i18n/messages.en.mjs | 27 +- .../src/i18n/messages.en.soft-cards.mjs | 36 + console-ui/src/im-workspace.css | 5 +- console-ui/src/pages/inference/Profiles.tsx | 2 +- .../src/pages/onboarding/onboarding.css | 6 +- console-ui/src/pages/scope/login-flow.css | 4 +- console-ui/src/remote-entry-style-contract.ts | 90 - console-ui/src/scope/chat-roles.css | 4 +- console-ui/src/scope/object-page.css | 4 +- console-ui/src/theme-tokens.css | 272 +-- console-ui/src/theme/appearance.css | 29 - console-ui/src/theme/index.ts | 64 +- docs/appearance.md | 50 +- docs/assets/appearance-peach-mobile.jpg | Bin 17448 -> 0 bytes docs/assets/appearance-pine-mobile.jpg | Bin 51967 -> 0 bytes docs/assets/appearance-plum-desktop.jpg | Bin 18457 -> 0 bytes docs/assets/appearance-sunshine-desktop.jpg | Bin 23210 -> 0 bytes package.json | 4 +- tests/ambient-mode-safety.test.mjs | 7 +- tests/console-contract.test.mjs | 44 +- tests/deployment-feedback-1250.test.mjs | 6 +- tests/feature-switch-touch-target.test.mjs | 6 +- tests/helpers/token-cascade.mjs | 31 +- tests/information-display-polish.test.mjs | 10 +- tests/light-contrast-crumb-readout.test.mjs | 7 +- tests/object-tab-contrast.test.mjs | 13 +- tests/private-visual.test.mjs | 13 +- tests/signal-color-scan.test.mjs | 7 +- tests/theme-controls.test.mjs | 68 +- tests/theme-runtime.test.mjs | 105 +- tests/user-menu-appearance.test.mjs | 16 +- tests/visual-direction-125-p3.test.mjs | 34 +- tests/visual-direction-125.test.mjs | 24 +- tests/visual-foundation.test.mjs | 191 +- 51 files changed, 654 insertions(+), 3236 deletions(-) delete mode 100644 console-ui/src/agent-playground.css delete mode 100644 console-ui/src/components/ThemeToggle.tsx create mode 100644 console-ui/src/i18n/messages.en.soft-cards.mjs delete mode 100644 console-ui/src/remote-entry-style-contract.ts delete mode 100644 console-ui/src/theme/appearance.css delete mode 100644 docs/assets/appearance-peach-mobile.jpg delete mode 100644 docs/assets/appearance-pine-mobile.jpg delete mode 100644 docs/assets/appearance-plum-desktop.jpg delete mode 100644 docs/assets/appearance-sunshine-desktop.jpg diff --git a/README.md b/README.md index 6425c678..d6155b43 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,11 @@ Console 没有单独的演示构建:公开演示是一台真实 Host,访客 ### SDK 版本 -只使用一代 SDK(zhin 1.11 发布线):`@zhin.js/client` 1.5.x、`@zhin.js/contract` 1.1.x、`@zhin.js/ai` 1.9.x、`@zhin.js/console-protocol` 1.10.x、`@zhin.js/console-ui` 1.2.x,与 zhin 仓库 `packages/console/*` 当前发布线一致(npm 的 `latest`)。`package.json` 对每个 `@zhin.js/*` 依赖都用 `~` 范围:npm 上还有不属于这条线的 `@zhin.js/client` 2.x,`^` 会把它装进来,并在 lockfile 里产生第二份 contract / console-protocol / ai;新的 minor 也要先在 Console 里核对后再升级。`tests/console-contract.test.mjs` 检查这些范围,以及 lockfile 里每个包只有一个版本。 +`@zhin.js/console-ui` 1.3.0 起按「柔光卡片」规范绘制(zhinjs/zhin ADR 0063 D34–D41):Console 不再定义自己的调色板、`data-palette` 配色与同名的尺寸变量,颜色、字号、圆角、阴影与动效全部来自组件库(`console-ui/src/theme-tokens.css` 只剩几条指向组件库令牌的旧名字)。`@zhin.js/client` 精确依赖 `@zhin.js/console-ui`,所以两者一起升级(client 1.5.2 依赖 console-ui 1.3.0),否则 lockfile 里会有两份 console-ui。 + +**最低支持 `@zhin.js/adapter-sandbox` 1.2.0。** 1.2.0 起 Sandbox 的远程 Entry 自带样式(用 console-ui 组件),Console 删除了为旧版 Agent playground 保留的 `agent-playground.css` 与 Tailwind 类名清单 `remote-entry-style-contract.ts`;更早的 Sandbox 在本 Console 中会缺少样式,需要先升级。 + +只使用一代 SDK(zhin 1.11 发布线):`@zhin.js/client` 1.5.x(≥ 1.5.2)、`@zhin.js/contract` 1.1.x、`@zhin.js/ai` 1.9.x、`@zhin.js/console-protocol` 1.10.x、`@zhin.js/console-ui` 1.3.x,与 zhin 仓库 `packages/console/*` 当前发布线一致(npm 的 `latest`)。`package.json` 对每个 `@zhin.js/*` 依赖都用 `~` 范围:npm 上还有不属于这条线的 `@zhin.js/client` 2.x,`^` 会把它装进来,并在 lockfile 里产生第二份 contract / console-protocol / ai;新的 minor 也要先在 Console 里核对后再升级。`tests/console-contract.test.mjs` 检查这些范围,以及 lockfile 里每个包只有一个版本。 Console 需要的协议常量、类型与打码规则都直接从已发布的包导入,不再保留本地替身:打码与占位判断(`maskConsoleEnvValue` / `isConsoleEnvMaskPlaceholder`)、聊天成员 RPC 与类型(`CHAT_PRINCIPALS_RPC`、`ConsoleChatPrincipal` 等)、「需要你处理」的 RPC 与类型(`ATTENTION_RPC`、`ConsoleAttentionKind`)、Login Assist 的 RPC 与枚举、全局插件开关的权限判断,以及 `@zhin.js/client` 的 headless 账号 API(`AdapterAccountsProvider` / `useAdapterAccounts` / `AdapterAccountRow`)。AI 与模型页的推理视图类型(`environmentReferences`、`lastCall`、拒绝原因等)定义在 Host 端的 `@zhin.js/agent`,`@zhin.js/console-protocol` 1.4.0 没有导出,所以仍在 `console-ui/src/pages/inference/model.d.mts` 里声明。对旧 Host 的检测与降级保持不变:缺少某个 RPC 或字段时,相应入口隐藏或退回旧界面。 diff --git a/client/index.html b/client/index.html index 4206441d..aac51a61 100644 --- a/client/index.html +++ b/client/index.html @@ -3,18 +3,19 @@ - + diff --git a/client/main.tsx b/client/main.tsx index 3f8e684f..f5d9dae2 100644 --- a/client/main.tsx +++ b/client/main.tsx @@ -25,7 +25,7 @@ import { registerBuiltinConsolePages } from "@console/registerBuiltinShell"; import { initializeTheme } from "@console/theme"; import LoginPage from "@console/pages/login"; import * as ConsoleUi from "@zhin.js/console-ui"; -import { TooltipProvider } from "@zhin.js/console-ui"; +import { Toaster, TooltipProvider } from "@zhin.js/console-ui"; import { ConsoleSessionGate } from "@console/components/console-session-gate"; import { ToastProvider, useToast } from "@console/components/toast"; import { runQueryPrefillMiddleware, takeLoginLink, type InitialSession } from "./middleware/queryPrefill"; @@ -131,9 +131,14 @@ ReactDOMClient.createRoot(document.getElementById("root")!).render( - - - + {/* The library's Toaster (console-ui 1.3.0): `useToast()` from @zhin.js/console-ui shows its + one-line toasts here, for plugin pages and the shell alike. The Console's own titled + notices (errors stay until dismissed) keep their ToastProvider. */} + + + + + diff --git a/client/style.css b/client/style.css index f6a503a8..430b5e30 100644 --- a/client/style.css +++ b/client/style.css @@ -1,19 +1,38 @@ @import "tailwindcss"; @config "./tailwind.config.js"; @import "../console-ui/src/design-system.css"; -@import "../console-ui/src/agent-playground.css"; @import "../console-ui/src/settings.css"; @import "../console-ui/src/pages/resource-pages.css"; @import "../console-ui/src/im-workspace.css"; @import "../console-ui/src/markdown-content.css"; -/* Tailwind's `text-xs` is the Console caption size (13px): secondary text never drops to 12px. */ +/* + * Tailwind's type keys follow the component library's 8-step scale (console-ui 1.3.0, 「柔光卡片」): + * xs 12 · sm 13 · md 14 · lg 15 · xl 17 · 2xl 22 · title 26 · display 32. The library's own classes + * are generated here as well (tailwind.config.js scans its dist), so the two must agree. + */ @theme { /* Tailwind's font-sans / font-mono follow the Console stacks (self-hosted Inter / JetBrains Mono). */ --font-sans: var(--console-font-sans); --font-mono: var(--console-font-mono); - --text-xs: 0.8125rem; - --text-xs--line-height: 1.25rem; + --text-xs: var(--console-text-xs); + --text-xs--line-height: var(--console-leading-xs); + --text-sm: var(--console-text-sm); + --text-sm--line-height: var(--console-leading-sm); + --text-md: var(--console-text-md); + --text-md--line-height: var(--console-leading-md); + --text-base: var(--console-text-md); + --text-base--line-height: var(--console-leading-md); + --text-lg: var(--console-text-lg); + --text-lg--line-height: var(--console-leading-lg); + --text-xl: var(--console-text-xl); + --text-xl--line-height: var(--console-leading-xl); + --text-2xl: var(--console-text-2xl); + --text-2xl--line-height: var(--console-leading-2xl); + --text-title: var(--console-text-title); + --text-title--line-height: var(--console-leading-title); + --text-display: var(--console-text-display); + --text-display--line-height: var(--console-leading-display); } /* ============================================ diff --git a/client/tailwind.config.js b/client/tailwind.config.js index b6e3a3de..9d63751c 100644 --- a/client/tailwind.config.js +++ b/client/tailwind.config.js @@ -17,6 +17,18 @@ export default { theme: { extend: { colors: { + // Soft-card roles of @zhin.js/console-ui 1.3.0 (ADR 0063 D34), for the Console's own classes. + surface: 'hsl(var(--console-surface))', + sunken: 'hsl(var(--console-sunken))', + raised: 'hsl(var(--console-raised))', + ink: 'hsl(var(--console-ink))', + faint: 'hsl(var(--console-faint))', + 'primary-soft': 'hsl(var(--console-primary-soft))', + ok: { DEFAULT: 'hsl(var(--console-ok))', bg: 'hsl(var(--console-ok-bg))' }, + warn: { DEFAULT: 'hsl(var(--console-warn))', bg: 'hsl(var(--console-warn-bg))' }, + danger: { DEFAULT: 'hsl(var(--console-danger))', bg: 'hsl(var(--console-danger-bg))' }, + progress: 'hsl(var(--console-progress))', + ...Object.fromEntries([1, 2, 3, 4, 5].flatMap((n) => [[`tint-${n}`, `hsl(var(--console-tint-${n}))`], [`accent-${n}`, `hsl(var(--console-accent-${n}))`]])), border: 'hsl(var(--border))', input: 'hsl(var(--input))', ring: 'hsl(var(--ring))', diff --git a/console-ui/src/agent-playground.css b/console-ui/src/agent-playground.css deleted file mode 100644 index 4fb928fd..00000000 --- a/console-ui/src/agent-playground.css +++ /dev/null @@ -1,1885 +0,0 @@ -.agent-playground-shell { - --playground-accent: var(--primary); - --playground-accent-foreground: var(--primary-foreground); - --playground-accent-soft: var(--accent); - --playground-line: var(--border); - display: grid; - grid-template-columns: minmax(13.5rem, 15.5rem) minmax(0, 1fr); - width: 100%; - height: calc(100dvh - var(--zc-header-h, 4.5rem) - var(--console-page-padding-block, 2rem) - 1rem); - min-height: 36rem; - overflow: hidden; - border: var(--console-border-hairline) solid transparent; - border-radius: var(--console-radius-4); - background: hsl(var(--card)); - box-shadow: var(--console-card-elevation); - box-shadow: none; - isolation: isolate; -} - -.agent-playground-conversation[hidden], -.agent-playground-composer[hidden] { - display: none; -} - -.agent-playground-conversation-details { - flex: 1; - min-height: 0; - overflow: auto; - padding: var(--console-space-4); -} - -.agent-playground-details-back { - display: inline-flex; - align-items: center; - gap: var(--console-space-2); - margin-bottom: var(--console-space-4); - border: 0; - border-radius: var(--console-radius-1); - background: transparent; - padding: var(--console-space-2) var(--console-space-2); - color: hsl(var(--muted-foreground)); - cursor: pointer; -} - -.agent-playground-details-back:hover { - background: hsl(var(--accent)); - color: hsl(var(--foreground)); -} - -.agent-playground-recovery { - display: grid; - flex: none; - max-height: min(40dvh, 24rem); - overflow: auto; - gap: var(--console-space-3); - margin: var(--console-space-4); - font-size: var(--console-text-body); -} -.agent-playground-recovery[hidden] { display: none; } - -.agent-playground-recovery > section, -.agent-playground-recovery > details { - min-width: 0; - padding: var(--console-space-4); - border: var(--console-border-hairline) solid hsl(var(--border)); - border-radius: var(--console-radius-2); - background: hsl(var(--background)); -} - -.agent-playground-recovery h3 { margin-bottom: var(--console-space-3); font-weight: var(--console-weight-strong); } -.agent-playground-recovery summary { display: flex; flex-wrap: wrap; gap: var(--console-space-2) var(--console-space-4); align-items: baseline; cursor: pointer; } -.agent-playground-recovery time { margin-left: auto; font-size: var(--console-text-label); color: hsl(var(--muted-foreground)); } -.agent-playground-recovery details[open] summary { margin-bottom: var(--console-space-4); } -.agent-playground-recovery details > a { display: inline-flex; margin: var(--console-space-2) var(--console-space-3) 0 0; color: hsl(var(--primary)); } -.agent-playground-recovery > p[role=alert], -.agent-playground-history-navigation p[role=alert] { color: hsl(var(--destructive)); overflow-wrap: anywhere; } -.agent-playground-recovery > button, -.agent-playground-recovery > p > button, -.agent-playground-history-navigation button { padding: var(--console-space-2) var(--console-space-3); border-radius: var(--console-radius-1); color: hsl(var(--primary)); cursor: pointer; } -.agent-playground-history-navigation { padding: var(--console-space-2) var(--console-space-4); font-size: var(--console-text-label); } -.agent-playground-history-notice { padding: var(--console-space-2) var(--console-space-4); color: hsl(var(--muted-foreground)); text-align: center; font-size: var(--console-text-label); } -.agent-playground-main:has(> .agent-playground-recovery:not([hidden])) .agent-playground-empty { display: none; } - - -.agent-playground-shell.has-inspector { - grid-template-columns: minmax(13.5rem, 15.5rem) minmax(0, 1fr) minmax(16rem, 19rem); -} - -.agent-playground-mobilebar { - display: none; -} - -.agent-playground-sessions.channel-sidebar { - position: relative; - inset: auto; - z-index: 2; - width: auto; - max-width: none; - height: 100%; - min-width: 0; - overflow: hidden; - transform: none; - border: 0; - border-right: var(--console-border-hairline) solid hsl(var(--playground-line) / 0.7); - background: hsl(var(--sidebar)); - box-shadow: none; -} - -.agent-playground-brand { - padding: var(--console-space-5) var(--console-space-4) var(--console-space-4); - border-bottom: var(--console-border-hairline) solid hsl(var(--playground-line) / 0.56); -} - -.agent-playground-brand h2, -.agent-playground-inspector-head h2, -.agent-playground-run-title h1, -.agent-playground-empty h2 { - margin: 0; - letter-spacing: -0.025em; -} - -.agent-playground-brand h2 { - font-size: var(--console-text-body); - font-weight: var(--console-weight-strong); -} - -.agent-playground-mark, -.agent-playground-empty-mark { - display: inline-flex; - align-items: center; - justify-content: center; - color: hsl(var(--playground-accent)); - background: hsl(var(--playground-accent-soft)); -} - -.agent-playground-mark { - width: 2rem; - height: 2rem; - border: var(--console-border-hairline) solid hsl(var(--playground-accent) / 0.17); - border-radius: var(--console-radius-2); -} - -.agent-playground-connection { - display: inline-flex; - width: 1.75rem; - height: 1.75rem; - align-items: center; - justify-content: center; - border: var(--console-border-hairline) solid hsl(var(--border)); - border-radius: var(--console-radius-full); - background: hsl(var(--background) / 0.72); - color: hsl(var(--muted-foreground)); -} - -/* Connected is the steady state: plain ink, no accent ring (console#125). */ -.agent-playground-connection.is-online { - color: hsl(var(--foreground)); -} - -.agent-playground-section-label { - display: flex; - align-items: center; - justify-content: space-between; - padding: var(--console-space-4) var(--console-space-3) var(--console-space-2); - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - font-weight: var(--console-weight-strong); - letter-spacing: 0.055em; - text-transform: none; -} - - -.agent-playground-session-list { - min-height: 0; - flex: 1; - overflow-y: auto; - padding: 0 var(--console-space-2) var(--console-space-3); - scrollbar-width: thin; -} - -.agent-playground-session { - position: relative; - display: flex; - width: 100%; - align-items: center; - gap: var(--console-space-3); - margin: 0 0; - padding: var(--console-space-2) var(--console-space-3); - border: 0; - border-radius: var(--console-radius-2); - background: transparent; - color: hsl(var(--foreground)); - text-align: left; - cursor: pointer; - transition: background var(--console-motion-fast) var(--console-ease-out); -} - -.agent-playground-session:hover { - background: hsl(var(--background) / 0.72); -} - -.agent-playground-session.active { - background: hsl(var(--background)); - /* stylelint-disable-next-line console/scale-values -- 选中会话左侧的内嵌色条:box-shadow 带颜色就会被当成投影;本文件不用 gradient(tests/private-visual.test.mjs),其他文件用 background-image 画这条线 */ - box-shadow: inset var(--console-border-focus) 0 hsl(var(--playground-accent)); -} - -.agent-playground-session-icon, -.agent-playground-run-icon, -.agent-playground-message-avatar { - display: inline-flex; - flex-shrink: 0; - align-items: center; - justify-content: center; -} - -/* List rows carry a bare icon, no tile (console#125). */ -.agent-playground-session-icon { - width: 1.25rem; - height: 1.25rem; - color: hsl(var(--muted-foreground)); -} - -.agent-playground-session-icon svg { width: 1rem; height: 1rem; } - -.agent-playground-session.active .agent-playground-session-icon { - color: hsl(var(--playground-accent)); -} - -.agent-playground-new-session { - padding: var(--console-space-2) var(--console-space-3); - border-top: var(--console-border-hairline) solid hsl(var(--playground-line) / 0.56); -} - -.agent-playground-add { - display: flex; - width: 100%; - min-height: 2.25rem; - align-items: center; - justify-content: center; - gap: var(--console-space-2); - border: var(--console-border-hairline) dashed hsl(var(--playground-accent) / 0.3); - border-radius: var(--console-radius-2); - background: hsl(var(--playground-accent) / 0.045); - color: hsl(var(--playground-accent)); - font-size: var(--console-text-label); - font-weight: var(--console-weight-strong); - cursor: pointer; -} - -.agent-playground-add:hover { - border-style: solid; - background: hsl(var(--playground-accent) / 0.09); -} - -.agent-playground-new-form { - display: grid; - gap: var(--console-space-2); -} - -.agent-playground-new-form > input { - min-width: 0; - height: 2.15rem; - padding: 0 var(--console-space-3); - border: var(--console-border-hairline) solid hsl(var(--border)); - border-radius: var(--console-radius-2); - outline: 0; - background: hsl(var(--background) / 0.75); - color: hsl(var(--foreground)); - font-size: var(--console-text-label); -} - -.agent-playground-new-form > input:focus { - border-color: hsl(var(--playground-accent) / 0.65); - outline: var(--console-border-focus) solid hsl(var(--playground-accent) / 0.1); outline-offset: 0; -} - -.agent-playground-scope-picker { - display: grid; - grid-template-columns: repeat(3, 1fr); - gap: var(--console-space-1); - padding: var(--console-space-1); - border-radius: var(--console-radius-2); - background: hsl(var(--muted)); -} - -.agent-playground-scope-picker button, -.agent-playground-new-actions button { - border: 0; - border-radius: var(--console-radius-1); - background: transparent; - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - cursor: pointer; -} - -.agent-playground-scope-picker button { - min-height: 1.65rem; -} - -.agent-playground-scope-picker button.active { - background: hsl(var(--background)); - color: hsl(var(--foreground)); - box-shadow: var(--console-elevation-1); -} - -.agent-playground-new-actions { - display: flex; - justify-content: flex-end; - gap: var(--console-space-1); -} - -.agent-playground-new-actions button { - min-height: 1.8rem; - padding: 0 var(--console-space-3); -} - -.agent-playground-new-actions button.primary { - background: hsl(var(--playground-accent)); - color: hsl(var(--playground-accent-foreground)); -} - -.agent-playground-endpoint { - display: flex; - min-width: 0; - align-items: center; - justify-content: space-between; - gap: var(--console-space-2); - padding: var(--console-space-2) var(--console-space-3) var(--console-space-3); - border-top: var(--console-border-hairline) solid hsl(var(--playground-line) / 0.56); - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); -} - -.agent-playground-endpoint strong { - overflow: hidden; - color: hsl(var(--foreground) / 0.82); - font-family: var(--console-font-mono); - font-size: var(--console-text-label); - text-overflow: ellipsis; - white-space: nowrap; -} - -.agent-playground-main.chat-area { - display: flex; - flex-direction: column; - gap: 0; - height: 100%; - min-height: 0; - min-width: 0; - overflow: hidden; - background: hsl(var(--background)); -} - -.agent-playground-runbar { - display: flex; - flex-shrink: 0; - flex-wrap: wrap; - min-height: 4.75rem; - align-items: center; - justify-content: space-between; - gap: var(--console-space-4); - padding: var(--console-space-3) var(--console-space-4); - border-bottom: var(--console-border-hairline) solid hsl(var(--playground-line) / 0.7); - background: hsl(var(--background) / 0.9); - backdrop-filter: blur(14px); -} - -.agent-playground-run-identity { - display: flex; - flex: 1 1 14rem; - min-width: 0; - align-items: center; - gap: var(--console-space-3); -} - -.agent-playground-run-identity > div { - flex: 1; - min-width: 0; -} - -.agent-playground-run-icon { - width: 2.35rem; - height: 2.35rem; - border: var(--console-border-hairline) solid hsl(var(--playground-accent) / 0.18); - border-radius: var(--console-radius-2); - background: hsl(var(--playground-accent-soft)); - color: hsl(var(--playground-accent)); -} - -.agent-playground-run-title { - display: flex; - flex-wrap: wrap; - min-width: 0; - align-items: center; - gap: var(--console-space-2); -} - -.agent-playground-run-title h1 { - min-width: 0; - max-width: 100%; - overflow: hidden; - font-size: var(--console-text-section); - font-weight: var(--console-weight-strong); - text-overflow: ellipsis; - white-space: nowrap; -} - -.agent-playground-run-title span { - flex-shrink: 0; - padding: var(--console-space-1) var(--console-space-2); - border: var(--console-border-hairline) solid hsl(var(--border)); - border-radius: var(--console-radius-full); - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - font-weight: var(--console-weight-strong); -} - -.agent-playground-run-identity code { - display: block; - max-width: 100%; - margin-top: var(--console-space-1); - overflow: hidden; - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - text-overflow: ellipsis; - white-space: nowrap; -} - -.agent-playground-run-actions { - display: flex; - flex-wrap: wrap; - min-width: 0; - max-width: 100%; - margin-left: auto; - justify-content: flex-end; - align-items: center; - gap: var(--console-space-1); -} - -.agent-playground-run-actions a, -.agent-playground-run-actions button, -.agent-playground-inspector-head button { - display: inline-flex; - min-width: 2rem; - height: 2rem; - align-items: center; - justify-content: center; - gap: var(--console-space-1); - padding: 0 var(--console-space-2); - border: var(--console-border-hairline) solid hsl(var(--border)); - border-radius: var(--console-radius-2); - background: hsl(var(--background)); - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - text-decoration: none; - cursor: pointer; -} - -.agent-playground-run-actions a:hover, -.agent-playground-run-actions button:hover, -.agent-playground-inspector-head button:hover { - border-color: hsl(var(--playground-accent) / 0.32); - color: hsl(var(--playground-accent)); - background: hsl(var(--playground-accent) / 0.05); -} - -.agent-playground-run-actions button.active { - border-color: hsl(var(--playground-accent) / 0.32); - background: hsl(var(--playground-accent-soft)); - color: hsl(var(--playground-accent)); -} - -.agent-playground-run-state { - display: inline-flex; - align-items: center; - gap: var(--console-space-1); - margin-right: var(--console-space-1); - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - white-space: nowrap; -} - -.agent-playground-run-state.is-running { - color: hsl(var(--playground-accent)); -} - -.agent-playground-run-state.is-running svg { - animation: playground-run-breathe var(--zc-motion-loop) var(--console-ease-out) infinite; -} - -.agent-playground-run-state.has-problem { - color: hsl(8 58% 47%); -} - -.agent-playground-run-actions .agent-playground-stop { - border-color: hsl(8 62% 52% / 0.24); - color: hsl(8 58% 46%); -} - -.agent-playground-run-actions .agent-playground-stop:hover { - border-color: hsl(8 62% 52% / 0.42); - background: hsl(8 72% 52% / 0.07); - color: hsl(8 64% 42%); -} - -.agent-playground-confirm { - display: flex; - align-items: center; - gap: var(--console-space-2); - padding: var(--console-space-3) var(--console-space-4); - border-bottom: var(--console-border-hairline) solid hsl(8 62% 52% / 0.2); - background: hsl(8 70% 96%); - color: hsl(8 38% 28%); - font-size: var(--console-text-label); -} - -.dark .agent-playground-confirm { - background: hsl(8 24% 14%); - color: hsl(8 50% 77%); -} - -.agent-playground-confirm > div { - display: flex; - min-width: 0; - flex: 1; - flex-direction: column; -} - -.agent-playground-confirm span { opacity: 0.72; } - -.agent-playground-confirm button { - min-height: 1.85rem; - padding: 0 var(--console-space-3); - border: var(--console-border-hairline) solid currentColor; - border-radius: var(--console-radius-2); - background: transparent; - color: inherit; - font-size: var(--console-text-label); - cursor: pointer; -} - -.agent-playground-confirm button.danger { - border-color: hsl(var(--destructive)); - background: hsl(var(--destructive)); - color: hsl(var(--destructive-foreground)); -} - -.agent-playground-run-settings { - position: relative; - z-index: 3; - display: flex; - flex-wrap: wrap; - gap: var(--console-space-3); - padding: var(--console-space-3) var(--console-space-3); - border-bottom: var(--console-border-hairline) solid hsl(var(--playground-line) / 0.7); - background: hsl(var(--sidebar)); - border-top: var(--console-border-hairline) solid hsl(var(--background) / 0.7); -} - -.agent-playground-run-settings label { - display: flex; - flex: 1 1 8rem; - min-width: 0; - flex-direction: column; - gap: var(--console-space-1); -} - -.agent-playground-run-settings .agent-playground-directory-field { - flex-basis: 14rem; -} - -.agent-playground-run-settings label > span { - display: flex; - align-items: center; - gap: var(--console-space-1); - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - font-weight: var(--console-weight-strong); -} - -.agent-playground-run-settings input[type="text"], -.agent-playground-run-settings input:not([type]), -.agent-playground-run-settings select { - width: 100%; - min-width: 0; - height: 2rem; - padding: 0 var(--console-space-2); - border: var(--console-border-hairline) solid hsl(var(--border)); - border-radius: var(--console-radius-2); - outline: 0; - background: hsl(var(--background) / 0.84); - color: hsl(var(--foreground)); - font-size: var(--console-text-label); -} - -.agent-playground-run-settings input:focus, -.agent-playground-run-settings select:focus { - border-color: hsl(var(--playground-accent) / 0.55); - outline: var(--console-border-focus) solid hsl(var(--playground-accent) / 0.08); outline-offset: 0; -} - -.agent-playground-run-settings select:disabled { - opacity: 0.58; - cursor: not-allowed; -} - -.agent-playground-network-toggle { - position: relative; - justify-content: flex-end; - padding-bottom: var(--console-space-1); -} - -.agent-playground-network-toggle input { - position: absolute; - width: 1px; - height: 1px; - opacity: 0; -} - -.agent-playground-network-toggle i { - position: relative; - display: block; - width: 2.2rem; - height: 1.2rem; - border: var(--console-border-hairline) solid hsl(var(--border)); - border-radius: var(--console-radius-full); - background: hsl(var(--muted)); - cursor: pointer; - transition: background var(--console-motion-fast) var(--console-ease-out), border-color var(--console-motion-fast) var(--console-ease-out); -} - -.agent-playground-network-toggle i::after { - position: absolute; - top: 0.16rem; - left: 0.17rem; - width: 0.76rem; - height: 0.76rem; - border-radius: var(--console-radius-full); - background: hsl(var(--background)); - box-shadow: var(--console-elevation-1); - content: ""; - transition: transform var(--console-motion-fast) var(--console-ease-out); -} - -.agent-playground-network-toggle input:checked + i { - border-color: hsl(var(--playground-accent) / 0.45); - background: hsl(var(--playground-accent)); -} - -.agent-playground-network-toggle input:checked + i::after { - transform: translateX(0.96rem); -} - -.agent-playground-network-toggle input:focus-visible + i { - outline: 2px solid hsl(var(--playground-accent)); - outline-offset: 2px; -} - -.agent-playground-run-settings > p { - display: flex; - grid-column: 1 / -1; - align-items: center; - gap: var(--console-space-2); - margin: 0; - padding-top: 0; - color: hsl(8 58% 48%); - font-size: var(--console-text-label); -} - -.agent-playground-conversation { - position: relative; - min-height: 0; - flex: 1; - overflow: hidden; - background: hsl(var(--background)); -} - -.agent-playground-message-scroll { - height: 100%; - overflow-y: auto; - overscroll-behavior: contain; - scrollbar-width: thin; -} - -.agent-playground-empty { - display: grid; - width: min(100% - 3rem, 42rem); - min-height: 100%; - align-content: center; - margin: auto; - padding: var(--console-space-7) 0; -} - -.agent-playground-empty-mark { - width: 3.6rem; - height: 3.6rem; - margin-bottom: var(--console-space-4); - border: var(--console-border-hairline) solid hsl(var(--playground-accent) / 0.18); - border-radius: var(--console-radius-3); - box-shadow: none; -} - -.agent-playground-empty h2 { - /* stylelint-disable-next-line console/scale-values -- 空状态大标题随视口在 title 与 display 之间连续缩放(2.2vw),尺度里没有对应写法 */ - font-size: clamp(var(--console-text-title), 2.2vw, var(--console-text-display)); - font-weight: var(--console-weight-strong); -} - -.agent-playground-empty p { - max-width: 34rem; - margin: var(--console-space-2) 0 var(--console-space-5); - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-body); - line-height: 1.65; -} - -.agent-playground-prompts { - display: grid; - grid-template-columns: repeat(3, minmax(0, 1fr)); - gap: var(--console-space-2); -} - -.agent-playground-prompts button { - min-height: 4rem; - padding: var(--console-space-3); - border: var(--console-border-hairline) solid hsl(var(--border)); - border-radius: var(--console-radius-3); - background: hsl(var(--background) / 0.8); - color: hsl(var(--foreground) / 0.78); - font-size: var(--console-text-label); - line-height: 1.45; - text-align: left; - cursor: pointer; - transition: border-color var(--console-motion-fast) var(--console-ease-out), background-color var(--console-motion-fast) var(--console-ease-out); -} - -.agent-playground-prompts button::after { - display: block; - margin-top: var(--console-space-2); - color: hsl(var(--playground-accent)); - content: "↗"; -} - -.agent-playground-prompts button:hover { - border-color: hsl(var(--playground-accent) / 0.3); - background: hsl(var(--muted)); -} - -.agent-playground-message-list { - display: flex; - flex-direction: column; - gap: var(--console-space-4); - width: min(100% - 2.25rem, 52rem); - margin: 0 auto; - padding: var(--console-space-5) 0 var(--console-space-6); -} - -.agent-playground-message { - display: flex; - align-items: flex-start; - gap: var(--console-space-3); -} - -.agent-playground-message.is-user { - flex-direction: row-reverse; -} - -.agent-playground-message-avatar { - width: 1.9rem; - height: 1.9rem; - margin-top: 0; - border: var(--console-border-hairline) solid hsl(var(--border)); - border-radius: var(--console-radius-2); - background: hsl(var(--muted)); - color: hsl(var(--muted-foreground)); -} - -.agent-playground-message.is-agent .agent-playground-message-avatar { - border-color: hsl(var(--playground-accent) / 0.18); - border-radius: var(--console-radius-2); - background: hsl(var(--playground-accent-soft)); - color: hsl(var(--playground-accent)); -} - -.agent-playground-message-main { - min-width: 0; - max-width: calc(100% - 3rem); -} - -.agent-playground-message.is-user .agent-playground-message-main { - max-width: min(76%, 42rem); -} - -.agent-playground-message-meta { - display: flex; - align-items: center; - gap: var(--console-space-2); - margin: 0 0 var(--console-space-1); - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); -} - -.agent-playground-message.is-user .agent-playground-message-meta { - justify-content: flex-end; -} - -.agent-playground-message-meta strong { - color: hsl(var(--foreground) / 0.82); - font-weight: var(--console-weight-strong); -} - -.agent-playground-message-content { - overflow: hidden; - padding: var(--console-space-3) var(--console-space-4); - border: var(--console-border-hairline) solid hsl(var(--border) / 0.78); - border-radius: var(--console-radius-3); - background: hsl(var(--background) / 0.94); - box-shadow: none; -} - -.agent-playground-message.is-user .agent-playground-message-content { - border-color: hsl(var(--playground-accent) / 0.2); - border-radius: var(--console-radius-3); - background: hsl(var(--playground-accent-soft)); - box-shadow: none; -} - -.agent-playground-message.is-approval .agent-playground-message-avatar { - border-color: hsl(38 76% 48% / 0.32); - background: hsl(38 82% 52% / 0.1); - color: hsl(34 70% 42%); -} - -.agent-playground-message.is-approval .agent-playground-message-content { - border-color: hsl(38 76% 48% / 0.32); - background: hsl(42 82% 97% / 0.9); - box-shadow: var(--console-elevation-2); -} - -.dark .agent-playground-message.is-approval .agent-playground-message-content { - background: hsl(38 30% 12% / 0.78); -} - -.agent-playground-message.is-approval .agent-playground-message-meta span:last-child { - padding: 0 var(--console-space-1); - border: var(--console-border-hairline) solid hsl(38 76% 48% / 0.26); - border-radius: var(--console-radius-full); - color: hsl(34 70% 40%); - font-size: var(--console-text-label); - font-weight: var(--console-weight-strong); - letter-spacing: 0.055em; - text-transform: none; -} - -.agent-playground-approval-actions { - display: grid; - gap: var(--console-space-2); - margin-top: var(--console-space-3); - padding-top: var(--console-space-3); - border-top: var(--console-border-hairline) solid hsl(38 62% 48% / 0.18); -} - -.agent-playground-approval-actions > div { - display: flex; - flex-wrap: wrap; - gap: var(--console-space-2); -} - -.agent-playground-approval-actions button { - min-height: 1.95rem; - padding: 0 var(--console-space-3); - border: var(--console-border-hairline) solid hsl(var(--border)); - border-radius: var(--console-radius-1); - background: hsl(var(--background) / 0.78); - color: hsl(var(--foreground) / 0.8); - font-size: var(--console-text-label); - font-weight: var(--console-weight-strong); - cursor: pointer; - transition: background var(--console-motion-fast) var(--console-ease-out), border-color var(--console-motion-fast) var(--console-ease-out), color var(--console-motion-fast) var(--console-ease-out), transform var(--console-motion-fast) var(--console-ease-out); -} - -.agent-playground-approval-actions button:hover:not(:disabled) { - border-color: hsl(var(--playground-accent) / 0.38); - color: hsl(var(--playground-accent)); - transform: translateY(-1px); -} - -.agent-playground-approval-actions button.is-primary { - border-color: hsl(var(--playground-accent) / 0.36); - background: hsl(var(--playground-accent)); - color: hsl(var(--playground-accent-foreground)); -} - -.agent-playground-approval-actions button.is-danger { - border-color: hsl(8 62% 52% / 0.25); - color: hsl(8 58% 46%); -} - -.agent-playground-approval-actions button:disabled { - cursor: not-allowed; - opacity: 0.48; -} - -.agent-playground-approval-actions small { - display: inline-flex; - align-items: center; - gap: var(--console-space-1); - color: hsl(var(--playground-accent)); - font-size: var(--console-text-label); -} - -.agent-playground-message-content > :first-child, -.agent-playground-message-content .zhin-markdown > :first-child { margin-top: 0; } -.agent-playground-message-content > :last-child, -.agent-playground-message-content .zhin-markdown > :last-child { margin-bottom: 0; } - -.agent-playground-message-content .zhin-code-block { - max-width: 100%; - margin-right: calc(var(--console-space-1) * -1); - margin-left: calc(var(--console-space-1) * -1); -} - -.agent-playground-inline-run { - position: relative; - overflow: hidden; - margin-left: var(--console-space-7); - border: var(--console-border-hairline) solid hsl(var(--playground-line) / 0.82); - border-radius: var(--console-radius-3); - background: hsl(var(--background) / 0.86); - box-shadow: none; -} - -.dark .agent-playground-inline-run { - background: hsl(var(--card) / 0.72); -} - -.agent-playground-inline-run-rail { - position: absolute; - inset: 0 auto 0 0; - width: 3px; - background: hsl(var(--playground-accent)); -} - -.agent-playground-inline-run.is-running .agent-playground-inline-run-rail { background: hsl(190 62% 46%); } -.agent-playground-inline-run.is-failed .agent-playground-inline-run-rail { background: hsl(8 62% 52%); } -.agent-playground-inline-run.is-cancelled .agent-playground-inline-run-rail { background: hsl(38 76% 48%); } - -.agent-playground-inline-run-head { - display: grid; - grid-template-columns: auto minmax(0, 1fr) auto; - align-items: start; - gap: var(--console-space-3); - padding: var(--console-space-4) var(--console-space-4) var(--console-space-3) var(--console-space-4); -} - -.agent-playground-inline-run-icon { - display: inline-flex; - align-items: center; - justify-content: center; - width: 2.2rem; - height: 2.2rem; - border: var(--console-border-hairline) solid hsl(var(--playground-accent) / 0.18); - border-radius: var(--console-radius-2); - background: hsl(var(--playground-accent-soft)); - color: hsl(var(--playground-accent)); -} - -.agent-playground-inline-run.is-running .agent-playground-inline-run-icon { - border-color: hsl(190 62% 46% / 0.24); - background: hsl(190 62% 46% / 0.09); - color: hsl(190 62% 40%); -} - -.agent-playground-inline-run-copy { min-width: 0; } -.agent-playground-inline-run-copy > span { - display: block; - margin-bottom: var(--console-space-1); - color: hsl(var(--muted-foreground) / 0.76); - font-size: var(--console-text-label); - font-weight: var(--console-weight-strong); - letter-spacing: 0.11em; - text-transform: none; -} - -.agent-playground-inline-run-copy h3 { - margin: 0; - color: hsl(var(--foreground) / 0.91); - font-size: var(--console-text-body); - font-weight: var(--console-weight-strong); - letter-spacing: -0.012em; -} - -.agent-playground-inline-run-copy p { - display: -webkit-box; - overflow: hidden; - margin: var(--console-space-1) 0 0; - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - line-height: 1.45; - -webkit-box-orient: vertical; - -webkit-line-clamp: 2; -} - -.agent-playground-inline-run-actions { - display: flex; - flex-wrap: wrap; - justify-content: flex-end; - gap: var(--console-space-1); -} - -.agent-playground-inline-run-actions button, -.agent-playground-inline-run footer button { - display: inline-flex; - align-items: center; - justify-content: center; - gap: var(--console-space-1); - min-height: 1.82rem; - padding: 0 var(--console-space-2); - border: var(--console-border-hairline) solid hsl(var(--border) / 0.82); - border-radius: var(--console-radius-1); - background: hsl(var(--background) / 0.72); - color: hsl(var(--foreground) / 0.73); - font-size: var(--console-text-label); - font-weight: var(--console-weight-strong); - cursor: pointer; - transition: border-color var(--console-motion-fast) var(--console-ease-out), color var(--console-motion-fast) var(--console-ease-out), background var(--console-motion-fast) var(--console-ease-out), transform var(--console-motion-fast) var(--console-ease-out); -} - -.agent-playground-inline-run-actions button:hover:not(:disabled), -.agent-playground-inline-run footer button:hover { - border-color: hsl(var(--playground-accent) / 0.36); - color: hsl(var(--playground-accent)); - transform: translateY(-1px); -} - -.agent-playground-inline-run-actions button.is-stop { - border-color: hsl(8 62% 52% / 0.23); - color: hsl(8 58% 47%); -} - -.agent-playground-inline-run-actions button:disabled { cursor: wait; opacity: 0.55; } - -.agent-playground-inline-run-metrics { - display: grid; - grid-template-columns: repeat(5, minmax(0, 1fr)); - margin: 0; - border-top: var(--console-border-hairline) solid hsl(var(--playground-line) / 0.62); - border-bottom: var(--console-border-hairline) solid hsl(var(--playground-line) / 0.62); - background: hsl(var(--muted) / 0.22); -} - -.agent-playground-inline-run-metrics > div { - display: flex; - min-width: 0; - align-items: baseline; - justify-content: center; - gap: var(--console-space-1); - padding: var(--console-space-2) var(--console-space-1); - border-right: var(--console-border-hairline) solid hsl(var(--playground-line) / 0.48); -} - -.agent-playground-inline-run-metrics > div:last-child { border-right: 0; } -.agent-playground-inline-run-metrics dt { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); } -.agent-playground-inline-run-metrics dd { overflow: hidden; margin: 0; font-size: var(--console-text-label); font-weight: var(--console-weight-strong); text-overflow: ellipsis; white-space: nowrap; } -.agent-playground-inline-run-metrics .has-problem dd { color: hsl(8 58% 48%); } - -.agent-playground-inline-run-steps { - display: grid; - gap: 0; - margin: 0; - padding: var(--console-space-2) var(--console-space-4) var(--console-space-2) var(--console-space-4); - list-style: none; -} - -.agent-playground-inline-run-steps li { - position: relative; - display: grid; - grid-template-columns: 0.75rem minmax(0, 1fr) auto; - align-items: center; - gap: var(--console-space-2); - min-height: 2.05rem; -} - -.agent-playground-inline-run-steps li:not(:last-child)::after { - position: absolute; - z-index: 0; - top: 1.18rem; - bottom: -0.86rem; - left: 0.28rem; - width: 1px; - background: hsl(var(--playground-line)); - content: ""; -} - -.agent-playground-inline-run-steps i { - position: relative; - z-index: 1; - width: 0.58rem; - height: 0.58rem; - border: var(--console-border-focus) solid hsl(var(--background)); - border-radius: var(--console-radius-full); - background: hsl(var(--playground-accent)); - outline: var(--console-border-hairline) solid hsl(var(--playground-accent) / 0.28); outline-offset: 0; -} - -.agent-playground-inline-run-steps li.is-running i { - background: hsl(190 62% 46%); - outline: var(--console-border-hairline) solid hsl(190 62% 46% / 0.34); outline-offset: 0; - animation: playground-run-breathe var(--zc-motion-loop) var(--console-ease-out) infinite; -} - -.agent-playground-inline-run-steps li.is-failed i, -.agent-playground-inline-run-steps li.is-denied i { background: hsl(8 62% 52%); outline: var(--console-border-hairline) solid hsl(8 62% 52% / 0.3); outline-offset: 0; } -.agent-playground-inline-run-steps li.is-cancelled i { background: hsl(38 76% 48%); outline: var(--console-border-hairline) solid hsl(38 76% 48% / 0.3); outline-offset: 0; } -.agent-playground-inline-run-steps li > div { display: flex; min-width: 0; flex-direction: column; } -.agent-playground-inline-run-steps strong { overflow: hidden; color: hsl(var(--foreground) / 0.82); font-size: var(--console-text-label); font-weight: var(--console-weight-strong); text-overflow: ellipsis; white-space: nowrap; } -.agent-playground-inline-run-steps small { overflow: hidden; color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); text-overflow: ellipsis; white-space: nowrap; } -.agent-playground-inline-run-steps li > span { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); } -.agent-playground-inline-run-steps li.is-failed > span, -.agent-playground-inline-run-steps li.is-denied > span { color: hsl(8 58% 48%); } - -.agent-playground-inline-run-empty { - padding: var(--console-space-3) var(--console-space-4); - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - text-align: center; -} - -.agent-playground-inline-run footer { - display: flex; - align-items: center; - justify-content: space-between; - gap: var(--console-space-2); - padding: var(--console-space-2) var(--console-space-4) var(--console-space-2) var(--console-space-4); -} - -.agent-playground-inline-run footer button { - min-height: auto; - padding: var(--console-space-1) 0; - border: 0; - background: transparent; - color: hsl(var(--muted-foreground)); -} - -.agent-playground-inline-run footer button:first-child svg { transition: transform var(--console-motion-fast) var(--console-ease-out); } -.agent-playground-inline-run footer button:first-child[aria-expanded="true"] svg { transform: rotate(180deg); } - -.agent-playground-composer { - position: relative; - z-index: 2; - display: grid; - gap: var(--console-space-2); - padding: var(--console-space-3) var(--console-space-3) var(--console-space-3); - border-top: var(--console-border-hairline) solid hsl(var(--playground-line) / 0.74); - background: hsl(var(--background) / 0.94); - box-shadow: none; - backdrop-filter: blur(16px); -} - -.agent-playground-composer .rich-text-editor, -.agent-playground-composer .sandbox-markdown-preview { - min-height: 3rem !important; - border-color: hsl(var(--border) / 0.86) !important; - border-radius: var(--console-radius-3) !important; - background-color: hsl(var(--muted) / 0.24); -} - -.agent-playground-composer .rich-text-editor { - padding: var(--console-space-3) var(--console-space-3) !important; -} - -.agent-playground-composer .rich-text-editor:focus { - border-color: hsl(var(--playground-accent) / 0.52) !important; - outline: var(--console-border-focus) solid hsl(var(--playground-accent) / 0.08); outline-offset: 0; -} - -.agent-playground-composer .sandbox-composer-tabs { - display: inline-flex; - flex-shrink: 0; - gap: 0; - padding: var(--console-space-1); - border: var(--console-border-hairline) solid transparent; - border-radius: var(--console-radius-1); - background: hsl(var(--muted)); -} - -.agent-playground-composer .sandbox-composer-tabs button { - min-height: 1.65rem; - padding: 0 var(--console-space-2); - border: 0; - border-radius: var(--console-radius-1); - background: transparent; - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - white-space: nowrap; - cursor: pointer; -} - -.agent-playground-composer .sandbox-composer-tabs button.active { - background: hsl(var(--background)); - color: hsl(var(--foreground)); -} - -.agent-playground-composer .sandbox-composer-tabs button:focus-visible { - outline: var(--console-border-focus) solid hsl(var(--ring)); - outline-offset: 1px; -} - -.agent-playground-composer > div:last-child { - opacity: 0.75; -} - -.agent-playground-inspector { - display: none; - min-width: 0; - height: 100%; - flex-direction: column; - overflow-y: auto; - border-left: var(--console-border-hairline) solid hsl(var(--playground-line) / 0.7); - background: - hsl(var(--muted) / 0.25); - scrollbar-width: thin; -} - -.agent-playground-inspector.show { - display: flex; -} - -.agent-playground-inspector-head { - display: flex; - min-height: 4.75rem; - flex-shrink: 0; - align-items: center; - justify-content: space-between; - gap: var(--console-space-2); - padding: var(--console-space-3) var(--console-space-3); - border-bottom: var(--console-border-hairline) solid hsl(var(--playground-line) / 0.65); -} - -.agent-playground-inspector-head > div:last-child { - display: flex; - gap: var(--console-space-1); -} - -.agent-playground-inspector-head > div:first-child > span { - color: hsl(var(--playground-accent)); - font-size: var(--console-text-label); - font-weight: var(--console-weight-strong); - letter-spacing: 0.08em; - text-transform: none; -} - -.agent-playground-inspector-head h2 { - margin-top: 0; - font-size: var(--console-text-body); - font-weight: var(--console-weight-strong); -} - -.agent-playground-inspector-head button { - padding: 0; -} - -.agent-playground-inspector-close { - display: inline-flex; -} - -.agent-playground-inspector-tabs { - display: grid; - flex-shrink: 0; - grid-template-columns: 1fr 1.35fr; - gap: var(--console-space-1); - margin: var(--console-space-2) var(--console-space-3) 0; - padding: var(--console-space-1); - border: var(--console-border-hairline) solid hsl(var(--border) / 0.7); - border-radius: var(--console-radius-2); - background: hsl(var(--background) / 0.5); -} - -.agent-playground-inspector-tabs button { - display: inline-flex; - min-width: 0; - height: 1.9rem; - align-items: center; - justify-content: center; - gap: var(--console-space-1); - border: 0; - border-radius: var(--console-radius-1); - background: transparent; - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - font-weight: var(--console-weight-strong); - cursor: pointer; -} - -.agent-playground-inspector-tabs button.active { - background: hsl(var(--background)); - color: hsl(var(--foreground)); - box-shadow: var(--console-elevation-1); -} - -.agent-playground-inspector-tabs button span { - min-width: 1rem; - padding: 0 var(--console-space-1); - border-radius: var(--console-radius-full); - background: hsl(var(--muted)); - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); -} - -.agent-playground-inspector-view { - display: flex; - min-height: 0; - flex: 1; - flex-direction: column; -} - -.agent-playground-inspector-view.hidden { - display: none; -} - -.agent-playground-inspector-section { - padding: var(--console-space-3); - border-bottom: var(--console-border-hairline) solid hsl(var(--playground-line) / 0.58); -} - -.agent-playground-inspector-title { - display: flex; - align-items: center; - justify-content: space-between; - margin-bottom: var(--console-space-2); - color: hsl(var(--foreground) / 0.82); - font-size: var(--console-text-label); - font-weight: var(--console-weight-strong); -} - -.agent-playground-inspector-title small { - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - font-weight: var(--console-weight-medium); - letter-spacing: 0.05em; - text-transform: none; -} - -.agent-playground-metrics { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - border: var(--console-border-hairline) solid hsl(var(--border) / 0.72); - border-radius: var(--console-radius-3); - overflow: hidden; - background: hsl(var(--background) / 0.55); -} - -.agent-playground-metrics > div { - display: grid; - grid-template-columns: auto 1fr; - gap: 0 var(--console-space-2); - min-width: 0; - padding: var(--console-space-2); -} - -.agent-playground-metrics > div:nth-child(odd) { border-right: var(--console-border-hairline) solid hsl(var(--border) / 0.62); } -.agent-playground-metrics > div:nth-child(-n+2) { border-bottom: var(--console-border-hairline) solid hsl(var(--border) / 0.62); } -.agent-playground-metrics svg { grid-row: span 2; width: 0.78rem; color: hsl(var(--playground-accent)); } -.agent-playground-metrics strong { overflow: hidden; font-size: var(--console-text-body); text-overflow: ellipsis; } -.agent-playground-metrics span { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); } -.agent-playground-metrics .has-problem svg, -.agent-playground-metrics .has-problem strong { color: hsl(8 62% 52%); } - -.agent-playground-context-list { - display: grid; - gap: 0; - margin: 0; -} - -.agent-playground-context-list > div { - display: flex; - min-width: 0; - align-items: baseline; - justify-content: space-between; - gap: var(--console-space-3); - padding: var(--console-space-1) 0; - border-bottom: var(--console-border-hairline) dashed hsl(var(--border) / 0.6); - font-size: var(--console-text-label); -} - -.agent-playground-context-list > div:last-child { border-bottom: 0; } -.agent-playground-context-list dt { color: hsl(var(--muted-foreground)); } -.agent-playground-context-list dd { - min-width: 0; - margin: 0; - overflow: hidden; - color: hsl(var(--foreground) / 0.82); - font-family: var(--console-font-mono); - text-align: right; - text-overflow: ellipsis; - white-space: nowrap; -} -.agent-playground-context-list dd.is-online { color: hsl(var(--foreground)); } - -.agent-playground-trace-section { - flex: 1; -} - -.agent-playground-trace-list { - position: relative; - display: grid; - gap: 0; -} - -.agent-playground-trace-list::before { - position: absolute; - top: 0.55rem; - bottom: 0.55rem; - left: 0.26rem; - width: 1px; - background: hsl(var(--border)); - content: ""; -} - -.agent-playground-trace-item { - position: relative; - display: grid; - grid-template-columns: 0.55rem minmax(0, 1fr) auto; - gap: var(--console-space-2); - align-items: start; - padding: var(--console-space-2) 0; -} - -.agent-playground-trace-dot { - position: relative; - z-index: 1; - width: 0.52rem; - height: 0.52rem; - margin-top: var(--console-space-1); - border: var(--console-border-focus) solid hsl(var(--muted)); - border-radius: var(--console-radius-full); - background: hsl(var(--muted-foreground)); - outline: var(--console-border-hairline) solid hsl(var(--border)); outline-offset: 0; -} - -/* Trace kinds are chart categories (never the amber warning hue); a finished step is neutral, a problem is red. console#125. */ -.agent-playground-trace-item.is-success .agent-playground-trace-dot { background: hsl(var(--muted-foreground) / 0.6); } -.agent-playground-trace-item.is-running .agent-playground-trace-dot { background: hsl(var(--chart-7)); } -.agent-playground-trace-item.is-thinking .agent-playground-trace-dot { background: hsl(var(--chart-1)); } -.agent-playground-trace-item.is-tool .agent-playground-trace-dot { background: hsl(var(--chart-5)); } -.agent-playground-trace-item.is-capability .agent-playground-trace-dot { background: hsl(var(--chart-4)); } -.agent-playground-trace-item.is-usage .agent-playground-trace-dot { background: hsl(var(--chart-3)); } -.agent-playground-trace-item.is-problem .agent-playground-trace-dot { background: hsl(var(--destructive-fill)); } -.agent-playground-trace-item > div { display: flex; min-width: 0; flex-direction: column; } -.agent-playground-trace-item strong { overflow: hidden; font-size: var(--console-text-label); font-weight: var(--console-weight-strong); text-overflow: ellipsis; white-space: nowrap; } -.agent-playground-trace-item small { overflow: hidden; color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); text-overflow: ellipsis; white-space: nowrap; } -.agent-playground-trace-item time { margin-top: 0; color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); } - -.agent-playground-trace-loading, -.agent-playground-trace-empty, -.agent-playground-trace-notice { - display: flex; - min-height: 5rem; - align-items: center; - justify-content: center; - gap: var(--console-space-2); - border: var(--console-border-hairline) dashed hsl(var(--border)); - border-radius: var(--console-radius-2); - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - text-align: center; -} - -.agent-playground-trace-loading i { - width: 0.35rem; - height: 0.35rem; - border-radius: var(--console-radius-full); - background: hsl(var(--playground-accent)); - animation: playground-trace-pulse var(--zc-motion-loop) var(--console-ease-out) infinite alternate; -} - -.agent-playground-trace-loading i:nth-child(2) { animation-delay: var(--console-motion-fast); } -.agent-playground-trace-loading i:nth-child(3) { animation-delay: calc(var(--console-motion-fast) * 2); } -.agent-playground-trace-notice { padding: var(--console-space-3); border-color: hsl(38 84% 52% / 0.42); color: hsl(32 70% 38%); } - -.agent-playground-task-section, -.agent-playground-artifact-section { - flex: 0 0 auto; -} - -.agent-playground-artifact-section { - flex: 1 0 auto; -} - -.agent-playground-task-list, -.agent-playground-artifact-list { - display: grid; - gap: var(--console-space-2); -} - -.agent-playground-task-list article { - display: grid; - grid-template-columns: 0.6rem minmax(0, 1fr); - gap: 0 var(--console-space-2); - padding: var(--console-space-2) var(--console-space-3); - border: var(--console-border-hairline) solid hsl(var(--border) / 0.72); - border-radius: var(--console-radius-2); - background: hsl(var(--background) / 0.58); -} - -.agent-playground-task-list article > i { - width: 0.5rem; - height: 0.5rem; - margin-top: var(--console-space-1); - border: var(--console-border-focus) solid hsl(var(--muted)); - border-radius: var(--console-radius-full); - background: hsl(var(--muted-foreground)); - outline: var(--console-border-hairline) solid hsl(var(--border)); outline-offset: 0; -} - -.agent-playground-task-list article.is-running > i { background: hsl(190 62% 46%); } -.agent-playground-task-list article.is-completed > i { background: hsl(var(--playground-accent)); } -.agent-playground-task-list article.is-failed > i { background: hsl(8 62% 52%); } -.agent-playground-task-list article.is-cancelled > i { background: hsl(38 76% 48%); } -.agent-playground-task-list article > div { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: var(--console-space-2); } -.agent-playground-task-list strong { font-size: var(--console-text-label); font-weight: var(--console-weight-strong); } -.agent-playground-task-list code { overflow: hidden; color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); text-overflow: ellipsis; } - -.agent-playground-task-list dl { - display: grid; - grid-column: 2; - grid-template-columns: repeat(3, minmax(0, 1fr)); - margin: var(--console-space-2) 0 0; - padding-top: var(--console-space-2); - border-top: var(--console-border-hairline) dashed hsl(var(--border) / 0.72); -} - -.agent-playground-task-list dl > div { display: flex; flex-direction: column; gap: 0; } -.agent-playground-task-list dt { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); } -.agent-playground-task-list dd { margin: 0; font-size: var(--console-text-label); } - -.agent-playground-artifact-list article { - overflow: hidden; - border: var(--console-border-hairline) solid hsl(var(--border) / 0.72); - border-radius: var(--console-radius-2); - background: hsl(var(--background) / 0.6); -} - -.agent-playground-artifact-list article.is-expanded { - border-color: hsl(var(--playground-accent) / 0.28); - box-shadow: var(--console-elevation-2); -} - -.agent-playground-artifact-list article > button { - display: grid; - width: 100%; - grid-template-columns: auto minmax(0, 1fr) auto auto; - gap: var(--console-space-2); - align-items: center; - padding: var(--console-space-2) var(--console-space-2); - border: 0; - background: transparent; - color: inherit; - text-align: left; - cursor: pointer; -} - -.agent-playground-artifact-icon { - display: inline-flex; - width: 1.65rem; - height: 1.65rem; - align-items: center; - justify-content: center; - border: var(--console-border-hairline) solid hsl(var(--playground-accent) / 0.18); - border-radius: var(--console-radius-1); - background: hsl(var(--playground-accent-soft)); - color: hsl(var(--playground-accent)); -} - -.agent-playground-artifact-list article > button > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; } -.agent-playground-artifact-list strong, -.agent-playground-artifact-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.agent-playground-artifact-list strong { font-size: var(--console-text-label); font-weight: var(--console-weight-strong); } -.agent-playground-artifact-list small { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); } -.agent-playground-artifact-list em { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); font-style: normal; text-transform: none; } -.agent-playground-artifact-list article.is-completed em { color: hsl(var(--playground-accent)); } -.agent-playground-artifact-list article.is-failed em, -.agent-playground-artifact-list article.is-denied em { color: hsl(8 58% 47%); } -.agent-playground-artifact-list article > button > svg { color: hsl(var(--muted-foreground)); transition: transform var(--console-motion-fast) var(--console-ease-out); } -.agent-playground-artifact-list article.is-expanded > button > svg { transform: rotate(180deg); } - -.agent-playground-artifact-detail { - display: grid; - gap: var(--console-space-2); - padding: 0 var(--console-space-2) var(--console-space-2) var(--console-space-7); -} - -.agent-playground-artifact-detail > code { - overflow-wrap: anywhere; - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); -} - -.agent-playground-artifact-detail pre { - max-height: 15rem; - margin: 0; - overflow: auto; - padding: var(--console-space-2); - border: var(--console-border-hairline) solid hsl(var(--border) / 0.7); - border-radius: var(--console-radius-1); - background: hsl(220 18% 10%); - color: hsl(210 25% 91%); - font-size: var(--console-text-label); - line-height: 1.55; - white-space: pre-wrap; - word-break: break-word; -} - -.agent-playground-artifact-detail footer { - display: flex; - justify-content: space-between; - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); -} - -.agent-playground-artifact-empty { - display: flex; - min-height: 6.5rem; - flex-direction: column; - align-items: center; - justify-content: center; - gap: var(--console-space-2); - padding: var(--console-space-4); - border: var(--console-border-hairline) dashed hsl(var(--border)); - border-radius: var(--console-radius-2); - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - line-height: 1.45; - text-align: center; -} - -.agent-playground-studio-link { - display: flex; - flex-shrink: 0; - flex-direction: column; - gap: var(--console-space-1); - margin: var(--console-space-3); - padding: var(--console-space-3); - border: var(--console-border-hairline) solid hsl(var(--playground-accent) / 0.2); - border-radius: var(--console-radius-2); - background: hsl(var(--playground-accent-soft)); - color: hsl(var(--playground-accent)); - text-decoration: none; -} - -.agent-playground-studio-link > span { display: flex; align-items: center; gap: var(--console-space-2); font-size: var(--console-text-label); font-weight: var(--console-weight-strong); } -.agent-playground-studio-link code { overflow: hidden; opacity: 0.7; font-size: var(--console-text-label); text-overflow: ellipsis; white-space: nowrap; } -.agent-playground-studio-link:hover { border-color: hsl(var(--playground-accent) / 0.42); } - -.agent-playground-inspector-overlay { display: none; } - -.agent-playground-shell button:focus-visible, -.agent-playground-shell a:focus-visible, -.agent-playground-shell input:focus-visible { - outline: 2px solid hsl(var(--playground-accent)); - outline-offset: 2px; -} - -@keyframes playground-trace-pulse { - from { opacity: 0.25; transform: translateY(1px); } - to { opacity: 1; transform: translateY(-1px); } -} - -@keyframes playground-run-breathe { - 0%, 100% { opacity: 0.52; transform: scale(0.92); } - 50% { opacity: 1; transform: scale(1); } -} - -@media (width < 90rem) { - .agent-playground-shell, - .agent-playground-shell.has-inspector { - grid-template-columns: minmax(13.5rem, 15rem) minmax(0, 1fr); - } - - .agent-playground-inspector { - position: fixed; - z-index: 1201; - top: 0; - right: 0; - bottom: 0; - width: min(22rem, 90vw); - height: 100dvh; - transform: translateX(105%); - transition: transform var(--console-motion-base) var(--console-ease-out); - box-shadow: var(--console-elevation-3); - } - - .agent-playground-inspector.show { transform: translateX(0); } - .agent-playground-inspector-overlay { - position: fixed; - z-index: 1200; - inset: 0; - display: block; - background: hsl(220 20% 5% / 0.42); - backdrop-filter: blur(2px); - } - -} - -@media (width < 64rem) { - .agent-playground-shell, - .agent-playground-shell.has-inspector { - position: relative; - grid-template-columns: minmax(0, 1fr); - grid-template-rows: auto minmax(0, 1fr); - } - - .agent-playground-mobilebar { - display: grid; - grid-column: 1; - grid-row: 1; - grid-template-columns: 1fr auto 1fr; - align-items: center; - min-height: 2.65rem; - padding: var(--console-space-1) var(--console-space-2); - border-bottom: var(--console-border-hairline) solid hsl(var(--border)); - background: hsl(var(--background)); - } - - .agent-playground-mobilebar strong { font-size: var(--console-text-label); } - .agent-playground-mobilebar button { - display: inline-flex; - align-items: center; - gap: var(--console-space-1); - justify-self: start; - padding: var(--console-space-2); - border: 0; - background: transparent; - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - cursor: pointer; - } - .agent-playground-mobilebar button:last-child { justify-self: end; } - - .agent-playground-sessions.channel-sidebar { - position: fixed; - z-index: 1201; - top: 0; - bottom: 0; - left: 0; - width: min(19rem, 88vw); - max-width: 88vw; - height: 100dvh; - transform: translateX(-105%); - visibility: hidden; - transition: transform var(--console-motion-base) var(--console-ease-out); - box-shadow: var(--console-elevation-3); - } - - .agent-playground-sessions.channel-sidebar.show { transform: translateX(0); visibility: visible; } - .agent-playground-shell .channel-overlay { - position: fixed; - z-index: 1200; - inset: 0; - display: block; - background: hsl(220 20% 5% / 0.42); - backdrop-filter: blur(2px); - } - - .agent-playground-main.chat-area { - grid-column: 1; - grid-row: 2; - padding: 0; - } - - .agent-playground-network-toggle { justify-content: center; } -} - -@media (width < 64rem) { - .agent-playground-shell { - height: calc(100dvh - var(--zc-header-h, 4.5rem) - var(--console-page-padding-block, 2rem) - 1rem); - min-height: 32rem; - border-radius: var(--console-radius-3); - } - - .agent-playground-run-actions a, - .agent-playground-run-state { display: none; } -} - -@media (width < 40rem) { - .agent-playground-shell { - height: calc(100dvh - var(--zc-header-h, 4.5rem) - var(--console-page-padding-block, 2rem) - 1rem); - min-height: 29rem; - border-right: 0; - border-left: 0; - border-radius: 0; - } - - .agent-playground-runbar { - min-height: 4.1rem; - gap: var(--console-space-2); - padding: var(--console-space-2) var(--console-space-3); - } - - .agent-playground-run-icon { width: 2.05rem; height: 2.05rem; } - .agent-playground-run-title span { display: none; } - .agent-playground-run-actions { flex-wrap: nowrap; gap: var(--console-space-1); } - .agent-playground-run-actions button { - flex-shrink: 0; - width: 2rem; - min-width: 2rem; - height: 2rem; - gap: 0; - padding: 0; - /* Text remains the accessible name when narrow screens use the existing icons. */ - font-size: 0; - } - - .agent-playground-confirm { align-items: flex-end; flex-wrap: wrap; } - .agent-playground-confirm > div { flex-basis: 100%; } - - .agent-playground-run-settings { - max-height: 16rem; - overflow-y: auto; - padding: var(--console-space-3); - } - - .agent-playground-network-toggle { align-items: flex-start; } - - .agent-playground-empty { - width: min(100% - 1.5rem, 32rem); - padding: var(--console-space-6) 0; - } - - .agent-playground-prompts { grid-template-columns: 1fr; } - .agent-playground-prompts button { min-height: 2.8rem; } - .agent-playground-message-list { width: calc(100% - 1rem); padding-top: var(--console-space-4); } - .agent-playground-message-avatar { width: 1.75rem; height: 1.75rem; } - .agent-playground-message-main { max-width: calc(100% - 2.35rem); } - .agent-playground-message.is-user .agent-playground-message-main { max-width: 84%; } - .agent-playground-message-content { padding: var(--console-space-3) var(--console-space-3); } - .agent-playground-inline-run { margin-left: 0; } - .agent-playground-inline-run-head { grid-template-columns: auto minmax(0, 1fr); padding: var(--console-space-3) var(--console-space-3) var(--console-space-3) var(--console-space-3); } - .agent-playground-inline-run-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: var(--console-space-7); } - .agent-playground-inline-run-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } - .agent-playground-inline-run-metrics > div:nth-child(3) { border-right: 0; } - .agent-playground-inline-run-metrics > div:nth-child(n+4) { border-top: var(--console-border-hairline) solid hsl(var(--playground-line) / 0.48); } - .agent-playground-inline-run-metrics > div:nth-child(4) { grid-column: span 2; } - .agent-playground-inline-run footer { align-items: flex-start; flex-direction: column; } - - .agent-playground-composer { padding: var(--console-space-2); } - .agent-playground-composer > div:first-child > .flex-1 { display: none; } - .agent-playground-composer > div:last-child { display: none; } - .agent-playground-composer .zhin-code-block { min-width: min(20rem, 78vw); } -} - -@media (prefers-reduced-motion: reduce) { - .agent-playground-shell *, - .agent-playground-trace-loading i { - scroll-behavior: auto !important; - animation-duration: 0.01ms !important; - animation-iteration-count: 1 !important; - transition-duration: 0.01ms !important; - } -} - -/* - * Sandbox (plugin page, zhinjs/zhin#1250): framed like a Console card, with the Console's type - * scale instead of the plugin's 12px defaults. The shortcut hints stay on one line and scroll - * sideways instead of wrapping under the composer. (Collapsing them into a help disclosure and - * moving rare run-bar actions into a 「更多」 menu needs the plugin's JSX: zhin - * plugins/adapters/sandbox/pages/index/SandboxChat.tsx.) - */ -.console-route-view .zhin-sandbox.agent-playground-shell { - border-radius: var(--console-radius-4); - box-shadow: var(--console-card-elevation); - font-size: var(--console-text-body); -} -.console-route-view .zhin-sandbox .sandbox-hints { - flex-wrap: nowrap; - overflow-x: auto; - white-space: nowrap; - font-size: var(--console-text-label); - color: hsl(var(--muted-foreground)); - scrollbar-width: none; -} -.console-route-view .zhin-sandbox .sandbox-hints::-webkit-scrollbar { display: none; } -.console-route-view .zhin-sandbox .sandbox-hint-key { font-size: var(--console-text-label); } -.console-route-view .zhin-sandbox .agent-playground-run-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } diff --git a/console-ui/src/components/ThemeToggle.tsx b/console-ui/src/components/ThemeToggle.tsx deleted file mode 100644 index 78e641b3..00000000 --- a/console-ui/src/components/ThemeToggle.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import { useId, type ReactNode } from 'react' -import { Moon, Sun, Monitor, Palette, RotateCcw, Check } from 'lucide-react' -import { useI18n } from '../i18n' -import { useTheme } from '../hooks/useTheme' -import { THEME_PALETTES, type ThemeMode } from '../theme' -import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from '@zhin.js/console-ui' -import '../theme/appearance.css' - -/** - * The appearance panel. Without props it brings its own trigger button; the top bar's user menu - * instead opens it (`open` / `onOpenChange`) anchored to the menu button (`anchor`). - */ -export function ThemeToggle({ open, onOpenChange, anchor }: { open?: boolean; onOpenChange?: (open: boolean) => void; anchor?: ReactNode } = {}) { - const i18n = useI18n() - const { theme, mode, palette, setMode, setPalette, resetTheme } = useTheme() - const id = useId() - const modes = [ - { id: 'light' as const, label: i18n.t('亮色'), icon: Sun }, - { id: 'dark' as const, label: i18n.t('暗色'), icon: Moon }, - { id: 'system' as const, label: i18n.t('跟随系统'), icon: Monitor }, - ] - return - {anchor ? {anchor} : } - -
-
{i18n.t('显示模式')}
- {modes.map(item => )} -
-
{i18n.t('配色方案')} - {[{ id: 'brand', title: i18n.t('品牌配色') }, { id: 'fresh', title: i18n.t('鲜活配色') }, { id: 'calm', title: i18n.t('沉静配色') }].map(group =>
-

{group.title}

- {THEME_PALETTES.filter(item => item.group === group.id).map(item => )} -
-
)} -
-

{i18n.t('立即预览,仅保存在当前浏览器。')}

-
-
-} diff --git a/console-ui/src/components/UserMenu.tsx b/console-ui/src/components/UserMenu.tsx index 510b4f16..f7e619e4 100644 --- a/console-ui/src/components/UserMenu.tsx +++ b/console-ui/src/components/UserMenu.tsx @@ -1,55 +1,35 @@ -import { useRef, useState } from 'react' import { Link } from 'react-router-dom' -import { ChevronDown, LogOut, Monitor, Moon, Palette, Sun, UserRound } from 'lucide-react' +import { LogOut, Monitor, Moon, Sun, UserRound } from 'lucide-react' import { useI18n } from '../i18n' import { isLocale } from '../i18n/locale.mjs' import { useTheme } from '../hooks/useTheme' import type { ThemeMode } from '../theme' -import { ThemeToggle } from './ThemeToggle' -import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger } from '@zhin.js/console-ui' +import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, IconButton } from '@zhin.js/console-ui' /** - * The top bar's account menu: 个人设置, 界面语言, 显示模式, the full appearance panel and 退出登录 in - * one labelled button instead of four unlabelled icons. The appearance panel (palettes) opens - * anchored to the same button. + * The top bar's account menu: 个人设置, 界面语言, 显示模式 (浅色 / 深色 / 跟随系统) and 退出登录 in + * one round button. console-ui 1.3.0 has one set of colors, so the three modes are the whole + * appearance setting. */ export function UserMenu({ accountLabel, accountHref, onSignOut }: { accountLabel: string; accountHref?: string; onSignOut: () => void }) { const i18n = useI18n() const { locale, setLocale } = i18n - const { theme, mode, setMode } = useTheme() - const [appearanceOpen, setAppearanceOpen] = useState(false) - // Set by the 「外观与配色…」 item; the panel opens once the menu has fully closed (onCloseAutoFocus). - const openAppearanceAfterClose = useRef(false) + const { mode, setMode } = useTheme() const label = i18n.t('用户菜单:{0}', [accountLabel]) const modes = [ - { id: 'light' as const, label: i18n.t('亮色'), icon: Sun }, - { id: 'dark' as const, label: i18n.t('暗色'), icon: Moon }, + { id: 'light' as const, label: i18n.t('浅色'), icon: Sun }, + { id: 'dark' as const, label: i18n.t('深色'), icon: Moon }, { id: 'system' as const, label: i18n.t('跟随系统'), icon: Monitor }, ] - const menu = ( + return ( - + + + - { - if (!openAppearanceAfterClose.current) return - // Opening the panel from onSelect (even after a timeout) races the menu's own dismissal: - // a slow mouse press still has the pointer down when the panel mounts, and its - // pointerup / focus restore counts as an outside interaction that closes the panel at once. - // Waiting for the menu to finish closing, and keeping focus off the trigger, avoids both. - openAppearanceAfterClose.current = false - event.preventDefault() - setAppearanceOpen(true) - }} - > + {i18n.t('当前身份')} {accountLabel} @@ -68,16 +48,16 @@ export function UserMenu({ accountLabel, accountHref, onSignOut }: { accountLabe setMode(value as ThemeMode)}> {modes.map(item => )} - {/* The menu closes first; onCloseAutoFocus above then opens the panel next to the same button. */} - { openAppearanceAfterClose.current = true }}> - - + ) - return +} + +/** The first letter of the account (the round account button, like the design's 「L」). */ +export function accountInitial(label: string): string { + const first = Array.from(label.trim())[0] + return first ? first.toLocaleUpperCase() : '?' } diff --git a/console-ui/src/components/log-panel/log-panel.css b/console-ui/src/components/log-panel/log-panel.css index 820d583b..33956b3a 100644 --- a/console-ui/src/components/log-panel/log-panel.css +++ b/console-ui/src/components/log-panel/log-panel.css @@ -138,9 +138,9 @@ align-items: center; gap: var(--console-space-1); border-radius: var(--console-radius-full); - background: hsl(var(--primary-action)); + background: hsl(var(--console-primary-soft)); padding: 0 var(--console-space-1) 0 var(--console-space-3); - color: hsl(var(--primary-action-foreground)); + color: hsl(var(--console-ink)); } .console-log-panel-scope > svg { width: 0.875rem; height: 0.875rem; flex: none; } @@ -164,7 +164,7 @@ cursor: pointer; } - .console-log-panel-chip-button:hover { background: hsl(var(--primary-action-foreground) / 0.12); } + .console-log-panel-chip-button:hover { background: hsl(var(--console-ink) / 0.08); } .console-log-panel-chip-button svg { width: 0.875rem; height: 0.875rem; } /* Dense workbench (pages/logs/LogPanelWorkbench.tsx): one toolbar row, single-line rows, one-line footer. */ @@ -204,7 +204,7 @@ } .console-log-panel-tool.console-control { width: var(--log-panel-control); height: var(--log-panel-control); min-height: var(--log-panel-control); flex: none; } - .console-log-panel-tool.is-active { background: hsl(var(--primary-action)); color: hsl(var(--primary-action-foreground)); } + .console-log-panel-tool.is-active { background: hsl(var(--console-primary)); color: hsl(var(--console-on-primary)); } .console-log-panel-layout { display: grid; @@ -239,7 +239,7 @@ } .console-log-panel-row:hover { background: hsl(var(--muted) / 0.6); } - .console-log-panel-row.is-selected { background: hsl(var(--primary-action)); } + .console-log-panel-row.is-selected { background: hsl(var(--console-primary-soft)); box-shadow: var(--console-selected-bar); } .console-log-panel-row:focus-visible { outline-offset: -2px; } .console-log-panel-row time { color: hsl(var(--muted-foreground)); font-family: var(--console-font-mono); } .console-log-panel-row > svg { width: 0.875rem; height: 0.875rem; color: hsl(var(--muted-foreground)); } @@ -276,8 +276,8 @@ /* Top-bar toggle: highlighted while the panel is open. */ .console-log-panel-trigger.is-active { - background: hsl(var(--primary-action)); - color: hsl(var(--primary-action-foreground)); + background: hsl(var(--console-primary)); + color: hsl(var(--console-on-primary)); } .console-log-panel-trigger:disabled { cursor: default; opacity: 0.45; } diff --git a/console-ui/src/components/onboarding-banner.tsx b/console-ui/src/components/onboarding-banner.tsx index 6f4ad379..4b06baff 100644 --- a/console-ui/src/components/onboarding-banner.tsx +++ b/console-ui/src/components/onboarding-banner.tsx @@ -2,7 +2,7 @@ import { useState } from 'react' import { Link, useLocation } from 'react-router-dom' import { Rocket, ShieldAlert, X } from 'lucide-react' import { useI18n } from '../i18n' -import { Button } from '@zhin.js/console-ui' +import { Banner, Button, IconButton } from '@zhin.js/console-ui' import { useConsoleSession } from '../hooks/use-console-session' import { useConsoleAccess } from '../hooks/use-console-access' import { hasConsolePermission } from '../utils/console-access.mjs' @@ -25,19 +25,23 @@ export function OnboardingBanner() { const me = session.me if (me?.kind === 'bootstrap' && me.open && me.setupRequired) { - return
-
+ // Soft-card banner: one short state and one white button; the risk itself is the detail line. + return
+ +
} if (!onboardingIncomplete(currentOnboarding(session)) || !hasConsolePermission('plugin.manage', access)) return null - return
-
+ return
+ +
} diff --git a/console-ui/src/components/toast.css b/console-ui/src/components/toast.css index d257b9c4..6988101a 100644 --- a/console-ui/src/components/toast.css +++ b/console-ui/src/components/toast.css @@ -1,33 +1,39 @@ +/* + * The Console's own notices (ToastProvider): titled, and errors / warnings stay until dismissed, so + * they are not the library's one-line `Toast` (`.console-toast`, an inverse pill that leaves after + * 2.5 s — plugins use it through `useToast()` and the root `Toaster`). Soft-card look: a raised card + * without border, radius 20, shadow-lg; the status icon is a round tile on the status background. + */ @layer components { - .console-toast-stack { position: fixed; bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--zc-log-panel-reserve, 0px)); right: 16px; z-index: 100; display: grid; gap: var(--console-space-3); width: min(400px, calc(100vw - 32px)); pointer-events: none; } - .console-toast { display: flex; align-items: flex-start; gap: var(--console-space-3); padding: var(--console-space-4); border: var(--console-border-hairline) solid hsl(var(--border)); border-radius: var(--console-radius-3); background: hsl(var(--popover)); color: hsl(var(--popover-foreground)); box-shadow: var(--console-elevation-2); pointer-events: auto; } - .console-toast-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: var(--console-radius-2); background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); } - .console-toast-icon svg { width: 17px; height: 17px; } - .console-toast-success .console-toast-icon { background: hsl(var(--success) / 0.12); color: hsl(var(--success)); } - .console-toast-error .console-toast-icon { background: hsl(var(--destructive) / 0.12); color: hsl(var(--destructive)); } - .console-toast-warning .console-toast-icon { background: hsl(var(--warning) / 0.12); color: hsl(var(--warning)); } - .console-toast-info .console-toast-icon { background: hsl(var(--info) / 0.12); color: hsl(var(--info)); } - .console-toast-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.6; font-size: var(--console-text-body); } - .console-toast-copy strong { display: block; font-weight: var(--console-weight-strong); margin-bottom: var(--console-space-1); } - .console-toast-copy p { margin: 0; } - .console-toast-close { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--console-radius-1); background: transparent; color: hsl(var(--muted-foreground)); cursor: pointer; } - .console-toast-close:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); } - .console-toast-close svg { width: 15px; height: 15px; } - @media (width < 48rem) { .console-toast { padding: var(--console-space-4); gap: var(--console-space-3); } .console-toast-close { width: 32px; height: 32px; } } - .console-toast[data-state="closing"] { pointer-events: none; } - /* Enter: rise 8px into the bottom-right corner and fade in (base); exit: fade out (fast). */ + .console-notice-stack { position: fixed; bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--zc-log-panel-reserve, 0px) + var(--zc-tabbar-reserve, 0px)); right: 16px; z-index: 100; display: grid; gap: var(--console-space-3); width: min(400px, calc(100vw - 32px)); pointer-events: none; } + .console-notice { display: flex; align-items: flex-start; gap: var(--console-space-3); padding: var(--console-space-4); border-radius: var(--console-radius-5); background: hsl(var(--console-raised)); color: hsl(var(--console-ink)); box-shadow: var(--console-elevation-3); pointer-events: auto; } + .console-notice-icon { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: var(--console-radius-full); background: hsl(var(--console-sunken)); color: hsl(var(--console-ink)); } + .console-notice-icon svg { width: 1.125rem; height: 1.125rem; } + .console-notice-success .console-notice-icon { background: hsl(var(--console-ok-bg)); color: hsl(var(--success)); } + .console-notice-error .console-notice-icon { background: hsl(var(--console-danger-bg)); color: hsl(var(--console-danger)); } + .console-notice-warning .console-notice-icon { background: hsl(var(--console-warn-bg)); color: hsl(var(--console-warn)); } + .console-notice-copy { flex: 1; min-width: 0; padding-top: var(--console-space-1); overflow-wrap: anywhere; font-size: var(--console-text-md); line-height: var(--console-leading-md); } + .console-notice-copy strong { display: block; font-weight: var(--console-weight-medium); margin-bottom: var(--console-space-1); } + .console-notice-copy p { margin: 0; } + .console-notice-close { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: var(--console-radius-full); background: transparent; color: hsl(var(--console-muted)); cursor: pointer; } + .console-notice-close:hover { background: hsl(var(--console-sunken)); color: hsl(var(--console-ink)); } + .console-notice-close:focus-visible { outline: var(--console-focus-ring); outline-offset: var(--console-focus-ring-offset); } + .console-notice-close svg { width: 1rem; height: 1rem; } + @media (width < 48rem) { .console-notice-close { width: 2.75rem; height: 2.75rem; } } + .console-notice[data-state="closing"] { pointer-events: none; } + /* Enter: rise 8px into the bottom-right corner and fade in (base); exit: fade out (exit). */ @media (prefers-reduced-motion: no-preference) { - .console-toast { animation: console-toast-in var(--console-motion-base) var(--console-ease-out) both; } - .console-toast[data-state="closing"] { animation: console-toast-out var(--console-motion-fast) var(--console-ease-out) both; } + .console-notice { animation: console-notice-in var(--console-motion-base) var(--console-ease-out) both; } + .console-notice[data-state="closing"] { animation: console-notice-out var(--console-motion-exit) var(--console-ease-exit) both; } } } -@keyframes console-toast-in { +@keyframes console-notice-in { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } } -@keyframes console-toast-out { +@keyframes console-notice-out { from { opacity: 1; } to { opacity: 0; } } diff --git a/console-ui/src/components/toast.tsx b/console-ui/src/components/toast.tsx index a2bb9504..d58565f2 100644 --- a/console-ui/src/components/toast.tsx +++ b/console-ui/src/components/toast.tsx @@ -27,10 +27,11 @@ interface ToastTimer { remaining: number; startedAt: number; pausedBy: Set(null) const VARIANT_ICONS = { default: Info, success: CheckCircle, error: AlertCircle, warning: AlertTriangle, info: Info } -/** Exit length of a toast: the Console's --console-motion-fast (0ms when the viewer reduces motion). */ +/** Exit length of a notice: the library's --console-motion-exit (no wait when the viewer reduces motion). */ function exitDuration(): number { if (typeof window === 'undefined' || typeof getComputedStyle !== 'function') return 0 - const value = getComputedStyle(document.documentElement).getPropertyValue('--console-motion-fast').trim() + if (window.matchMedia?.('(prefers-reduced-motion: reduce)').matches) return 0 + const value = getComputedStyle(document.documentElement).getPropertyValue('--console-motion-exit').trim() const parsed = Number.parseFloat(value) if (!Number.isFinite(parsed)) return 0 return value.endsWith('ms') ? parsed : value.endsWith('s') ? parsed * 1000 : parsed @@ -128,20 +129,20 @@ export function ToastProvider({ children }: { children: ReactNode }) { return {children} -
+
{toasts.map(notification => { const variant = notification.variant ?? 'default' const Icon = VARIANT_ICONS[variant] - return
pause(notification.id, 'pointer')} onMouseLeave={() => resume(notification.id, 'pointer')} onFocusCapture={() => pause(notification.id, 'focus')} onBlurCapture={event => { if (!event.currentTarget.contains(event.relatedTarget as Node | null)) resume(notification.id, 'focus') }}> - -
{notification.title && {notification.title}}

{notification.description}

- + +
{notification.title && {notification.title}}

{notification.description}

+
})}
diff --git a/console-ui/src/design-system.css b/console-ui/src/design-system.css index 5a42cba7..5be7b6f1 100644 --- a/console-ui/src/design-system.css +++ b/console-ui/src/design-system.css @@ -1,6 +1,11 @@ /** * Console 设计规范 — 由 client/style.css 引入 * 间距 / 圆角 / 边框 / 阴影 / 表面组件类 + * + * 尺度与颜色来自 @zhin.js/console-ui 1.3.0(「柔光卡片」,ADR 0063 D34–D41)。Console 不再重新定义 + * 与组件库同名的 --console-* 变量(字号、行高、控件高度、圆角、表面、边框、字体、动效、内容宽度、 + * 页边距、分区间距、触控尺寸……,ADR 0063 第 37 条);这里只保留组件库没有的旧名字,并把它们指向 + * 组件库的令牌。 */ @import "./theme-tokens.css"; @@ -11,161 +16,82 @@ font-size: medium; } - /* - * Base tier (light and dark alike): type, radii, control sizes, spacing. - * Radii 6 / 10 / 14 / 18 / 22 px; every button, input and select uses one of three heights - * (32 / 36 / 40 px) on pointer screens, and at least 44 px on touch-sized layouts. - */ - :root { - /* Inter and JetBrains Mono are self-hosted (fonts.css, Latin subset); Chinese falls through to system fonts. */ - --console-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'MiSans', 'Noto Sans SC', 'Microsoft YaHei', sans-serif; - --console-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, 'PingFang SC', 'Noto Sans Mono CJK SC', monospace; - --console-text-label: 0.8125rem; + :root, .light, .dark, [data-theme="light"], [data-theme="dark"], [data-theme="system"] { + /* Older Console names → the library's 8-step type scale. */ --console-text-caption: var(--console-text-label); - --console-text-code: 0.8125rem; - --console-text-body-sm: 0.8125rem; - --console-text-title-compact: 1.25rem; - --console-text-section-sm: 0.9375rem; - --console-line-code: 1.25rem; - --console-leading-title: 1.25; - --console-leading-section: 1.4; - --console-leading-body: 1.6; - --console-leading-label: 1.45; - --console-leading-code: 1.6; - --console-border-width: 1px; - --console-focus-width: 2px; - --console-text-body: 0.875rem; - --console-text-section: 1rem; - --console-text-title: 1.375rem; - --console-control-height-compact: 2rem; - --console-control-height: 2.25rem; - --console-control-height-lg: 2.5rem; - --console-touch-target: 2.75rem; - --console-radius-sm: 0.375rem; - --console-radius-md: 0.625rem; - --console-radius-lg: 0.875rem; - --console-radius-xl: 1.125rem; - --console-radius-2xl: 1.375rem; - --console-control-radius: var(--console-radius-2); - --console-page-padding-inline: 1.5rem; - --console-page-padding-block: 2rem; - --console-section-gap: 1.25rem; - --console-space-stack: 0.75rem; - --console-space-card: 1.25rem; - --console-space-card-sm: 1rem; - /* Content column: 1440px wide at most, centered on the canvas. */ - --console-content-max: 90rem; - - /* Semantic surfaces derived from the color tokens (theme-tokens.css). */ - --console-surface-raised: hsl(var(--card)); - --console-surface-muted: hsl(var(--secondary)); - --console-surface-inset: hsl(var(--secondary)); - --console-surface-hover: hsl(var(--foreground) / 0.045); - --console-surface-active: hsl(var(--foreground) / 0.08); - --console-border-subtle: hsl(var(--border) / 0.7); - --console-border-default: hsl(var(--border)); - --console-border-strong: hsl(var(--border-strong)); - - /* Shadows: a hairline ring plus a short, soft drop. Cards carry no border of their own. */ - --console-shadow-color: 222 30% 12%; - --zc-shadow-ring: 0 0 0 1px hsl(var(--console-shadow-color) / 0.045); - --console-shadow-xs: 0 1px 2px hsl(var(--console-shadow-color) / 0.05); - --console-shadow-sm: 0 1px 2px hsl(var(--console-shadow-color) / 0.06), var(--zc-shadow-ring); - --console-shadow-md: 0 6px 16px -4px hsl(var(--console-shadow-color) / 0.1), 0 0 0 1px hsl(var(--console-shadow-color) / 0.05); - --console-shadow-lg: 0 24px 48px -12px hsl(var(--console-shadow-color) / 0.18), 0 0 0 1px hsl(var(--console-shadow-color) / 0.06); + --console-text-code: var(--console-text-sm); + --console-text-body-sm: var(--console-text-sm); + --console-text-title-compact: var(--console-text-2xl); + --console-text-section-sm: var(--console-text-lg); + --console-border-width: var(--console-border-hairline); + --console-focus-width: var(--console-border-focus); + --console-control-height-lg: var(--console-size-control-lg); + /* Older radius names → the soft-card radii (10 / 14 / 18 / 24 / 28). */ + --console-radius-sm: var(--console-radius-2); + --console-radius-md: var(--console-radius-3); + --console-radius-lg: var(--console-radius-4); + --console-radius-xl: var(--console-radius-6); + --console-radius-2xl: var(--console-radius-7); + --console-space-stack: var(--console-stack-gap); + --console-space-card: var(--console-card-padding); + --console-space-card-sm: var(--console-space-4); + + /* Shadows: the library's warm shadow-sm / md / lg (dark: inner hairline and top highlight). */ + --zc-shadow-ring: 0 0 #0000; + --console-shadow-xs: var(--console-elevation-1); + --console-shadow-sm: var(--console-elevation-1); + --console-shadow-md: var(--console-elevation-2); + --console-shadow-lg: var(--console-elevation-3); --console-shadow-xl: var(--console-elevation-3); --console-shadow-hover: var(--console-elevation-2); --console-shadow-button: none; - --console-shadow-panel: 0 1px 2px hsl(var(--console-shadow-color) / 0.04), 0 8px 24px -12px hsl(var(--console-shadow-color) / 0.08); + --console-shadow-panel: var(--console-elevation-1); /* - * Motion (console#125): three durations and one curve. fast = hover / press, base = expand, - * popover, toast, page enter, slow = drawers and sheets; loop = ambient pulses and shimmer; - * countdown = the 1s tick of a login QR ring. Every token is 0ms unless the viewer allows - * motion (the no-preference block below), so prefers-reduced-motion: reduce turns them all off. - * The older --console-duration-* names (still read by @zhin.js/console-ui) follow the same tokens. + * Motion: the library's --console-motion-* / --console-ease-* (not redefined here). Ambient loops + * (the progress pulse, skeleton shimmer) and the 1s tick of a login QR ring are Console-only. */ - --console-ease-out: cubic-bezier(0.25, 1, 0.5, 1); - --console-motion-fast: 0ms; - --console-motion-base: 0ms; - --console-motion-slow: 0ms; - --zc-motion-loop: 0ms; - --zc-motion-countdown: 0ms; --console-duration-fast: var(--console-motion-fast); --console-duration-page: var(--console-motion-base); + --zc-motion-loop: 0ms; + --zc-motion-countdown: 0ms; /* - * Charts (console#125): data always takes --chart-* (palette-independent categories), never the accent or a - * status color. Gridlines are hairlines. Message volume: received = chart-1 (blue), sent = chart-3 (green) — - * chart-2 is amber and reads as the warning color (ΔE2000 < 20), so no Console chart uses it for a two-series view. + * Charts: data takes --chart-* (never a status color). Message volume: received = chart-1 + * (apricot, accent-1), sent = chart-2 (peacock teal) — the soft-card chart-3 is rose, too close to + * apricot for a two-series view; chart-2 is set apart from the ok green. Gridlines are hairlines. */ --zc-chart-grid: hsl(var(--foreground) / 0.08); --zc-chart-baseline: hsl(var(--foreground) / 0.18); --zc-hairline: 1px; --zc-chart-inbound: var(--console-chart-1); - --zc-chart-outbound: var(--console-chart-3); + --zc-chart-outbound: var(--console-chart-2); --zc-chart-quantity: var(--console-chart-1); } @media (prefers-reduced-motion: no-preference) { :root { - --console-motion-fast: 120ms; - --console-motion-base: 200ms; - --console-motion-slow: 280ms; - --zc-motion-loop: 1.4s; + --zc-motion-loop: var(--console-motion-pulse); --zc-motion-countdown: 1s; } } - /* stylelint-disable-next-line console/media-queries -- 高分屏上图表网格线用 0.5px(--zc-hairline);分辨率不是断点也不在允许的用户偏好里 */ - @media (min-resolution: 2dppx) { - :root { --zc-hairline: 0.5px; } - } - - .dark { - --console-surface-hover: hsl(0 0% 100% / 0.05); - --console-surface-active: hsl(0 0% 100% / 0.09); - --console-shadow-color: 0 0% 0%; - --zc-shadow-ring: 0 0 0 1px hsl(0 0% 100% / 0.05); - --console-shadow-xs: 0 1px 2px hsl(0 0% 0% / 0.4); - --console-shadow-sm: 0 1px 2px hsl(0 0% 0% / 0.4), var(--zc-shadow-ring); - --console-shadow-md: 0 6px 16px -4px hsl(0 0% 0% / 0.5), 0 0 0 1px hsl(0 0% 100% / 0.06); - --console-shadow-lg: 0 24px 48px -12px hsl(0 0% 0% / 0.7), 0 0 0 1px hsl(0 0% 100% / 0.08); - --console-shadow-panel: 0 0 0 1px hsl(0 0% 100% / 0.06); - } - - @media (width < 48rem) { - :root { - --console-page-padding-inline: 1rem; - --console-page-padding-block: 1.25rem; - --console-section-gap: 0.875rem; - --console-space-card: 1rem; - /* Touch-sized controls on phones. */ - --console-control-height-compact: 2.75rem; - --console-control-height: 2.75rem; - --console-control-height-lg: 2.75rem; - } - } - - @media (width >= 48rem) { - :root { - --console-text-label: 0.8125rem; --console-text-code: 0.8125rem; - --console-text-title: 1.375rem; --console-text-title-compact: 1.25rem; - } - } - @media (width >= 48rem) and (width < 64rem) { - :root { - --console-page-padding-inline: 1.25rem; - --console-page-padding-block: 1.5rem; + /* + * Reduced motion: the library's durations are not zeroed by the tokens themselves (console-ui 1.3.0 + * keeps only fades in its components), so the Console stops every remaining transition and + * animation of its own pages here instead of redefining the same-named motion tokens. + */ + @media (prefers-reduced-motion: reduce) { + *, *::before, *::after { + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.01ms !important; } } - @media (width >= 90rem) { - :root { - --console-page-padding-inline: 1.5rem; - --console-page-padding-block: 2rem; - --console-section-gap: 1.5rem; - } + /* stylelint-disable-next-line console/media-queries -- 高分屏上图表网格线用 0.5px(--zc-hairline);分辨率不是断点也不在允许的用户偏好里 */ + @media (min-resolution: 2dppx) { + :root { --zc-hairline: 0.5px; } } html, body { @@ -558,12 +484,6 @@ box-shadow: var(--console-card-elevation); } - .console-surface-inset { - border-radius: var(--console-radius-3); - border: var(--console-border-hairline) solid transparent; - background: var(--console-surface-inset); - } - .console-skip-link { position: fixed; top: 0.75rem; @@ -856,8 +776,8 @@ } .console-dashboard-panel { - border: var(--console-border-hairline) solid transparent; - border-radius: var(--console-radius-3); + border: 0; + border-radius: var(--console-card-radius); padding: var(--console-card-padding); background: hsl(var(--card)); box-shadow: var(--console-card-elevation); @@ -2563,45 +2483,11 @@ @layer components { /* Page header: a 22px title with one line of muted description; actions align to the title's baseline row. */ - .console-page-header { display: flex; flex-direction: column; gap: var(--console-space-4); padding-bottom: var(--console-space-1); } - .console-page-title { margin: 0; font-size: var(--console-text-title); font-weight: var(--console-weight-strong); line-height: var(--console-leading-title); letter-spacing: -0.02em; color: hsl(var(--foreground)); text-wrap: balance; } - .console-page-description { max-width: 70ch; margin-top: var(--console-space-1); font-size: var(--console-text-label); line-height: var(--console-leading-body); color: hsl(var(--muted-foreground)); text-wrap: pretty; } .console-page-header-actions { display: flex; flex-wrap: wrap; flex-shrink: 0; align-items: center; gap: var(--console-space-2); } - .console-control { border-radius: var(--console-control-radius); line-height: var(--console-leading-label); } - .console-control:focus-visible { outline: var(--console-border-focus) solid hsl(var(--ring)); outline-offset: 2px; } - .console-control[aria-invalid="true"] { border-color: hsl(var(--destructive)); } - .console-control[aria-invalid="true"]:focus-visible { outline-color: hsl(var(--destructive)); } - .console-control:disabled { cursor: not-allowed; } - .console-control[data-disabled] { opacity: 0.5; cursor: not-allowed; } /* Cards: white on the gray canvas, no border of their own — a hairline ring and a short drop. */ - .console-card { - border: var(--console-border-hairline) solid transparent; - border-radius: var(--console-radius-4); - background: var(--console-surface-raised); - box-shadow: var(--console-card-elevation); - transition: border-color var(--console-motion-fast) var(--console-ease-out), box-shadow var(--console-motion-fast) var(--console-ease-out), transform var(--console-motion-fast) var(--console-ease-out); - } - .console-card--interactive { - cursor: pointer; - } - .console-card--interactive:hover { - box-shadow: var(--console-elevation-2); - transform: translateY(-1px); - } - @media (prefers-reduced-motion: reduce) { - .console-card--interactive:hover { transform: none; } - } /* Grouped content inside a card: a light-gray fill, no border. */ - .console-card .console-card, - .console-card .console-surface-inset { - background: var(--console-surface-inset); - box-shadow: none; - } - .console-section-title { font-size: var(--console-text-section); line-height: var(--console-leading-section); font-weight: var(--console-weight-strong); letter-spacing: 0; } @media (width >= 40rem) { /* Actions wrap under the title once the title block would drop below ~24rem (Pad widths), instead of squeezing the description. */ - .console-page-header { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--console-space-4) var(--console-space-5); } - .console-page-header > :first-child { flex: 1 1 24rem; } } } @@ -2613,14 +2499,9 @@ @layer components { /* Status badges: a tint of the bright fill, text in the darker (light) / lighter (dark) text value. */ - .console-badge-success { border-color: hsl(var(--success-fill) / 0.3); background: hsl(var(--success-fill) / 0.1); color: hsl(var(--success)); } - .console-badge-info { border-color: hsl(var(--info-fill) / 0.3); background: hsl(var(--info-fill) / 0.1); color: hsl(var(--info)); } - .console-badge-warning { border-color: hsl(var(--warning-fill) / 0.45); background: hsl(var(--warning-fill) / 0.14); color: hsl(var(--warning)); } } @layer components { - .console-text-body { font-size: var(--console-text-body); line-height: var(--console-leading-body); } - .console-text-label { font-size: var(--console-text-label); line-height: var(--console-leading-label); } /* Every lucide icon draws a 1.75 stroke (console#125), whatever size it is drawn at. */ svg.lucide { stroke-width: 1.75; } .console-text-code { font-family: var(--console-font-mono); font-size: var(--console-text-label); line-height: var(--console-leading-code); } @@ -2630,7 +2511,6 @@ * Lists of them sit side by side with a gap, not as chips. */ .console-code-list { display: flex; flex-wrap: wrap; gap: var(--console-space-1) var(--console-space-4); min-width: 0; } - .console-menu-item { min-height: var(--console-control-height-compact); } } @layer components { @@ -2780,42 +2660,6 @@ @layer components { - .console-table { - width: 100%; - border-collapse: collapse; - line-height: var(--console-leading-body); - font-size: var(--console-text-body); - } - - .console-table th { - border-bottom: var(--console-border-hairline) solid var(--console-border-default); - background: var(--console-surface-inset); - padding: var(--console-space-3) var(--console-space-4); - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - font-weight: var(--console-weight-medium); - text-align: left; - white-space: nowrap; - } - - .console-table td { - border-bottom: var(--console-border-hairline) solid var(--console-border-subtle); - padding: var(--console-space-4) var(--console-space-4); - vertical-align: middle; - } - - .console-table tbody tr:last-child td { - border-bottom: 0; - } - - .console-table tbody tr { - transition: background-color var(--console-motion-fast) var(--console-ease-out); - } - - .console-table tbody tr:hover { - background: var(--console-surface-inset); - } - .console-table-sub { display: block; margin-top: var(--console-space-1); @@ -2904,136 +2748,6 @@ @layer components { /* ── Dialog, ConfirmDialog & Sheet / Drawer Primitives ── */ - .console-dialog-overlay, - .console-sheet-overlay { - position: fixed; - inset: 0; - z-index: 50; - background: hsl(0 0% 0% / 0.4); - backdrop-filter: blur(4px); - -webkit-backdrop-filter: blur(4px); - } - - .dark .console-dialog-overlay, - .dark .console-sheet-overlay { - background: hsl(0 0% 0% / 0.6); - } - - .console-dialog-close { - position: absolute; - right: 0.875rem; - top: 0.875rem; - display: inline-grid; - place-items: center; - width: 2rem; - height: 2rem; - border-radius: var(--console-radius-2); - border: var(--console-border-hairline) solid transparent; - background: transparent; - color: hsl(var(--muted-foreground)); - cursor: pointer; - transition: background-color var(--console-motion-fast) var(--console-ease-out), color var(--console-motion-fast) var(--console-ease-out), border-color var(--console-motion-fast) var(--console-ease-out); - } - - .console-dialog-close:hover { - background: var(--console-surface-muted); - border-color: var(--console-border-subtle); - color: hsl(var(--foreground)); - } - - .console-dialog-close:focus-visible { - outline: var(--console-border-focus) solid hsl(var(--ring)); - outline-offset: 2px; - } - - .console-sheet-content { - position: fixed; - z-index: 50; - display: flex; - flex-direction: column; - gap: var(--console-space-4); - background: hsl(var(--popover)); - color: hsl(var(--popover-foreground)); - box-shadow: var(--console-elevation-3); - padding: var(--console-space-5); - overflow-y: auto; - overscroll-behavior: contain; - } - - .console-sheet-content[data-side="right"] { - inset: 0 0 0 auto; - width: min(34rem, 94vw); - height: 100dvh; - border-left: var(--console-border-hairline) solid var(--console-border-default); - border-radius: var(--console-radius-4) 0 0 var(--console-radius-4); - animation: console-sheet-in-right var(--console-motion-slow) var(--console-ease-out); - } - - .console-sheet-content[data-side="left"] { - inset: 0 auto 0 0; - width: min(24rem, 90vw); - height: 100dvh; - border-right: var(--console-border-hairline) solid var(--console-border-default); - border-radius: 0 var(--console-radius-4) var(--console-radius-4) 0; - animation: console-sheet-in-left var(--console-motion-slow) var(--console-ease-out); - } - - .console-sheet-content[data-side="bottom"] { - inset: auto 0 0 0; - width: 100%; - max-height: 86dvh; - border-top: var(--console-border-hairline) solid var(--console-border-default); - border-radius: var(--console-radius-4) var(--console-radius-4) 0 0; - animation: console-sheet-in-bottom var(--console-motion-slow) var(--console-ease-out); - } - - @media (width < 40rem) { - .console-sheet-content[data-side="right"] { - width: 100vw; - border-radius: 0; - padding: var(--console-space-4); - } - } - - .console-sheet-header { - display: flex; - flex-direction: column; - gap: var(--console-space-1); - padding-right: var(--console-space-6); - padding-bottom: var(--console-space-4); - border-bottom: var(--console-border-hairline) solid var(--console-border-subtle); - } - - .console-sheet-body { - flex: 1; - min-height: 0; - display: flex; - flex-direction: column; - gap: var(--console-space-4); - } - - .console-sheet-footer { - margin-top: auto; - display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: flex-end; - gap: var(--console-space-2); - padding-top: var(--console-space-4); - border-top: var(--console-border-hairline) solid var(--console-border-subtle); - } - - .console-confirm-icon { - display: inline-grid; - place-items: center; - width: 2.5rem; - height: 2.5rem; - flex-shrink: 0; - border-radius: var(--console-radius-2); - background: hsl(var(--primary) / 0.1); - border: var(--console-border-hairline) solid hsl(var(--primary) / 0.22); - color: hsl(var(--primary)); - } .console-confirm-icon.is-destructive { background: hsl(var(--destructive) / 0.1); @@ -3043,36 +2757,14 @@ /* ── Dashboard & Telemetry Visual Meters ── */ - .console-ring-gauge { - position: relative; - display: inline-grid; - place-items: center; - width: 2.65rem; - height: 2.65rem; - flex-shrink: 0; - } - - .console-ring-gauge svg { - width: 100%; - height: 100%; - transform: rotate(-90deg); - } - - /* The ring shows a quantity (online share): a chart color, never the accent; the warning fill only when an account is + /* The ring shows a quantity (online share): a chart color, never the primary; the warning fill only when an account is offline. CSS outranks the component's stroke attribute. console#125. */ .console-ring-gauge circle[stroke="hsl(var(--primary))"] { stroke: hsl(var(--zc-chart-quantity)); } .console-ring-gauge circle[stroke="hsl(var(--warning))"] { stroke: hsl(var(--warning-fill)); } .console-ring-gauge circle[stroke="hsl(var(--success))"] { stroke: hsl(var(--zc-chart-quantity)); } - .console-ring-gauge-label { - position: absolute; - inset: 0; - display: grid; - place-items: center; - font-size: var(--console-text-label); - font-weight: var(--console-weight-strong); - color: hsl(var(--foreground)); - } + /* The ring shows a quantity (online share): a chart color, never the accent; the warning fill only when an account is + offline. CSS outranks the component's stroke attribute. console#125. */ .console-severity-strip { display: flex; @@ -3140,10 +2832,7 @@ @media (prefers-reduced-motion: reduce) { .console-log-inspector, - .console-capability-inspector, - .console-sheet-content[data-side="right"], - .console-sheet-content[data-side="left"], - .console-sheet-content[data-side="bottom"] { + .console-capability-inspector { animation: none !important; } } @@ -3151,32 +2840,6 @@ @layer components { /* 指标卡:总览页与列表页共用(components/StatCard.tsx) */ - .console-stat-grid { - display: grid; - grid-template-columns: repeat(4, minmax(0, 1fr)); - gap: var(--console-space-4); - } - - .console-stat-card { - display: flex; - min-width: 0; - flex-direction: column; - gap: var(--console-space-2); - border: var(--console-border-hairline) solid transparent; - border-radius: var(--console-radius-3); - background: hsl(var(--card)); - padding: var(--console-space-4) var(--console-space-4) var(--console-space-4); - box-shadow: var(--console-card-elevation); - } - - button.console-stat-card { - width: 100%; - color: inherit; - font: inherit; - text-align: left; - cursor: pointer; - transition: border-color var(--console-motion-fast) var(--console-ease-out), box-shadow var(--console-motion-fast) var(--console-ease-out); - } .console-stat-card.is-link:hover { border-color: hsl(var(--primary) / 0.35); @@ -3188,53 +2851,6 @@ outline-offset: 2px; } - .console-stat-value-row { - display: flex; - min-width: 0; - /* 与环形进度同高,保证四张卡片的数字在同一水平线上 */ - min-height: 2.65rem; - align-items: center; - justify-content: space-between; - gap: var(--console-space-3); - } - - .console-stat-label { - display: inline-flex; - align-items: center; - gap: var(--console-space-2); - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - font-weight: var(--console-weight-medium); - } - - .console-stat-label svg { width: 0.95rem; height: 0.95rem; } - - .console-stat-value { - overflow: hidden; - font-size: var(--console-text-display); - font-weight: var(--console-weight-strong); - line-height: 1.15; - letter-spacing: -0.03em; - text-overflow: ellipsis; - white-space: nowrap; - } - - .console-stat-value small { - margin-left: var(--console-space-1); - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-section); - font-weight: var(--console-weight-medium); - letter-spacing: 0; - } - - .console-stat-sub { - overflow: hidden; - color: hsl(var(--muted-foreground)); - font-size: var(--console-text-label); - text-overflow: ellipsis; - white-space: nowrap; - } - .console-stat-card.is-danger .console-stat-value, .console-stat-card.is-danger .console-stat-label svg { color: hsl(var(--destructive)); } .console-stat-card.is-warning .console-stat-value, @@ -3244,36 +2860,11 @@ border-color: hsl(var(--primary) / 0.55); background: hsl(var(--primary) / 0.05); } - - @media (width < 64rem) { - .console-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--console-space-3); } - } - - @media (width < 40rem) { - .console-stat-value { font-size: var(--console-text-title); } - } } @layer components { /* InfoHint: a visible label with ⓘ; the explanation opens in a popover. */ - .console-info-hint { - display: inline-flex; - align-items: center; - gap: var(--console-space-1); - border: 0; - border-radius: var(--console-radius-full); - background: hsl(var(--muted)); - padding: var(--console-space-1) var(--console-space-2); - color: hsl(var(--foreground)); - font-size: var(--console-text-label); - font-weight: var(--console-weight-medium); - cursor: pointer; - } - .console-info-hint:hover { background: hsl(var(--accent)); } - .console-info-hint > svg { width: 0.875rem; height: 0.875rem; color: hsl(var(--muted-foreground)); } .console-info-hint.is-warning { background: hsl(var(--warning) / 0.12); color: hsl(var(--warning)); } .console-info-hint.is-warning > svg { color: currentColor; } - .console-info-hint-panel { width: min(22rem, calc(100vw - 2rem)); font-size: var(--console-text-label); line-height: var(--console-leading-body); } - .console-info-hint-panel > p + p { margin-top: var(--console-space-2); color: hsl(var(--muted-foreground)); } .console-info-hint-panel > p.is-partial { color: hsl(var(--warning)); } } diff --git a/console-ui/src/hooks/useTheme.ts b/console-ui/src/hooks/useTheme.ts index 63fca41b..f4ff3f5d 100644 --- a/console-ui/src/hooks/useTheme.ts +++ b/console-ui/src/hooks/useTheme.ts @@ -1,11 +1,10 @@ import { useSyncExternalStore } from 'react' -import { DEFAULT_PALETTE, getThemeSnapshot, setThemePreferences, subscribeTheme, type Palette, type Theme, type ThemeMode } from '../theme' +import { getThemeSnapshot, setThemePreferences, subscribeTheme, type Theme, type ThemeMode } from '../theme' export function useTheme() { - const snapshot = useSyncExternalStore(subscribeTheme, getThemeSnapshot, () => `system:${DEFAULT_PALETTE}:light`) - const [mode, palette, theme] = snapshot.split(':') as [ThemeMode, Palette, Theme] + const snapshot = useSyncExternalStore(subscribeTheme, getThemeSnapshot, () => 'system:light') + const [mode, theme] = snapshot.split(':') as [ThemeMode, Theme] const setMode = (value: ThemeMode) => setThemePreferences({ mode: value }) - const setPalette = (value: Palette) => setThemePreferences({ palette: value }) - const resetTheme = () => setThemePreferences({ mode: 'system', palette: DEFAULT_PALETTE }) - return { theme, mode, palette, setMode, setPalette, resetTheme, setTheme: setMode, toggleTheme: () => setMode(theme === 'light' ? 'dark' : 'light') } + const resetTheme = () => setThemePreferences({ mode: 'system' }) + return { theme, mode, setMode, resetTheme, setTheme: setMode, toggleTheme: () => setMode(theme === 'light' ? 'dark' : 'light') } } diff --git a/console-ui/src/i18n/console-ui-locale.tsx b/console-ui/src/i18n/console-ui-locale.tsx index 7d44831b..0e734f7a 100644 --- a/console-ui/src/i18n/console-ui-locale.tsx +++ b/console-ui/src/i18n/console-ui-locale.tsx @@ -29,6 +29,9 @@ export function ConsoleUiLocale({ children }: { children?: ReactNode }) { 'refresh.interval': i18n.t('自动刷新间隔'), 'refresh.manual': i18n.t('手动刷新'), 'refresh.auto': i18n.t('{0}s 自动'), + 'stepper.decrease': i18n.t('减少'), + 'stepper.increase': i18n.t('增加'), + 'toast.undo': i18n.t('撤销', [], 'toast'), }), [i18n]) return {children} } diff --git a/console-ui/src/i18n/messages.en.auth.mjs b/console-ui/src/i18n/messages.en.auth.mjs index 858c9fea..07971f27 100644 --- a/console-ui/src/i18n/messages.en.auth.mjs +++ b/console-ui/src/i18n/messages.en.auth.mjs @@ -98,10 +98,8 @@ export const authMessages = Object.freeze({ "完成,进入首页": "Finish and go to Home", "已完成,下一步": "Done, next", "初始化": "Setup", - "这台 Host 没有设置访问令牌,也还没有所有者:任何能访问它的人都有全部权限。创建所有者后改用账号登录。": "This Host has no access token and no owner yet: anyone who can reach it has every permission. Create an owner to switch to account sign-in.", "暂时隐藏": "Hide for now", "引导": "Onboarding", - "还有几步就能让机器人上线:接入 AI 和聊天平台。": "A few steps left to get the bot online: connect AI and chat platforms.", "继续引导": "Continue onboarding", "接入 AI 和聊天平台,完成首次引导": "Connect AI and chat platforms to finish onboarding", // Personal settings diff --git a/console-ui/src/i18n/messages.en.insights.mjs b/console-ui/src/i18n/messages.en.insights.mjs index da169623..269543b0 100644 --- a/console-ui/src/i18n/messages.en.insights.mjs +++ b/console-ui/src/i18n/messages.en.insights.mjs @@ -26,8 +26,6 @@ export const insightsMessages = Object.freeze({ "覆盖最近 24 小时": "Covers the last 24 hours", "缓冲只保留到 {0},更早的消息未计入": "The buffer only reaches back to {0}; earlier messages are not counted", "自 {0} 起(缓冲里最早的一条)": "Since {0} (the oldest message in the buffer)", - "页面导航、配置入口和能力目录保持可用。重新连接后,聊天账号、Agent 与运行状态会在这里恢复。": "Navigation, configuration and the capability catalog stay available. Chat accounts, Agent and runtime status return here after reconnecting.", - "现在需要处理什么、消息量和最近的消息。": "What needs attention now, message volume and recent messages.", "已运行 {0}": "Up {0}", "实时推送已连接": "Live updates connected", "实时推送未连接": "Live updates disconnected", diff --git a/console-ui/src/i18n/messages.en.mjs b/console-ui/src/i18n/messages.en.mjs index 35108035..a7d9b8d4 100644 --- a/console-ui/src/i18n/messages.en.mjs +++ b/console-ui/src/i18n/messages.en.mjs @@ -16,9 +16,11 @@ import { ambientJudgeMessages } from './messages.en.ambient-judge.mjs' import { scheduleAgentMessages } from './messages.en.schedule-agent.mjs' import { usageNameMessages } from './messages.en.usage-names.mjs' import { sessionLabelMessages } from './messages.en.session-labels.mjs' +import { softCardMessages } from './messages.en.soft-cards.mjs' /** Authored Console UI copy. Interpolated content is never translated. */ export const englishMessages = Object.freeze({ + ...softCardMessages, ...authMessages, ...opsMessages, ...adminMessages, @@ -37,24 +39,8 @@ export const englishMessages = Object.freeze({ ...usageNameMessages, ...sessionLabelMessages, ...batch3Messages, - "鲜活配色": "Fresh palettes", - "沉静配色": "Calm palettes", - "晴空": "Sky", - "蜜桃": "Peach", - "暖阳": "Sunshine", - "薄荷": "Mint", - "外观与主题": "Appearance and theme", "显示模式": "Display mode", - "亮色": "Light", - "暗色": "Dark", "跟随系统": "System", - "配色方案": "Color palette", - "松青": "Pine", - "海蓝": "Ocean", - "暮紫": "Plum", - "石墨": "Graphite", - "立即预览,仅保存在当前浏览器。": "Preview instantly. Saved only in this browser.", - "恢复默认外观": "Reset appearance", // 访问控制(ADR 0049) "当前身份只能查看访问控制;修改需要 iam.manage 权限。": "This identity can only view access control; changes need the iam.manage permission.", "无角色": "No roles", @@ -574,7 +560,6 @@ export const englishMessages = Object.freeze({ "打开 {0}": "Open {0}", "打开 Console 快速跳转": "Open Console quick navigation", "搜索页面或执行动作": "Find a page or action", - "搜索与动作": "Search and actions", "搜索 Console 页面或执行快捷动作": "Search Console pages or run a shortcut", "搜索页面或动作,例如“错误日志”“组件预览”…": "Search pages or actions, such as “error logs” or “component preview”…", "搜索 Console 页面或快捷动作": "Search Console pages or shortcuts", @@ -1063,13 +1048,11 @@ export const englishMessages = Object.freeze({ "此项无需配置。": "This item requires no configuration.", "其他字段": "Other fields", "保存配置": "Save configuration", - "切换主题": "Switch theme", "处理中...": "Processing…", "重试": "Retry", "关闭通知": "Dismiss notification", "跳到主要内容": "Skip to main content", "关闭菜单": "Close menu", - "打开菜单": "Open menu", "主导航": "Main navigation", "实时事件已连接": "Live events connected", "实时事件未连接": "Live events disconnected", @@ -1349,10 +1332,7 @@ export const englishMessages = Object.freeze({ "日志状态暂时不可读": "Log status is temporarily unreadable", "尚无法确认是否有运行错误,请打开日志页检查读取详情。": "Runtime errors cannot be confirmed yet. Open Logs to inspect read details.", "正在加载工作台": "Loading workspace", - "Host 连接需要恢复": "Host connection needs recovery", - "所有核心服务运行正常": "All core services are running normally", "有事项需要处理": "Some items need attention", - "Host 暂时不可达,": "The Host is temporarily unreachable; ", "控制面仍可继续使用": "the control interface remains available", "{0} 个字段 · 已设置 {1}": { one: "{0} field · {1} set", other: "{0} fields · {1} set" }, "已设置 {0}": "{0} set", @@ -3354,7 +3334,6 @@ export const englishMessages = Object.freeze({ "用户菜单:{0}": "User menu: {0}", "账号、语言与外观": "Account, language and appearance", "当前身份": "Signed in as", - "外观与配色…": "Appearance and colors…", "实时推送已断开": "Live updates disconnected", "用户 ID:{0}": "User ID: {0}", "会话 ID:{0}": "Conversation ID: {0}", @@ -3514,8 +3493,6 @@ export const englishMessages = Object.freeze({ "自动刷新间隔": "Auto refresh interval", "手动刷新": "Manual refresh", "{0}s 自动": "{0}s auto", - "品牌配色": "Brand palette", - "Zhin 绿": "Zhin green", "找不到这个页面": "Page not found", "Console 里没有这个地址对应的页面。链接可能已过期,或者提供它的插件没有安装。": "No Console page matches this address. The link may be outdated, or the plugin that provides it is not installed.", "打开 {0} 搜索": "Open {0} search", diff --git a/console-ui/src/i18n/messages.en.soft-cards.mjs b/console-ui/src/i18n/messages.en.soft-cards.mjs new file mode 100644 index 00000000..517bc647 --- /dev/null +++ b/console-ui/src/i18n/messages.en.soft-cards.mjs @@ -0,0 +1,36 @@ +/** + * English copy added with the soft-card redesign (@zhin.js/console-ui 1.3.0, ADR 0063 D34–D41): + * the top-bar shell, the section sub-navigation, the reworked first-level pages and the copy the + * Console hands to the component library (ConsoleUiLocale). + */ +export const softCardMessages = Object.freeze({ + // ConsoleUiLocale: Stepper and Toast + "减少": "Decrease", + "增加": "Increase", + "toast\u0004撤销": "Undo", + // Shell: top bar, section Chips, phone tab bar + "{0}的页面": "{0} pages", + "更多": "More", + // Onboarding banners + "还没有所有者": "No owner yet", + "任何人都有全部权限": "anyone has full access", + "机器人还没上线": "Bot not live yet", + // Overview (Main design) + "待登录": "Sign-in needed", + "实例运行正常": "Instance is healthy", + "连接需要恢复": "Reconnect needed", + "需留意": "Needs a look", + "{0} 在线": "{0} online", + "个": "", + "已启用插件": "Plugins on", + "条": "", + "24 小时消息": "Messages, 24 h", + "看日志": "View logs", + "需处理": "To do", + "没有要处理的": "Nothing to do", + "正在读取聊天账号": "Loading chat accounts", + "最近会话": "Recent chats", + // Appearance + "浅色": "Light", + "深色": "Dark", +}) diff --git a/console-ui/src/im-workspace.css b/console-ui/src/im-workspace.css index 43bb16c4..a6e46b77 100644 --- a/console-ui/src/im-workspace.css +++ b/console-ui/src/im-workspace.css @@ -176,8 +176,9 @@ .im-composer-textarea:not(.font-mono) { font-family: var(--console-font-sans); } .im-composer-textarea { padding: var(--console-space-3) var(--console-space-3); } .im-media-input:focus-visible, .im-composer-textarea:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; } -.im-insert-button, .im-send-button { background: hsl(var(--primary-action)); color: hsl(var(--primary-action-foreground)); box-shadow: none; } -.im-insert-button:hover:not(:disabled), .im-send-button:hover:not(:disabled) { background: hsl(var(--primary-action) / .9); } +/* Send is the composer's one primary action (soft cards: solid black / white); --primary-action is the sunken secondary fill now. */ +.im-insert-button, .im-send-button { background: hsl(var(--console-primary)); color: hsl(var(--console-on-primary)); box-shadow: none; } +.im-insert-button:hover:not(:disabled), .im-send-button:hover:not(:disabled) { background: hsl(var(--console-primary-hover)); } .im-composer-hint { font-size: var(--console-text-label); color: hsl(var(--muted-foreground)); } .im-system-page { background: hsl(var(--im-chat-bg)); } .im-system-page-header h2 { letter-spacing: 0; } diff --git a/console-ui/src/pages/inference/Profiles.tsx b/console-ui/src/pages/inference/Profiles.tsx index 59e313c6..7c88845e 100644 --- a/console-ui/src/pages/inference/Profiles.tsx +++ b/console-ui/src/pages/inference/Profiles.tsx @@ -79,7 +79,7 @@ export function Profiles({ management: m, onCreateAccount, addModelFor, onAddMod label={profile.label ?? profile.model} support={profileSupport(view, profile)} /> - {chat ? {chat.label} : null} + {chat ? {chat.label} : null}

{profile.model} · {account.label ?? account.id} diff --git a/console-ui/src/pages/onboarding/onboarding.css b/console-ui/src/pages/onboarding/onboarding.css index f5560ea4..b19acd9d 100644 --- a/console-ui/src/pages/onboarding/onboarding.css +++ b/console-ui/src/pages/onboarding/onboarding.css @@ -13,10 +13,6 @@ .console-onboarding-summary li { display: flex; align-items: center; gap: var(--console-space-2); } .console-onboarding-summary svg { width: 16px; height: 16px; } .console-onboarding-summary small { margin-left: auto; color: hsl(var(--muted-foreground)); } - .console-onboarding-banner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--console-space-2) var(--console-space-3); margin-bottom: var(--console-space-4); padding: var(--console-space-3) var(--console-space-4); border: var(--console-border-hairline) solid hsl(var(--primary) / .35); border-radius: var(--console-radius-2); background: hsl(var(--primary) / .06); font-size: var(--console-text-label); } - .console-onboarding-banner > svg { width: 16px; height: 16px; flex: none; } - .console-onboarding-banner > span { flex: 1; min-width: 0; } - /* Phones: text, action and close stay on one row instead of leaving the close button alone below. */ - @media (width < 48rem) { .console-onboarding-banner { flex-wrap: nowrap; gap: var(--console-space-2); padding: var(--console-space-2) var(--console-space-3); } } + .console-onboarding-banner .console-icon-button[data-variant="flat"] { background: transparent; } @media (width < 48rem) { .console-onboarding-steps { grid-template-columns: minmax(0, 1fr); } } } diff --git a/console-ui/src/pages/scope/login-flow.css b/console-ui/src/pages/scope/login-flow.css index 7c30ed11..ee402670 100644 --- a/console-ui/src/pages/scope/login-flow.css +++ b/console-ui/src/pages/scope/login-flow.css @@ -122,7 +122,7 @@ li.is-done .console-login-check { border-color: hsl(var(--foreground) / 0.7); ba /* ---------- captcha helper ---------- */ .console-login-divider { display: flex; align-items: center; gap: var(--console-space-3); color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); } .console-login-divider::before, .console-login-divider::after { content: ''; flex: 1; height: 1px; background: hsl(var(--border)); } -.console-login-captcha { display: flex; flex-direction: column; gap: var(--console-space-3); padding: var(--console-space-4); border: var(--console-border-hairline) solid hsl(var(--primary-action-border)); border-radius: var(--console-radius-3); background: hsl(var(--primary-action) / 0.55); } +.console-login-captcha { display: flex; flex-direction: column; gap: var(--console-space-3); padding: var(--console-space-4); border-radius: var(--console-radius-4); background: hsl(var(--console-tint-1)); } .console-login-captcha-main { display: flex; align-items: flex-start; gap: var(--console-space-3); font-size: var(--console-text-label); } .console-login-captcha-main > svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: hsl(var(--primary)); } .console-login-captcha-status { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); } @@ -132,7 +132,7 @@ li.is-done .console-login-check { border-color: hsl(var(--foreground) / 0.7); ba /* ---------- blocks ---------- */ .console-login-block-frame { border-radius: var(--console-radius-3); transition: box-shadow var(--console-motion-fast) var(--console-ease-out); } .console-login-block-frame.is-current { outline: var(--console-border-focus) solid hsl(var(--primary) / 0.55); outline-offset: 0; } -.console-login-step-tag { display: inline-flex; align-items: center; padding: 0 var(--console-space-2); border-radius: var(--console-radius-full); background: hsl(var(--primary-action)); color: hsl(var(--primary-action-foreground)); font-size: var(--console-text-label); font-weight: var(--console-weight-strong); } +.console-login-step-tag { display: inline-flex; align-items: center; padding: 0 var(--console-space-2); border-radius: var(--console-radius-full); background: hsl(var(--console-surface)); color: hsl(var(--console-ink)); font-size: var(--console-text-label); font-weight: var(--console-weight-medium); } .console-login-block-frame.is-current .console-login-step-tag { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); } .console-login-blocks { display: flex; flex-direction: column; gap: var(--console-space-3); } .console-login-block { display: flex; flex-direction: column; gap: var(--console-space-2); padding: var(--console-space-3); border-radius: var(--console-radius-3); background: hsl(var(--secondary)); } diff --git a/console-ui/src/remote-entry-style-contract.ts b/console-ui/src/remote-entry-style-contract.ts deleted file mode 100644 index cf16edfe..00000000 --- a/console-ui/src/remote-entry-style-contract.ts +++ /dev/null @@ -1,90 +0,0 @@ -/** - * CSS class contract for Runtime-loaded Console entries. - * - * The Agent playground component is delivered by Zhin's remote Entry, so its - * JSX is invisible to this site's Tailwind scan. Keeping the literal class - * names here prevents the production optimizer from dropping their local CSS. - */ -export const REMOTE_AGENT_PLAYGROUND_CLASSES = [ - 'sandbox-composer-tabs', - 'agent-playground-add', - 'agent-playground-approval-actions', - 'agent-playground-artifact-detail', - 'agent-playground-artifact-empty', - 'agent-playground-artifact-icon', - 'agent-playground-artifact-list', - 'agent-playground-artifact-section', - 'agent-playground-brand', - 'agent-playground-composer', - 'agent-playground-confirm', - 'agent-playground-connection', - 'agent-playground-context-list', - 'agent-playground-conversation', - 'agent-playground-conversation-details', - 'agent-playground-details-back', - 'agent-playground-recovery', - 'agent-playground-history-navigation', - 'agent-playground-history-notice', - 'agent-playground-directory-field', - 'agent-playground-empty', - 'agent-playground-empty-mark', - 'agent-playground-endpoint', - 'agent-playground-inline-run', - 'agent-playground-inline-run-actions', - 'agent-playground-inline-run-copy', - 'agent-playground-inline-run-empty', - 'agent-playground-inline-run-head', - 'agent-playground-inline-run-icon', - 'agent-playground-inline-run-metrics', - 'agent-playground-inline-run-rail', - 'agent-playground-inline-run-steps', - 'agent-playground-inspector', - 'agent-playground-inspector-close', - 'agent-playground-inspector-head', - 'agent-playground-inspector-overlay', - 'agent-playground-inspector-section', - 'agent-playground-inspector-tabs', - 'agent-playground-inspector-title', - 'agent-playground-inspector-view', - 'agent-playground-main', - 'agent-playground-mark', - 'agent-playground-message', - 'agent-playground-message-avatar', - 'agent-playground-message-content', - 'agent-playground-message-list', - 'agent-playground-message-main', - 'agent-playground-message-meta', - 'agent-playground-message-scroll', - 'agent-playground-metrics', - 'agent-playground-mobilebar', - 'agent-playground-network-toggle', - 'agent-playground-new-actions', - 'agent-playground-new-form', - 'agent-playground-new-session', - 'agent-playground-prompts', - 'agent-playground-run-actions', - 'agent-playground-run-icon', - 'agent-playground-run-identity', - 'agent-playground-run-settings', - 'agent-playground-run-state', - 'agent-playground-run-title', - 'agent-playground-runbar', - 'agent-playground-scope-picker', - 'agent-playground-section-label', - 'agent-playground-session', - 'agent-playground-session-icon', - 'agent-playground-session-list', - 'agent-playground-sessions', - 'agent-playground-shell', - 'agent-playground-stop', - 'agent-playground-studio-link', - 'agent-playground-task-list', - 'agent-playground-task-section', - 'agent-playground-trace-dot', - 'agent-playground-trace-empty', - 'agent-playground-trace-item', - 'agent-playground-trace-list', - 'agent-playground-trace-loading', - 'agent-playground-trace-notice', - 'agent-playground-trace-section', -] as const diff --git a/console-ui/src/scope/chat-roles.css b/console-ui/src/scope/chat-roles.css index b0b83602..34017db4 100644 --- a/console-ui/src/scope/chat-roles.css +++ b/console-ui/src/scope/chat-roles.css @@ -30,7 +30,7 @@ .console-chat-picker-option:hover:not(:disabled) { background: hsl(var(--foreground) / 0.04); } /* A simulated sender (zhinjs/zhin#1250 第 87 批) cannot be picked: muted text, no hover. */ .console-chat-picker-option:disabled { cursor: not-allowed; color: hsl(var(--muted-foreground)); } -.console-chat-picker-option.is-selected { background: hsl(var(--primary-action) / 0.16); background-image: linear-gradient(90deg, hsl(var(--primary-action-border)) var(--console-border-focus), transparent 0); } +.console-chat-picker-option.is-selected { background: hsl(var(--console-primary-soft)); box-shadow: var(--console-selected-bar); } .console-chat-picker-name { grid-area: name; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--console-text-label); font-weight: var(--console-weight-strong); } .console-chat-picker-option code { grid-area: id; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: hsl(var(--muted-foreground)); font-family: var(--console-font-mono); font-size: var(--console-text-label); } .console-chat-picker-option em { grid-area: tag; color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); font-style: normal; } @@ -49,7 +49,7 @@ .console-chat-identity-chip em { color: hsl(var(--muted-foreground)); font-style: normal; } .console-chat-person-id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: hsl(var(--muted-foreground)); font-family: var(--console-font-mono); font-size: var(--console-text-label); } .console-chat-me-card { display: grid; gap: var(--console-space-4); padding: var(--console-space-4); } -.console-chat-me.is-highlighted .console-chat-me-card { outline: var(--console-border-focus) solid hsl(var(--primary-action) / 0.5); outline-offset: 0; } +.console-chat-me.is-highlighted .console-chat-me-card { outline: var(--console-border-focus) solid hsl(var(--console-primary-line)); outline-offset: 0; } .console-chat-me-person { display: grid; gap: var(--console-space-2); } .console-chat-me-head, .console-chat-member-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--console-space-2); min-width: 0; } .console-chat-me-head > svg, .console-chat-member-head > svg { width: 1rem; height: 1rem; color: hsl(var(--muted-foreground)); } diff --git a/console-ui/src/scope/object-page.css b/console-ui/src/scope/object-page.css index fb20b4ea..c5282541 100644 --- a/console-ui/src/scope/object-page.css +++ b/console-ui/src/scope/object-page.css @@ -10,7 +10,7 @@ .console-object-heading { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--console-space-3) var(--console-space-4); min-width: 0; } .console-object-avatar { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; - border-radius: var(--console-radius-3); background: hsl(var(--primary-action)); color: hsl(var(--primary)); outline: var(--console-border-hairline) solid hsl(var(--primary-action-border) / 0.6); outline-offset: calc(var(--console-border-hairline) * -1); + border-radius: var(--console-radius-full); background: hsl(var(--console-tint-1)); color: hsl(var(--console-accent-1)); } .console-object-avatar svg { width: 1.375rem; height: 1.375rem; } .console-object-titles { display: flex; min-width: 0; flex: 1 1 24rem; flex-direction: column; gap: var(--console-space-1); } @@ -90,7 +90,7 @@ a.console-scope-crumb:focus-visible { outline: var(--console-border-focus) solid } .console-scope-picker-item:hover { background: var(--console-surface-hover); } .console-scope-picker-item:focus-visible { outline: var(--console-border-focus) solid hsl(var(--ring)); outline-offset: -2px; } -.console-scope-picker-item.is-current { background: hsl(var(--primary-action)); color: hsl(var(--primary)); font-weight: var(--console-weight-strong); } +.console-scope-picker-item.is-current { background: hsl(var(--console-primary-soft)); box-shadow: var(--console-selected-bar); color: hsl(var(--console-ink)); font-weight: var(--console-weight-medium); } .console-scope-picker-icon { width: 1rem; height: 1rem; flex-shrink: 0; opacity: 0.8; } .console-scope-picker-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--console-text-label); } .console-scope-picker-identity { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); font-weight: var(--console-weight-regular); } diff --git a/console-ui/src/theme-tokens.css b/console-ui/src/theme-tokens.css index 5b76d0bc..53c34c30 100644 --- a/console-ui/src/theme-tokens.css +++ b/console-ui/src/theme-tokens.css @@ -1,268 +1,28 @@ /* - * Console color tokens — semantic tier (light / dark). + * Console color aliases — on top of @zhin.js/console-ui 1.3.0 (「柔光卡片」, ADR 0063 D34–D41). * - * Surface model: a quiet gray canvas (--background) carries white panels and cards (--card); - * inside a card, grouped content sits on a light-gray fill (--secondary / --muted) without a border. - * The palette hue only tints surfaces faintly; its color goes to emphasis — links, focus rings, - * selected states and soft primary actions (a light tint of the hue with hue-colored text). - * Status and chart colors never change with the palette. - * - * Base tokens (radii, control heights, fonts, spacing) live in design-system.css; component - * tokens (top navigation, page header) live next to the components in shell.css. + * The colors themselves belong to the component library: its tokens.css defines the soft-card + * palette (warm greys, black / white primary, five light category tints) and maps every shared name + * (--background, --card, --primary, --muted-foreground, --border, --destructive, --chart-*, --im-*) + * onto it, for light (`:root` / `.light`), dark (`.dark`) and the opt-in `data-theme="system"`. + * The Console no longer redefines any of them (ADR 0063 第 37 条): no palette, no `data-palette` + * blocks, no `.dark` color block. Only the few names the library does not have are declared here, + * and each one reads a library role, so it follows the theme on its own. */ @layer base { - :root { - /* ── Palette inputs (overridden per palette below) ── */ - --palette-hue: 214; - /* Neutral surfaces: just enough hue to feel related, not colored. */ - --palette-surface-chroma: 14%; - --palette-dark-surface-chroma: 12%; - --palette-ink-chroma: 34%; - --palette-brand-saturation: 88%; - --palette-brand-lightness: 44%; - --palette-dark-brand-saturation: 96%; - --palette-dark-brand-lightness: 66%; - /* Soft tints used for primary actions, selection and the outgoing chat bubble. */ - --palette-tint-saturation: 100%; - --palette-tint-lightness: 95.5%; - --palette-dark-tint-saturation: 42%; - --palette-dark-tint-lightness: 17%; - --surface-chroma: var(--palette-surface-chroma); - - --background: var(--palette-hue) var(--surface-chroma) 95.4%; - --foreground: var(--palette-hue) var(--palette-ink-chroma) 12%; - --card: 0 0% 100%; - --card-foreground: var(--foreground); - --popover: var(--card); - --popover-foreground: var(--foreground); - --primary: var(--palette-hue) var(--palette-brand-saturation) var(--palette-brand-lightness); - --primary-foreground: 0 0% 100%; - --primary-action: var(--palette-hue) var(--palette-tint-saturation) var(--palette-tint-lightness); - --primary-action-foreground: var(--primary); - --primary-action-border: var(--palette-hue) var(--palette-brand-saturation) 78%; - --secondary: var(--palette-hue) var(--surface-chroma) 97.2%; - --secondary-foreground: var(--foreground); - --muted: var(--secondary); - --muted-foreground: var(--palette-hue) var(--surface-chroma) 39%; - /* Inactive tab labels sit on the tab list's fill (page + 6% foreground), where 39% only reached 4.45:1. */ - --zc-tab-inactive: var(--palette-hue) var(--surface-chroma) 34%; - --accent: var(--palette-hue) var(--surface-chroma) 93.2%; - --accent-foreground: var(--foreground); - --selected: var(--primary-action); - --selected-foreground: var(--primary); - --border: var(--palette-hue) var(--surface-chroma) 90.5%; - --border-strong: var(--palette-hue) var(--surface-chroma) 84%; - --input: var(--palette-hue) var(--surface-chroma) 51%; - --ring: var(--console-brand-text); - --sidebar: var(--card); - --sidebar-foreground: var(--palette-hue) var(--surface-chroma) 30%; - --sidebar-primary: var(--primary); - --sidebar-primary-foreground: var(--primary-foreground); - --sidebar-accent: var(--accent); - --sidebar-accent-foreground: var(--accent-foreground); - --sidebar-border: var(--border); - --sidebar-ring: var(--ring); - --im-shell-bg: var(--card); - --im-list-bg: var(--card); - --im-list-surface: var(--card); - --im-chat-bg: var(--secondary); - --im-chat-wash: var(--accent); - --im-line: var(--border); - --im-shadow: 222 30% 12%; - --im-bubble-in: var(--card); - --im-bubble-out: var(--primary-action); - --im-bubble-out-fg: var(--foreground); - --im-date-bg: var(--card); - --im-date-fg: var(--muted-foreground); - --im-at: var(--primary); - --im-row-hover: var(--palette-hue) var(--surface-chroma) 96%; - --im-row-active: var(--primary-action); - --im-row-active-fg: var(--foreground); - --im-row-active-muted: var(--muted-foreground); - --im-unread: var(--primary); + :root, .light, .dark, [data-theme="light"], [data-theme="dark"], [data-theme="system"] { /* - * Status and chart colors are the component library's color roles (@zhin.js/console-ui 1.1, - * ADR 0063 「色板角色与信号色」, defined in its tokens.css for light and dark); the Console keeps - * its older names as aliases so existing rules read the same values as the library's components: - * -- text, icons and thin lines → --console-signal--text (>= 4.5:1); - * ---fill solid fills — dots, bars, meters, badge tints → --console-signal--fill - * (never carries text, except the amber warning fill with --warning-fill-foreground). - * Steady states (running, succeeded, 0 failures) use neither; console#125. + * Status fills (dots, bars, meters): the library's signal fills. Text uses --success / + * --warning / --destructive (the library's ok / warn / danger); steady states use neither. */ - --destructive: var(--console-signal-danger-text); - --destructive-foreground: 0 0% 100%; - --destructive-fill: var(--console-signal-danger-fill); - --success: var(--console-signal-success-text); - --success-foreground: 0 0% 100%; --success-fill: var(--console-signal-success-fill); - --info: var(--console-signal-info-text); - --info-foreground: 0 0% 100%; - --info-fill: var(--console-signal-info-fill); - --warning: var(--console-signal-warning-text); - --warning-foreground: 0 0% 100%; --warning-fill: var(--console-signal-warning-fill); - /* The library has no foreground for its signal fills yet; text on the amber fill is this deep amber. */ - --warning-fill-foreground: 38 70% 12%; - --radius: var(--console-radius-2); - --status-info: var(--info); - --status-success: var(--success); - --status-warning: var(--warning); - --status-danger: var(--destructive); - --chart-1: var(--console-chart-1); - --chart-2: var(--console-chart-2); - --chart-3: var(--console-chart-3); - --chart-4: var(--console-chart-4); - --chart-5: var(--console-chart-5); - --chart-6: var(--console-chart-6); - --chart-7: var(--console-chart-7); - --chart-8: var(--console-chart-8); - --chart-other: var(--console-chart-other); - /* - * The library's accent roles (--console-brand-text, --console-brand-tint: links, focus rings, selected - * states) are not overridden: ADR 0063 D23 keeps them palette-independent Zhin green in every palette, - * like the brand fill. Under the Zhin green palette they equal --primary (light #0A7551, dark #7FFFD4). - */ - color-scheme: light; - } - /* - * Zhin green (default palette). Light: the brand hue darkened to #0A7551 (5.7:1 on white, 5.2:1 on the canvas) for text, - * links and focus rings; dark: the brand color #7FFFD4 itself, with dark text on its fills. - */ - :root[data-palette="zhin"] { - --palette-hue: 159.8; - --palette-surface-chroma: 10%; - --palette-dark-surface-chroma: 10%; - --palette-ink-chroma: 26%; - --palette-brand-saturation: 84%; - --palette-brand-lightness: 25%; - --palette-tint-saturation: 64%; - --palette-tint-lightness: 94%; - --palette-dark-brand-saturation: 100%; - --palette-dark-brand-lightness: 74.9%; - --palette-dark-tint-saturation: 30%; - --palette-dark-tint-lightness: 16%; - } - /* Fresh palettes: brighter hues; their tints are slightly warmer so selection still reads. */ - :root[data-palette="sky"] { - --palette-hue: 200; - --palette-brand-saturation: 92%; - --palette-brand-lightness: 34%; - --palette-dark-brand-saturation: 70%; - --palette-dark-brand-lightness: 68%; - } - :root[data-palette="peach"] { - --palette-hue: 12; - --palette-brand-saturation: 78%; - --palette-brand-lightness: 40%; - --palette-tint-saturation: 90%; - --palette-dark-brand-saturation: 76%; - --palette-dark-brand-lightness: 72%; - } - :root[data-palette="sunny"] { - --palette-hue: 38; - --palette-brand-saturation: 92%; - --palette-brand-lightness: 30%; - --palette-tint-saturation: 92%; - --palette-tint-lightness: 93.5%; - --palette-dark-brand-saturation: 82%; - --palette-dark-brand-lightness: 64%; - } - :root[data-palette="mint"] { - --palette-hue: 162; - --palette-brand-saturation: 76%; - --palette-brand-lightness: 27%; - --palette-tint-saturation: 64%; - --palette-tint-lightness: 94%; - --palette-dark-brand-saturation: 56%; - --palette-dark-brand-lightness: 62%; - } - /* Calm palettes. */ - :root[data-palette="forest"] { - --palette-hue: 158; - --palette-brand-saturation: 44%; - --palette-brand-lightness: 32%; - --palette-tint-saturation: 38%; - --palette-tint-lightness: 94.5%; - --palette-dark-brand-saturation: 40%; - --palette-dark-brand-lightness: 66%; - --palette-dark-tint-saturation: 24%; - } - :root[data-palette="ocean"] { - --palette-hue: 214; - } - :root[data-palette="plum"] { - --palette-hue: 274; - --palette-brand-saturation: 36%; - --palette-brand-lightness: 44%; - --palette-tint-saturation: 48%; - --palette-dark-brand-saturation: 44%; - --palette-dark-brand-lightness: 76%; - --palette-dark-tint-saturation: 24%; - } - :root[data-palette="graphite"] { - --palette-hue: 0; - --palette-surface-chroma: 0%; - --palette-dark-surface-chroma: 0%; - --palette-ink-chroma: 0%; - --palette-brand-saturation: 0%; - --palette-brand-lightness: 24%; - --palette-tint-saturation: 0%; - --palette-tint-lightness: 93%; - --palette-dark-brand-saturation: 0%; - --palette-dark-brand-lightness: 86%; - --palette-dark-tint-saturation: 0%; - --palette-dark-tint-lightness: 20%; - } - .dark { - --surface-chroma: var(--palette-dark-surface-chroma); - --background: var(--palette-hue) var(--surface-chroma) 5%; - --foreground: var(--palette-hue) var(--surface-chroma) 94.5%; - --card: var(--palette-hue) var(--surface-chroma) 8.6%; - --popover: var(--palette-hue) var(--surface-chroma) 10.5%; - --primary: var(--palette-hue) var(--palette-dark-brand-saturation) var(--palette-dark-brand-lightness); - --primary-foreground: var(--palette-hue) 40% 9%; - --primary-action: var(--palette-hue) var(--palette-dark-tint-saturation) var(--palette-dark-tint-lightness); - --primary-action-foreground: var(--primary); - --primary-action-border: var(--palette-hue) var(--palette-dark-tint-saturation) 34%; - --secondary: var(--palette-hue) var(--surface-chroma) 12.2%; - --secondary-foreground: var(--foreground); - --muted-foreground: var(--palette-hue) var(--surface-chroma) 64%; - --zc-tab-inactive: var(--muted-foreground); - --accent: var(--palette-hue) var(--surface-chroma) 15.5%; - --accent-foreground: var(--foreground); - --border: var(--palette-hue) var(--surface-chroma) 16%; - --border-strong: var(--palette-hue) var(--surface-chroma) 22%; - --input: var(--palette-hue) var(--surface-chroma) 44%; - --sidebar: var(--card); - --sidebar-foreground: var(--palette-hue) var(--surface-chroma) 76%; - --im-chat-bg: var(--palette-hue) var(--surface-chroma) 6.6%; - --im-line: var(--border); - --im-shadow: 0 0% 0%; - --im-bubble-in: var(--secondary); - --im-bubble-out: var(--primary-action); - --im-row-hover: var(--palette-hue) var(--surface-chroma) 12%; - --destructive: var(--console-signal-danger-text); - --destructive-foreground: 0 0% 10%; --destructive-fill: var(--console-signal-danger-fill); - --success: var(--console-signal-success-text); - --success-foreground: 0 0% 10%; - --success-fill: var(--console-signal-success-fill); - --info: var(--console-signal-info-text); - --info-foreground: 0 0% 10%; --info-fill: var(--console-signal-info-fill); - --warning: var(--console-signal-warning-text); - --warning-foreground: 0 0% 10%; - --warning-fill: var(--console-signal-warning-fill); - --warning-fill-foreground: 38 70% 12%; - --chart-1: var(--console-chart-1); - --chart-2: var(--console-chart-2); - --chart-3: var(--console-chart-3); - --chart-4: var(--console-chart-4); - --chart-5: var(--console-chart-5); - --chart-6: var(--console-chart-6); - --chart-7: var(--console-chart-7); - --chart-8: var(--console-chart-8); - --chart-other: var(--console-chart-other); - color-scheme: dark; + /* Text on a solid status fill: the surface color (white in light, the dark card in dark). */ + --warning-fill-foreground: var(--console-surface); + /* Inactive segment labels: muted (≥ 6.2:1 on sunken in both themes). */ + --zc-tab-inactive: var(--console-muted); + --radius: var(--console-radius-3); } } diff --git a/console-ui/src/theme/appearance.css b/console-ui/src/theme/appearance.css deleted file mode 100644 index d20baaaf..00000000 --- a/console-ui/src/theme/appearance.css +++ /dev/null @@ -1,29 +0,0 @@ -.console-theme-trigger { position: relative; } -.console-theme-trigger-dot { position: absolute; right: 7px; bottom: 7px; width: 7px; height: 7px; border: var(--console-border-hairline) solid hsl(var(--card)); border-radius: var(--console-radius-full); background: hsl(var(--primary)); } -.console-appearance-panel { width: min(330px, calc(100vw - 24px)); max-height: min(620px, var(--radix-popover-content-available-height, calc(100dvh - 24px))); overflow-y: auto; padding: var(--console-space-4); } -.console-palette-group + .console-palette-group { margin-top: var(--console-space-3); } -.console-palette-group h3 { margin: 0 0 var(--console-space-2); font-size: var(--console-text-label); font-weight: var(--console-weight-medium); color: hsl(var(--muted-foreground)); } -.console-appearance-heading { display: flex; align-items: center; gap: var(--console-space-2); margin-bottom: var(--console-space-4); } -.console-appearance-heading h2 { margin: 0; font-size: var(--console-text-section); font-weight: var(--console-weight-strong); } -.console-appearance-section { min-width: 0; padding: 0; margin: 0 0 var(--console-space-4); border: 0; } -.console-appearance-section legend { margin-bottom: var(--console-space-2); font-size: var(--console-text-label); color: hsl(var(--muted-foreground)); } -.console-appearance-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--console-space-1); } -.console-appearance-palettes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--console-space-2); } -.console-mode-choice, .console-palette-choice { position: relative; min-width: 0; cursor: pointer; } -.console-mode-choice > input, .console-palette-choice > input { position: absolute; width: 1px; height: 1px; opacity: 0; } -.console-mode-choice > span, .console-palette-choice > span { display: flex; align-items: center; justify-content: center; gap: var(--console-space-2); min-height: 44px; border: var(--console-border-hairline) solid hsl(var(--border)); border-radius: var(--console-radius-1); background: hsl(var(--card)); font-size: var(--console-text-label); } -.console-palette-choice > span { justify-content: flex-start; padding: 0 var(--console-space-3); font-size: var(--console-text-label); } -.console-mode-choice svg { width: 15px; height: 15px; } -.console-mode-choice > input:checked + span, .console-palette-choice > input:checked + span { border-color: hsl(var(--primary)); background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); } -.console-mode-choice > input:focus-visible + span, .console-palette-choice > input:focus-visible + span { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; } -.console-mode-choice:hover > span, .console-palette-choice:hover > span { background: hsl(var(--accent)); } -.console-palette-swatch { width: 18px; height: 18px; flex-shrink: 0; border-radius: var(--console-radius-1); outline: var(--console-border-hairline) solid rgb(0 0 0 / .08); outline-offset: calc(var(--console-border-hairline) * -1); } -.console-palette-check { width: 14px; height: 14px; margin-left: auto; opacity: 0; } -.console-palette-choice > input:checked + span .console-palette-check { opacity: 1; } -.console-appearance-footer { display: flex; flex-direction: column; gap: var(--console-space-3); padding-top: var(--console-space-3); border-top: var(--console-border-hairline) solid hsl(var(--border)); } -.console-appearance-footer p { margin: 0; color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); } -.console-appearance-footer button { display: inline-flex; align-items: center; gap: var(--console-space-2); align-self: flex-start; min-height: 32px; padding: var(--console-space-1) var(--console-space-2); border: 0; border-radius: var(--console-radius-1); background: transparent; color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); cursor: pointer; } -.console-appearance-footer button svg { width: 13px; height: 13px; } -.console-appearance-footer button:hover { color: hsl(var(--foreground)); background: hsl(var(--accent)); } -.console-appearance-footer button:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; } -@media (width < 48rem) { .console-appearance-footer button { min-height: 44px; } } diff --git a/console-ui/src/theme/index.ts b/console-ui/src/theme/index.ts index b9ec9229..26295930 100644 --- a/console-ui/src/theme/index.ts +++ b/console-ui/src/theme/index.ts @@ -1,25 +1,22 @@ // Browser presentation only. CSS owns colors; preferences never enter Bot configuration. +// +// Colors come from @zhin.js/console-ui 1.3.0 (「柔光卡片」, ADR 0063 D34–D38): one fixed soft-card +// palette, light and dark. The Console only picks the mode: +// light → `.light` on , no `data-theme` (the library is light when nothing is written); +// dark → `.dark` on ; +// system → `data-theme="system"` on (the library's opt-in `prefers-color-scheme` rule) plus +// the resolved `.light` / `.dark` class, kept in step with the system, for the Console's +// own `.dark` rules and Tailwind's `dark:` variant. +// There is no palette any more: a saved `zhin.console.palette` is ignored and removed. export type Theme = 'light' | 'dark' export const THEME_MODES = ['light', 'dark', 'system'] as const export type ThemeMode = typeof THEME_MODES[number] -export const THEME_PALETTES = [ - // The brand palette (default): Zhin green. The brand mark keeps its own colors in every palette. - { id: 'zhin', group: 'brand', label: 'Zhin 绿', swatch: '#76eec6', light: '#f2f5f4', dark: '#0b0e0d' }, - { id: 'sky', group: 'fresh', label: '晴空', swatch: '#2c9ff2', light: '#f2f4f5', dark: '#0b0d0e' }, - { id: 'peach', group: 'fresh', label: '蜜桃', swatch: '#f58266', light: '#f5f2f2', dark: '#0e0c0b' }, - { id: 'sunny', group: 'fresh', label: '暖阳', swatch: '#fbc64b', light: '#f5f4f2', dark: '#0e0d0b' }, - { id: 'mint', group: 'fresh', label: '薄荷', swatch: '#2ee5b7', light: '#f2f5f4', dark: '#0b0e0d' }, - { id: 'ocean', group: 'calm', label: '海蓝', swatch: '#1668dc', light: '#f2f3f5', dark: '#0b0d0e' }, - { id: 'forest', group: 'calm', label: '松青', swatch: '#2e765b', light: '#f2f5f4', dark: '#0b0e0d' }, - { id: 'plum', group: 'calm', label: '暮紫', swatch: '#764899', light: '#f3f2f5', dark: '#0d0b0e' }, - { id: 'graphite', group: 'calm', label: '石墨', swatch: '#3d3d3d', light: '#f3f3f3', dark: '#0d0d0d' }, -] as const -export type Palette = typeof THEME_PALETTES[number]['id'] -/** Default palette: neutral surfaces with the Zhin green accent. A saved choice is kept as is. */ -export const DEFAULT_PALETTE: Palette = 'zhin' -export interface ThemePreferences { mode: ThemeMode; palette: Palette } +export interface ThemePreferences { mode: ThemeMode } export const THEME_STORAGE_KEY = 'theme' -export const PALETTE_STORAGE_KEY = 'zhin.console.palette' +/** The palette preference of Console ≤ 1.2 (console-ui ≤ 1.2.x); read only to delete it. */ +export const LEGACY_PALETTE_STORAGE_KEY = 'zhin.console.palette' +/** ``: the soft-card page background (`--console-bg`). */ +export const THEME_COLORS: Readonly> = Object.freeze({ light: '#F7F5F3', dark: '#121010' }) const THEME_EVENT = 'zhin:appearance-change' const runtimes = new WeakMap void>() const legacyThemeVariables = [ @@ -30,18 +27,17 @@ const legacyThemeVariables = [ 'sidebar-primary-foreground','sidebar-accent','sidebar-accent-foreground','sidebar-border','sidebar-ring', ] as const export function isThemeMode(value: unknown): value is ThemeMode { return THEME_MODES.some(mode => mode === value) } -export function isPalette(value: unknown): value is Palette { return THEME_PALETTES.some(palette => palette.id === value) } function storage(): Storage | undefined { try { return typeof window === 'undefined' ? undefined : window.localStorage } catch { return undefined } } function stored(key: string): string | null { try { return storage()?.getItem(key) ?? null } catch { return null } } function readStoredPreferences(): ThemePreferences { - const mode = stored(THEME_STORAGE_KEY), palette = stored(PALETTE_STORAGE_KEY) - return { mode: isThemeMode(mode) ? mode : 'system', palette: isPalette(palette) ? palette : DEFAULT_PALETTE } + const mode = stored(THEME_STORAGE_KEY) + return { mode: isThemeMode(mode) ? mode : 'system' } } export function getThemePreferences(): ThemePreferences { const saved = readStoredPreferences() if (typeof document === 'undefined') return saved - const { themeMode, palette } = document.documentElement.dataset - return { mode: isThemeMode(themeMode) ? themeMode : saved.mode, palette: isPalette(palette) ? palette : saved.palette } + const { themeMode } = document.documentElement.dataset + return { mode: isThemeMode(themeMode) ? themeMode : saved.mode } } export function resolveTheme(mode: ThemeMode): Theme { if (mode !== 'system') return mode @@ -54,21 +50,21 @@ function renderTheme(preferences: ThemePreferences): Theme { root.classList.remove('light', 'dark') root.classList.add(theme) root.dataset.themeMode = preferences.mode - root.dataset.palette = preferences.palette + if (preferences.mode === 'system') root.dataset.theme = 'system' + else delete root.dataset.theme + delete root.dataset.palette for (const key of legacyThemeVariables) root.style.removeProperty(`--${key}`) - const palette = THEME_PALETTES.find(value => value.id === preferences.palette)! - document.querySelector('meta[name="theme-color"]')?.setAttribute('content', palette[theme]) + document.querySelector('meta[name="theme-color"]')?.setAttribute('content', THEME_COLORS[theme]) return theme } function notify() { if (typeof window !== 'undefined') window.dispatchEvent(new Event(THEME_EVENT)) } export function setThemePreferences(update: Partial): void { - if (update.mode !== undefined && !isThemeMode(update.mode) || update.palette !== undefined && !isPalette(update.palette)) throw new TypeError('Invalid appearance preference') + if (update.mode !== undefined && !isThemeMode(update.mode)) throw new TypeError('Invalid appearance preference') const preferences = getThemePreferences() - if (update.mode !== undefined) preferences.mode = update.mode - if (update.palette !== undefined) preferences.palette = update.palette - // Only two bounded, validated scalar preferences. Blocked storage keeps the current session usable. - for (const [key, value] of [[THEME_STORAGE_KEY, update.mode], [PALETTE_STORAGE_KEY, update.palette]] as const) { - if (value !== undefined) { try { storage()?.setItem(key, value) } catch { /* session-only preference */ } } + if (update.mode !== undefined) { + preferences.mode = update.mode + // One bounded, validated scalar preference. Blocked storage keeps the current session usable. + try { storage()?.setItem(THEME_STORAGE_KEY, update.mode) } catch { /* session-only preference */ } } renderTheme(preferences) notify() @@ -78,7 +74,7 @@ export function applyTheme(theme: Theme) { setThemePreferences({ mode: theme }) /** Stable primitive snapshot shared by every theme control, including other browser tabs. */ export function getThemeSnapshot(): string { const preferences = getThemePreferences() - return `${preferences.mode}:${preferences.palette}:${resolveTheme(preferences.mode)}` + return `${preferences.mode}:${resolveTheme(preferences.mode)}` } export function subscribeTheme(listener: () => void): () => void { if (typeof window === 'undefined') return () => {} @@ -88,6 +84,8 @@ export function subscribeTheme(listener: () => void): () => void { export function initializeTheme(): Theme { if (typeof window === 'undefined') return 'light' runtimes.get(window)?.() + // The palette picker is gone (console-ui 1.3.0): drop its saved choice once. + try { if (stored(LEGACY_PALETTE_STORAGE_KEY) !== null) storage()?.removeItem(LEGACY_PALETTE_STORAGE_KEY) } catch { /* nothing to clean */ } const theme = renderTheme(readStoredPreferences()) const media = window.matchMedia?.('(prefers-color-scheme: dark)') const onSystemChange = () => { @@ -95,7 +93,7 @@ export function initializeTheme(): Theme { if (preferences.mode === 'system') { renderTheme(preferences); notify() } } const onStorage = (event: StorageEvent) => { - if (event.key !== null && event.key !== THEME_STORAGE_KEY && event.key !== PALETTE_STORAGE_KEY) return + if (event.key !== null && event.key !== THEME_STORAGE_KEY) return if (event.storageArea && event.storageArea !== storage()) return renderTheme(readStoredPreferences()) notify() diff --git a/docs/appearance.md b/docs/appearance.md index a83f2a3f..18ddd50e 100644 --- a/docs/appearance.md +++ b/docs/appearance.md @@ -2,44 +2,50 @@ 主题只改变当前浏览器的呈现,不修改 Host、Bot 配置或消息内容。 -## 验收截图 +## 柔光卡片 -- [暖阳 · 桌面工作区](assets/appearance-sunshine-desktop.jpg) -- [蜜桃 · 手机分组选择面板](assets/appearance-peach-mobile.jpg) -- [松青 · 早期手机外观面板](assets/appearance-pine-mobile.jpg) -- [暮紫 · 桌面暗色工作区](assets/appearance-plum-desktop.jpg) +颜色、字号、圆角、阴影与动效全部来自 `@zhin.js/console-ui` 1.3.0 的「柔光卡片」规范(zhinjs/zhin ADR 0063 D34–D41):黑白主色、暖灰底色、五组浅色类别色、大圆角无描边卡片、胶囊按钮。Console 不再有自己的调色板,也不再提供配色选择;`data-palette` 不再写入。 -截图使用本地模拟数据,不连接真实平台或模型。全部 786 项测试、类型检查、生产构建通过;十六种亮暗组合的文字、按钮和焦点对比度均通过校验。浏览器验证了四套鲜活配色的实际按钮填充、深浅切换、刷新保留、375px 无溢出,以及 320×568 短屏面板可滚动且能触达默认恢复按钮。 +类别色按「类别对应表」固定(同一个东西在所有页面颜色一样): -## 两个独立选择 +| 组 | 浅彩 / 图标色 | 用在 | +| --- | --- | --- | +| 1 | 杏 / 珊瑚 | 聊天账号、适配器 | +| 2 | 粉 / 玫红 | 插件 | +| 3 | 黄绿 / 橄榄 | 模型、Agent | +| 4 | 薄荷 / 青绿 | 会话、消息 | +| 5 | 奶黄 / 芥黄 | 定时任务、时间 | +| 中性 | sunken / ink | 实例、运维、访问控制 | -点击顶栏主题按钮打开外观面板: +图表:消息量「收到」用 `chart-1`(杏),「回复」用 `chart-2`(孔雀青);状态(正常 / 失败)只用 `ok` / `danger`,不用图表色。 -- 显示模式:亮色、暗色、跟随系统。跟随系统会持续响应系统变化,不将当前系统模式保存成手动选择。 -- 鲜活配色:晴空、蜜桃、暖阳、薄荷。用更高彩度的淡色工作区、明亮按钮和有色聊天气泡,适合偏好清爽、温暖或活力界面的用户。 -- 沉静配色:松青(默认)、海蓝、暮紫、石墨,保留既有选择。石墨保持中性表面。 -- 配色覆盖工作区底色、导航、选中态、聊天气泡、主要按钮与键盘焦点。八套配色都有对应暗色模式;主题面板分组显示,短屏可滚动。 +## 显示模式 -每套配色都单独定义亮暗层次。鲜活主题使用 `--primary-action` / `--primary-action-foreground` 表示明亮按钮填充及其文字;`--primary` 保持为可读的链接与焦点色,避免亮黄、薄荷按钮与文字共用同一个色值。成功、警告、危险及图表类别颜色不随装饰配色变更,避免语义漂移。所有组合的文字、输入边界与焦点对比度由测试校验。 +用户菜单(顶栏右侧的圆形账号按钮)里的「显示模式」有三项: + +- 浅色:``,不写 `data-theme`(组件库什么都不写时就是浅色)。 +- 深色:``。 +- 跟随系统(默认):``,由组件库的 `prefers-color-scheme` 规则选择浅色或深色;同时写入解析后的 `.light` / `.dark` 类,供 Console 自己的 `.dark` 规则和 Tailwind 的 `dark:` 使用,并随系统变化更新。 + +浏览器主题色(``)固定为浅色 `#F7F5F3`、深色 `#121010`。 ## 偏好与兼容 -- 仅保存两个经过枚举校验的标量:`theme`(`light` / `dark` / `system`)、`zhin.console.palette`(八种配色 ID)。 -- 已有 `theme=light/dark` 选择保留。没有选择时默认为跟随系统与松青。 +- 只保存一个经过枚举校验的标量:`theme`(`light` / `dark` / `system`)。已有选择保留;没有选择时跟随系统。 +- 旧版本保存的配色 `zhin.console.palette` 不再读取,首次加载时删除。 - 无效值回到默认设置;浏览器阻止存储时,本次页面仍可即时切换。 -- 同一浏览器的其他 Console 标签页会同步偏好;清除偏好恢复默认。 -- “恢复默认外观”同时恢复跟随系统与松青,不修改其他浏览器数据。 +- 同一浏览器的其他 Console 标签页会同步偏好。 ## 初始化与样式边界 -`client/index.html` 的早期脚本在应用和样式绘制前设置模式和配色属性,避免先闪现错误主题。运行时继续监听系统与跨标签页变化,更新浏览器主题色。两套 Console 入口共用 CSS 变量;旧版本曾写入的 inline 主题变量仅按已知名单清除,不删除扩展自己的样式。 +`client/index.html` 的早期脚本在应用和样式绘制前设置模式,避免先闪现错误主题。运行时继续监听系统与跨标签页变化。旧版本曾写入的 inline 主题变量仅按已知名单清除,不删除扩展自己的样式。 关键文件: - `console-ui/src/theme/index.ts`:偏好校验、模式解析、监听与通知。 -- `console-ui/src/theme-tokens.css`:完整亮暗配色和稳定语义色。 +- `console-ui/src/theme-tokens.css`:组件库没有的几个旧名字,全部指向组件库的令牌。 - `console-ui/src/hooks/useTheme.ts`:统一订阅,多个控件不产生独立主题状态。 -- `console-ui/src/components/ThemeToggle.tsx`:可键盘操作的原生单选组和外观面板。 +- `console-ui/src/components/UserMenu.tsx`:显示模式的单选菜单项。 - `tests/theme-runtime.test.mjs`:迁移、系统变化、存储失败、跨标签同步、早期脚本。 -- `tests/visual-foundation.test.mjs`:全部十六种亮暗配色的对比度、鲜活填充与可读文本角色、语义色稳定性。 -- `tests/theme-controls.test.mjs`:独立选择、文案与默认恢复。 +- `tests/visual-foundation.test.mjs`:浅色 / 深色的对比度与颜色角色。 +- `tests/theme-controls.test.mjs`:三种显示模式。 diff --git a/docs/assets/appearance-peach-mobile.jpg b/docs/assets/appearance-peach-mobile.jpg deleted file mode 100644 index dd8af2b80edead76ffcd2c7d2458fdcbb57e0dd2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17448 zcmdVB1yo$kvM@S8a0~7dED+qCKyVN45L^ZyG(dy|cXxtYaAttP-QC?K!JQBicti5# zeCOQ%+`I0*@2&OT+e7!RuBxu;Zn|q%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;Q2~pubplNSfx*1Jz)1Jlh@|s?`Yk&!urnJ}cM)>OLcFz;# zT(O=b7Z8!zt2yDhuUd+V#^uR)CMklVvO6XT6%sqbs>s1SA}X0ERwfpN zW1Oe+@#26&k->(RvS=3>pBU@iiPdU6htMZV>Rd+JHC-{;Rk_UrQ=CjW%2;3t zRms5nUD~r~WNmuV1s2`Z+!-yR@+zM*r3Wn5AQ;rS+SZv_Tc3`hea%{vOySRJgt-NL z6WQJHT6sKm6`)7Iv3K|l#-s66>jmzdVC^3l_;N|kB;i(Je_02$&GBScHh9{i;JSuX zM%0Jo!JXDx=zV2>gi&~9PVm;7Qt#-`4Jxue%z zHx?FV9Io5v?*X(mWkOdIfkknrSLL_7UEgy0{#55@d1Nxao3!bVos25hKu<}voxoiM z{VZYKPu=+d|BuF7UX#1Vrj#R<#xN-Cq$Yq?S{4CbAZjMf7(&3-i1g~T8Ec*{uN7ez zsd^nQhuA~%td_f^!VS(H`bS%eXY#@7=p88k@d>=|$ecCdZSHtAdpW}Q+HBAKaFCKF su5wD;r6ld(%+&)g{yyCPxXk-^6#cXf{npjnzizz#Gr_-)2k!O#FLXHMqyPW_ diff --git a/docs/assets/appearance-sunshine-desktop.jpg b/docs/assets/appearance-sunshine-desktop.jpg deleted file mode 100644 index bdb473506d56532ea62b5c300bd29d0759bc0a51..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 23210 zcmdSB2|Sxi`#+p+T9meGU%M%>mf9PfYEel=CB#lumDu;%yIER-Q-YR+S|Wm2BX&+H zYTts2U5ZLe?JX_dI6cp4pXc{H@B90`pa1XueBQZb=6hdrUDsSQ_uMmc&tmW0-W1>@ zSVvC>aNqy{aDZ_E_GS)>>s`BMa|>pmqjyvL&xnJ(0ERn!2>@_)^YMb|YMn7PGe2{5 z>W9RBoUNU=$A0)997FHs(7tv6U_kmm@ciGAneWAg zkMI1zsC|6j$HRxg^J*V^8NseGFo}W19e%-ge!+GgUi9~`)=Rj@MKXaSTNzA`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Ls@2L)rZ>2H&x3)+1N@+D9C^e`K{XkrnQ04k76do zrd|G|O!cGYucLe@`ug>oz9*E{FIUGeLcP4EIJTHND^B@-f@hh>3HgP5BlgTn+ob`P z^wBU!7DE`4#7U$G+G@cYSGV$=3~LIV#DV&((9}F-^S#U?dG*Rkc|;v*ovwCWF4!MV z^tQu<6l!5RnerbdFhXb5`WVxs^JgeQd@RUq;pLvkOj+RGd02|pEEg^}^hBFsZe1u; z1%(jRXBced0d+dlY(XUoEHfZF+~C2)S=lGRpjXw{b{?K_>RZy~w1AGUa-j~h(9DD& zSy{v-S_A=vO(noVCfqx8KNAk+e%3OGX#*4U{nc>D$4%65sR+=Ksa)HlDjz7@?2D`SO4dR2=i)6wu7DVc&TdU1@!D2H3Yro!MI~l{W0BDQ)IQx z{PtZwxvtJ)gGF*7>WeJ3aqX^SDq;M+YD$c&YOfxwRT%(wr$BjjXlF~9%F$Ydrj@XT z*X!@M@41x`HQClV$^MUa_l$^cR%$p7B|11=Bbe1QB6T7B4@>&)H$*U}hj}HX)sI6{ zU~XqFn4Mr$=y>xv1;VF5-@F$iNS@-d`MqG17Pvk~1_*}m^MM-0;;)wq2CoK!-mk?8 ziDYKBL}oh5vm9OE2X%+zW*m}p-ENkq}94BTgE44F{prFqH1)%C*5baYOH zsvs$n$nb@#^@--lwJk-P1~=YsuN}0Ex$W_7d#;hnrTXkBFuD7j>K8I*YYHk~^I&oX zhb+mCo%;m%8s_b_)8Ugdw)Zm=u-qhT*@J6s_n7Hv!z+z=!pWkn(~1L3IPmBfLOjax zq61mEq`BN0awT-S4rN6=NrBsELr4s5 v + m) } const lum = v => v.map(c => c <= .04045 ? c / 12.92 : ((c + .055) / 1.055) ** 2.4).reduce((sum, c, i) => sum + c * [.2126, .7152, .0722][i], 0) - for (const palette of THEME_PALETTES) for (const dark of [false, true]) { - const tokens = hslTokens(palette.id, dark) + for (const dark of [false, true]) { + const tokens = hslTokens(dark) const [a, b] = [lum(rgb(tokens['muted-foreground'])), lum(rgb(tokens.card))] const ratio = (Math.max(a, b) + .05) / (Math.min(a, b) + .05) - assert.ok(ratio >= 3, `${palette.id}/${dark ? 'dark' : 'light'}: idle ring ${ratio.toFixed(2)}`) + assert.ok(ratio >= 3, `${dark ? 'dark' : 'light'}: idle ring ${ratio.toFixed(2)}`) } }) diff --git a/tests/console-contract.test.mjs b/tests/console-contract.test.mjs index f0ece2fb..be462bb1 100644 --- a/tests/console-contract.test.mjs +++ b/tests/console-contract.test.mjs @@ -1,5 +1,5 @@ import assert from 'node:assert/strict' -import { readFileSync, readdirSync, statSync } from 'node:fs' +import { existsSync, readFileSync, readdirSync, statSync } from 'node:fs' import { join, relative } from 'node:path' import test from 'node:test' @@ -213,29 +213,28 @@ test('the shared shell adapts across PC, Pad and Phone widths', () => { assert.match(layout, /console-content-frame/) assert.doesNotMatch(layout, /max-w-7xl/) - // Content and the top bar share one 1440px column. - assert.match(design, /--console-content-max: 90rem/) + // Content and the top bar share one column: the library's `data` width, 1280px (console-ui 1.3.0), + // with the library's page padding (16 / 24 / 32). The Console no longer pins 90rem. + assert.doesNotMatch(design, /--console-content-max:/) + assert.doesNotMatch(design, /90rem|120rem/) assert.match(design, /\.console-content-frame \{\s*max-width: var\(--console-content-max\)/) - assert.match(design, /@media \(width >= 48rem\) and \(width < 64rem\)/) - assert.match(design, /@media \(width >= 90rem\)/) + assert.match(layout, /console-topnav-bar console-content-frame/) + const shell = sourceText(join(SOURCE_ROOT, 'shell.css')) + assert.match(shell, /padding-inline: var\(--console-page-padding-inline\)/) + assert.match(shell, /@media \(width < 64rem\)/) + assert.match(shell, /@media \(width < 48rem\)/) assert.match(grids, /2xl:grid-cols-4/) }) -test('remote Agent playground styles are retained by the Tailwind source scanner', () => { - const source = sourceText(join(SOURCE_ROOT, 'agent-playground.css')) - const contract = sourceText(join(SOURCE_ROOT, 'remote-entry-style-contract.ts')) +test('the Sandbox playground ships its own styles: the Console keeps no copy (adapter-sandbox >= 1.2.0)', () => { + // @zhin.js/adapter-sandbox 1.2.0 styles its remote Entry itself (console-ui components), so the + // Console's copy of the old Agent playground stylesheet and its Tailwind class contract are gone. + assert.equal(existsSync(join(SOURCE_ROOT, 'agent-playground.css')), false) + assert.equal(existsSync(join(SOURCE_ROOT, 'remote-entry-style-contract.ts')), false) const clientStyles = sourceText(join(ROOT, 'client', 'style.css')) - const playgroundClasses = new Set( - [...source.matchAll(/\.((?:agent-playground)[A-Za-z0-9_-]*)/g)].map((match) => match[1]), - ) - const retainedClasses = new Set( - [...contract.matchAll(/['"]((?:agent-playground)[A-Za-z0-9_-]*)['"]/g)].map((match) => match[1]), - ) - const missing = [...playgroundClasses].filter((className) => !retainedClasses.has(className)) - - assert.ok(playgroundClasses.size > 50, 'expected the complete remote Agent playground style contract') - assert.deepEqual(missing, []) - assert.match(clientStyles, /@import "\.\.\/console-ui\/src\/agent-playground\.css";/) + assert.doesNotMatch(clientStyles, /agent-playground/) + const readme = sourceText(join(ROOT, 'README.md')) + assert.match(readme, /@zhin\.js\/adapter-sandbox[^\n]*1\.2\.0/) }) test('Console shell only consumes public route metadata', () => { @@ -408,12 +407,13 @@ test('package manifest targets the released Zhin contract generation', () => { const manifest = JSON.parse(sourceText(join(ROOT, 'package.json'))) // One SDK generation (zhin 1.11): the tilde ranges keep npm from resolving the unrelated client 2.x line // or a later minor that has not been checked against this Console. - assert.equal(manifest.dependencies['@zhin.js/client'], '~1.5.1') + // client 1.5.2 depends exactly on console-ui 1.3.0 (one console-ui in the lockfile). + assert.equal(manifest.dependencies['@zhin.js/client'], '~1.5.2') assert.equal(manifest.dependencies['@zhin.js/contract'], '~1.1.34') assert.equal(manifest.dependencies['@zhin.js/ai'], '~1.9.1') assert.equal(manifest.dependencies['@zhin.js/console-protocol'], '~1.10.0') - // The component library (ADR 0063 P1a); 1.1 (ADR 0063 color roles, primary / destructive-solid, EmptyState illustrations) is taken deliberately. - assert.equal(manifest.dependencies['@zhin.js/console-ui'], '~1.2.1') + // The component library (ADR 0063 P1a); 1.3 (「柔光卡片」, D34–D41) is taken deliberately. + assert.equal(manifest.dependencies['@zhin.js/console-ui'], '~1.3.0') for (const [name, range] of Object.entries(manifest.dependencies)) { if (name.startsWith('@zhin.js/')) assert.match(range, /^~\d+\.\d+\.\d+$/, `${name} uses a tilde range`) } diff --git a/tests/deployment-feedback-1250.test.mjs b/tests/deployment-feedback-1250.test.mjs index 527ea9db..ca719767 100644 --- a/tests/deployment-feedback-1250.test.mjs +++ b/tests/deployment-feedback-1250.test.mjs @@ -17,7 +17,8 @@ import { SCOPE_TAB_LABELS } from '../console-ui/src/scope/scope-tree.mjs' const src = path => readFileSync(new URL(`../console-ui/src/${path}`, import.meta.url), 'utf8') test('content width: one column token; only split-pane workspaces opt out, never with their own caps', () => { - assert.match(src('design-system.css'), /--console-content-max: 90rem;/) + // The column is the library's `data` width (80rem = 1280px, console-ui 1.3.0); the Console does not redefine it. + assert.doesNotMatch(src('design-system.css'), /--console-content-max:/) assert.match(src('design-system.css'), /\.console-content-frame \{\s*max-width: var\(--console-content-max\);/) const shell = src('registerBuiltinShell.tsx') const wide = shell.split('app.addRoute(').filter(block => /fullWidth: true/.test(block)).map(block => /path: P\.(\w+)/.exec(block)[1]).sort() @@ -109,7 +110,8 @@ test('purpose pickers: profiles grouped by service, Agent-only profiles in their test('navigation and role names: 核心 / 插件页面 in the 功能 menu; Console 角色 and 聊天角色 are told apart', () => { const layout = src('layouts/dashboard.tsx') assert.match(layout, /section\.groups\.map/) - assert.match(layout, /DropdownMenuLabel className="console-topnav-menu-label"/) + // 功能's Chips are grouped (核心 / 插件页面) with a visible label for the plugin-page group. + assert.match(layout, /className="console-section-nav-label"/) assert.match(src('bootstrap/loadConsoleEntries.ts'), /route\.element\.type === AdapterConsolePage/) assert.match(src('registerBuiltinShell.tsx'), /name: 'Console 角色'/) assert.match(src('i18n/navigation.ts'), /"\/access\/roles": "Console 角色"/) diff --git a/tests/feature-switch-touch-target.test.mjs b/tests/feature-switch-touch-target.test.mjs index 748bca2f..0bd65526 100644 --- a/tests/feature-switch-touch-target.test.mjs +++ b/tests/feature-switch-touch-target.test.mjs @@ -30,8 +30,10 @@ test('below 48rem the hit area is at least the 44px touch target; the row keeps assert.equal(decls['min-height'], 'var(--console-touch-target)') const base = css.nodes.find(node => node.type === 'rule' && node.selector === '.console-feature-switch-hit') assert.match(base.toString(), /align-items: center; justify-content: center/, 'the switch is centred in its hit area') - const designSystem = readFileSync(new URL('../console-ui/src/design-system.css', import.meta.url), 'utf8') - assert.match(designSystem, /--console-touch-target: 2\.75rem;/) + // The touch target is the library's token (console-ui 1.3.0), 44px; the Console no longer redefines it. + const tokens = readFileSync(new URL('../node_modules/@zhin.js/console-ui/dist/tokens.css', import.meta.url), 'utf8') + assert.match(tokens, /--console-touch-target: 2\.75rem;/) + assert.doesNotMatch(readFileSync(new URL('../console-ui/src/design-system.css', import.meta.url), 'utf8'), /--console-touch-target:/) // Column gap of the row head (name link | switch) is space-3 = 12px, above the 8px the issue asks for. const head = css.nodes.find(node => node.type === 'rule' && node.selector === '.console-feature-row-head') assert.match(head.toString(), /gap: var\(--console-space-2\) var\(--console-space-3\)/) diff --git a/tests/helpers/token-cascade.mjs b/tests/helpers/token-cascade.mjs index 62f8ec91..fe4c0b96 100644 --- a/tests/helpers/token-cascade.mjs +++ b/tests/helpers/token-cascade.mjs @@ -1,8 +1,10 @@ /** * The color tokens as the browser resolves them: the component library's tokens.css first * (@zhin.js/console-ui/styles.css is imported before the Console's stylesheet), then the Console's - * theme-tokens.css, which redefines the older names as aliases of the library's roles. Only the - * top-level `:root`, `:root[data-palette]` and `.dark` rules count (no @media / @container blocks). + * theme-tokens.css, which only adds a few older names pointing at library roles (console-ui 1.3.0 + * 「柔光卡片」: no palette, no `data-palette`). Only top-level rules count (no @media / @container), + * selected by theme: light reads every rule whose selector list has `:root`; dark adds the rules + * whose selector list has `.dark`. */ import assert from 'node:assert/strict' import { readFileSync } from 'node:fs' @@ -14,12 +16,15 @@ const sheets = ['node_modules/@zhin.js/console-ui/dist/tokens.css', 'console-ui/ const topLevel = rule => { for (let node = rule.parent; node; node = node.parent) if (node.type === 'atrule' && node.name !== 'layer') return false; return true } -/** name → raw value, for one palette and theme. */ -export function tokenValues(palette, dark) { +/** name → raw value, for one theme. */ +export function tokenValues(dark) { const values = new Map() for (const css of sheets) css.walkRules(rule => { if (!topLevel(rule)) return - if (!rule.selectors.some(selector => selector === ':root' || selector === `:root[data-palette="${palette}"]` || dark && selector === '.dark')) return + const selectors = rule.selectors + const light = selectors.includes(':root') + // The theme roots list (`:root, .light, .dark, …`) is the light base; a `.dark` rule without `:root` is the dark tier. + if (!(light || dark && selectors.includes('.dark'))) return rule.walkDecls(declaration => { if (declaration.prop.startsWith('--')) values.set(declaration.prop.slice(2), declaration.value) }) }) return values @@ -36,11 +41,23 @@ export function resolveToken(values, name) { } /** Proxy of `{ h, s, l }` numbers, one per token name. */ -export function hslTokens(palette, dark) { - const values = tokenValues(palette, dark) +export function hslTokens(dark) { + const values = tokenValues(dark) return new Proxy({}, { get(_target, name) { const [h, s, l] = resolveToken(values, name).split(/\s+/).map(parseFloat) assert.ok([h, s, l].every(Number.isFinite), `invalid HSL ${name}`) return { h, s, l } } }) } + +/** WCAG contrast of two `{ h, s, l }` colors. */ +export function contrast(a, b) { + const linear = value => value <= .04045 ? value / 12.92 : ((value + .055) / 1.055) ** 2.4 + const luminance = ({ h, s, l }) => { + const chroma = (1 - Math.abs(2 * l / 100 - 1)) * s / 100, hue = h / 60, x = chroma * (1 - Math.abs(hue % 2 - 1)), m = l / 100 - chroma / 2 + const channels = hue < 1 ? [chroma, x, 0] : hue < 2 ? [x, chroma, 0] : hue < 3 ? [0, chroma, x] : hue < 4 ? [0, x, chroma] : hue < 5 ? [x, 0, chroma] : [chroma, 0, x] + return channels.map(channel => linear(channel + m)).reduce((sum, value, index) => sum + value * [.2126, .7152, .0722][index], 0) + } + const la = luminance(a), lb = luminance(b) + return (Math.max(la, lb) + .05) / (Math.min(la, lb) + .05) +} diff --git a/tests/information-display-polish.test.mjs b/tests/information-display-polish.test.mjs index 430363f4..fa52dfe0 100644 --- a/tests/information-display-polish.test.mjs +++ b/tests/information-display-polish.test.mjs @@ -13,12 +13,14 @@ const require = createRequire(import.meta.url) test('cards and task rows read the card elevation token (the successor of --console-shadow-sm), not borders', async () => { const design = await readFile(new URL('../console-ui/src/design-system.css', import.meta.url), 'utf8') const resources = await readFile(new URL('../console-ui/src/pages/resource-pages.css', import.meta.url), 'utf8') + const library = await readFile(new URL('../node_modules/@zhin.js/console-ui/dist/styles.css', import.meta.url), 'utf8') assert.match(design, /--console-shadow-xl:/) - assert.match(design, /\.console-card\s*\{[\s\S]*?box-shadow:\s*var\(--console-card-elevation\)/) - assert.match(design, /\.console-sheet-content\[data-side="right"\]/) assert.match(design, /--zc-shadow-ring:/) - assert.match(design, /\.console-card\s*\{[\s\S]*?border:[^;]*transparent/) - assert.match(design, /\.console-dialog-overlay[\s\S]*?backdrop-filter:\s*blur\(4px\)/) + // Card, dialog and sheet are the library's (soft cards: borderless white card with shadow-sm; no blurred scrim). + // The Console no longer restyles them. + for (const selector of ['.console-card {', '.console-dialog-overlay', '.console-sheet-content[data-side="right"]']) assert.ok(!design.includes(selector), selector) + assert.match(library, /\.console-card\s*\{/) + assert.doesNotMatch(design, /backdrop-filter/) assert.match(resources, /\.console-task-row\s*\{[\s\S]*?box-shadow:\s*var\(--console-card-elevation\)/) }) diff --git a/tests/light-contrast-crumb-readout.test.mjs b/tests/light-contrast-crumb-readout.test.mjs index 8fa2ca43..1599ffdd 100644 --- a/tests/light-contrast-crumb-readout.test.mjs +++ b/tests/light-contrast-crumb-readout.test.mjs @@ -5,7 +5,6 @@ import test from 'node:test' import assert from 'node:assert/strict' import { readFileSync } from 'node:fs' import { hslTokens } from './helpers/token-cascade.mjs' -import { THEME_PALETTES } from '../console-ui/src/theme/index.ts' const read = path => readFileSync(new URL(`../${path}`, import.meta.url), 'utf8') const rgb = ({ h, s, l }) => { @@ -33,9 +32,9 @@ test('the cache-hit readout badge writes its text in foreground; chart-3 only fi assert.match(charts, /bg-\[hsl\(var\(--chart-3\)\/0\.14\)\][^"]*text-foreground/) }) -for (const palette of THEME_PALETTES) for (const dark of [false, true]) { - test(`${palette.id}/${dark ? 'dark' : 'light'}: both text runs reach 4.5:1`, () => { - const tokens = hslTokens(palette.id, dark) +for (const dark of [false, true]) { + test(`${dark ? 'dark' : 'light'}: both text runs reach 4.5:1`, () => { + const tokens = hslTokens(dark) for (const surface of ['background', 'card']) { const base = rgb(tokens[surface]) const crumb = ratio(rgb(tokens['muted-foreground']), base) diff --git a/tests/object-tab-contrast.test.mjs b/tests/object-tab-contrast.test.mjs index ce550b76..e929fbaa 100644 --- a/tests/object-tab-contrast.test.mjs +++ b/tests/object-tab-contrast.test.mjs @@ -4,7 +4,6 @@ import test from 'node:test' import assert from 'node:assert/strict' import { readFileSync } from 'node:fs' import { hslTokens } from './helpers/token-cascade.mjs' -import { THEME_PALETTES } from '../console-ui/src/theme/index.ts' const read = path => readFileSync(new URL(`../${path}`, import.meta.url), 'utf8') const rgb = ({ h, s, l }) => { @@ -22,14 +21,14 @@ test('inactive tabs use their own token; hover and disabled keep the library sty assert.match(css, /\.console-tabs-trigger\[data-state="inactive"\]:not\(:hover, :disabled\) \{ color: hsl\(var\(--zc-tab-inactive\)\); \}/) }) -for (const palette of THEME_PALETTES) for (const dark of [false, true]) { - test(`${palette.id}/${dark ? 'dark' : 'light'}: inactive tab labels reach 4.5:1 on the tab list fill`, () => { - const tokens = hslTokens(palette.id, dark) +for (const dark of [false, true]) { + test(`${dark ? 'dark' : 'light'}: inactive tab labels reach 4.5:1 on the segmented track and its hover`, () => { + // console-ui 1.3.0: Tabs are the soft-card segmented control — a sunken track; hover lays 4% ink over it. + const tokens = hslTokens(dark) assert.ok(tokens['zc-tab-inactive'], 'the token resolves') - for (const surface of ['background', 'card']) { - const fill = over(rgb(tokens.foreground), 0.06, rgb(tokens[surface])) + for (const [name, fill] of [['sunken', rgb(tokens['console-sunken'])], ['sunken + hover', over(rgb(tokens['console-ink']), 0.04, rgb(tokens['console-sunken']))]]) { const value = ratio(rgb(tokens['zc-tab-inactive']), fill) - assert.ok(value >= 4.5, `${surface}: ${value.toFixed(2)}`) + assert.ok(value >= 4.5, `${name}: ${value.toFixed(2)}`) } }) } diff --git a/tests/private-visual.test.mjs b/tests/private-visual.test.mjs index 386a5ec8..e1af962e 100644 --- a/tests/private-visual.test.mjs +++ b/tests/private-visual.test.mjs @@ -1,6 +1,6 @@ import test from 'node:test' import assert from 'node:assert/strict' -import {readFileSync} from 'node:fs' +import {existsSync,readFileSync} from 'node:fs' import {conversationAvatarStyle,conversationInitials} from '../console-ui/src/pages/endpoint-detail/conversation-avatar.ts' const root=new URL('../',import.meta.url) test('conversation avatars preserve initials and use theme paired gray values for all identities',()=>{ @@ -9,11 +9,8 @@ test('conversation avatars preserve initials and use theme paired gray values fo assert.equal(conversationInitials('凉菜'),'凉') assert.equal(conversationInitials('123456'),'56') }) -test('Agent private styles inherit paired neutral controls and keep readable caption size',()=>{ - const css=readFileSync(new URL('console-ui/src/agent-playground.css',root),'utf8') - assert.match(css,/--playground-accent: var\(--primary\)/) - assert.match(css,/--playground-accent-foreground: var\(--primary-foreground\)/) - assert.doesNotMatch(css,/color: white;|gradient\(/) - for(const match of css.matchAll(/font-size:\s*([\d.]+)rem/g)) assert.ok(Number(match[1])>=.75,`caption ${match[1]}rem is too small`) - for(const path of ['client/style.css']) assert.doesNotMatch(readFileSync(new URL(path,root),'utf8'),/hsl\((184|186) 42% 32%\)/) +test('Agent private styles are gone with the Sandbox playground copy; the Console stylesheet keeps no fixed teal',()=>{ + // adapter-sandbox >= 1.2.0 styles its own playground; the Console no longer carries agent-playground.css. + assert.equal(existsSync(new URL('console-ui/src/agent-playground.css',root)),false) + for(const path of ['client/style.css']) assert.doesNotMatch(readFileSync(new URL(path,root),'utf8'),/hsl\((184|186) 42% 32%\)|agent-playground/) }) diff --git a/tests/signal-color-scan.test.mjs b/tests/signal-color-scan.test.mjs index 8d432269..cfdf733b 100644 --- a/tests/signal-color-scan.test.mjs +++ b/tests/signal-color-scan.test.mjs @@ -40,13 +40,12 @@ const successUses = text => SUCCESS_PATTERNS.reduce((count, pattern) => count + * color is the content itself (ANSI, diff), or the token / variant definitions. */ const SUCCESS_ALLOWED = { - 'console-ui/src/theme-tokens.css': [1, '令牌定义(--status-success 别名)'], - 'console-ui/src/design-system.css': [4, 'Badge success 变体的样式定义(3);把组件库 MiniRingGauge 的 success 描边改成图表色的覆盖规则(1)'], + 'console-ui/src/design-system.css': [1, '把组件库 MiniRingGauge 的 success 描边改成图表色的覆盖规则(Badge success 变体的覆盖已删除,用组件库自己的 ok 绿)'], 'console-ui/src/components/ansi-text.css': [1, '日志里 ANSI 绿色(32 / 92)的原样还原,颜色就是内容'], 'console-ui/src/utils/ansi-log.mjs': [2, 'ANSI 颜色码到 tone 的映射表,同上'], 'console-ui/src/pages/HostSelfChangesPanel.tsx': [2, 'diff 新增行的语法着色,不是状态'], 'console-ui/src/components/toast.tsx': [1, 'toast.success():用户刚做完的操作的一次性反馈'], - 'console-ui/src/components/toast.css': [2, 'success toast 的图标(一次性反馈)'], + 'console-ui/src/components/toast.css': [1, 'success 通知的图标(一次性反馈)'], 'console-ui/src/components/status-surfaces.css': [6, 'ActionReceipt / ApplyFeedback:保存、应用之后的一次性回执'], 'console-ui/src/components/ApplyFeedback.tsx': [1, '重启后已生效的回执,同上'], 'console-ui/src/components/apply-outcome-model.mjs': [1, '回执语气(applied → success),同上'], @@ -181,7 +180,7 @@ test('received / sent stay apart from each other and from the warning color (ΔE const design = read('console-ui/src/design-system.css') const inbound = /--zc-chart-inbound: var\(--([\w-]+)\)/.exec(design)[1], outbound = /--zc-chart-outbound: var\(--([\w-]+)\)/.exec(design)[1] for (const [theme, dark] of [['light', false], ['dark', true]]) { - const values = tokenValues('zhin', dark) + const values = tokenValues(dark) const value = name => toLab(hslToRgb(...resolveToken(values, name).split(/\s+/).map(parseFloat))) const [a, b] = [value(inbound), value(outbound)] assert.ok(deltaE2000(a, b) >= 20, `${theme}: received / sent ΔE ${deltaE2000(a, b).toFixed(1)}`) diff --git a/tests/theme-controls.test.mjs b/tests/theme-controls.test.mjs index e20d154c..1ce55897 100644 --- a/tests/theme-controls.test.mjs +++ b/tests/theme-controls.test.mjs @@ -3,43 +3,53 @@ import assert from 'node:assert/strict' import { readFile } from 'node:fs/promises' import { createRequire } from 'node:module' import ts from 'typescript' -import { THEME_PALETTES } from '../console-ui/src/theme/index.ts' import { translate } from '../console-ui/src/i18n/locale.mjs' const require = createRequire(import.meta.url) -const source = await readFile(new URL('../console-ui/src/components/ThemeToggle.tsx', import.meta.url), 'utf8') +const source = await readFile(new URL('../console-ui/src/components/UserMenu.tsx', import.meta.url), 'utf8') const code = ts.transpileModule(source, { compilerOptions: { module: ts.ModuleKind.CommonJS, target: ts.ScriptTarget.ES2022, jsx: ts.JsxEmit.ReactJSX } }).outputText const nodes = node => node && typeof node === 'object' ? [node, ...[node.props?.children].flat(Infinity).flatMap(nodes)] : [] -function fixture() { - const calls = [], state = { theme: 'light', mode: 'system', palette: 'ocean' }, module = { exports: {} } +// Function components in the tree are rendered so their output can be searched too. +const expand = node => { + if (!node || typeof node !== 'object') return node + if (typeof node.type === 'function') return expand(node.type(node.props)) + const children = node.props?.children + return children === undefined ? node : { ...node, props: { ...node.props, children: [children].flat(Infinity).map(expand) } } +} +function fixture(locale = 'en') { + const calls = [], state = { theme: 'light', mode: 'system' }, module = { exports: {} } const mocks = { - react: { useId: () => 'appearance-test' }, + 'react-router-dom': { Link: 'Link' }, 'lucide-react': new Proxy({}, { get: (_target, key) => key }), - '../i18n': { useI18n: () => ({ t: (message, values) => translate('en', message, values) }) }, - '../theme': { THEME_PALETTES }, - '../hooks/useTheme': { useTheme: () => ({ ...state, setMode: mode => { calls.push(['mode', mode]); state.mode = mode; if (mode !== 'system') state.theme = mode }, setPalette: palette => { calls.push(['palette', palette]); state.palette = palette }, resetTheme: () => { calls.push(['reset']); state.mode = 'system'; state.palette = 'ocean' } }) }, - '@zhin.js/console-ui': { ...(Object.fromEntries(['Popover', 'PopoverTrigger', 'PopoverContent'].map(name => [name, name]))) }, + '../i18n': { useI18n: () => ({ locale, setLocale: value => calls.push(['locale', value]), t: (message, values) => translate(locale, message, values) }) }, + '../i18n/locale.mjs': { isLocale: value => value === 'en' || value === 'zh-CN' }, + '../hooks/useTheme': { useTheme: () => ({ ...state, setMode: mode => { calls.push(['mode', mode]); state.mode = mode } }) }, + '@zhin.js/console-ui': Object.fromEntries(['DropdownMenu', 'DropdownMenuContent', 'DropdownMenuItem', 'DropdownMenuLabel', 'DropdownMenuRadioGroup', 'DropdownMenuRadioItem', 'DropdownMenuSeparator', 'DropdownMenuTrigger', 'IconButton'].map(name => [name, name])), } - new Function('require', 'module', 'exports', code)(name => Object.hasOwn(mocks, name) ? mocks[name] : name.endsWith('.css') ? {} : require(name), module, module.exports) - return { calls, state, render: () => module.exports.ThemeToggle() } + new Function('require', 'module', 'exports', code)(name => Object.hasOwn(mocks, name) ? mocks[name] : require(name), module, module.exports) + return { calls, state, module: module.exports, render: () => expand(module.exports.UserMenu({ accountLabel: 'lc-cn', accountHref: '/account', onSignOut: () => calls.push(['signout']) })) } } -test('appearance panel exposes independent native radio groups with named palettes and modes', () => { - const f = fixture(), tree = f.render(), radios = nodes(tree).filter(node => node.type === 'input') - assert.equal(radios.length, 3 + THEME_PALETTES.length); assert.ok(radios.every(node => node.props.type === 'radio')) - assert.equal(THEME_PALETTES.filter(palette => palette.group === 'fresh').length, 4) - assert.equal(THEME_PALETTES.filter(palette => palette.group === 'calm').length, 4) - assert.deepEqual(radios.filter(node => node.props.checked).map(node => node.props.value), ['system', 'ocean']) - assert.equal(new Set(radios.map(node => node.props.name)).size, 2) - assert.equal(nodes(tree).find(node => node.props?.['aria-label'] === translate('en', '切换主题')).type, 'button') - assert.equal(nodes(tree).find(node => node.type === 'PopoverContent').props['aria-labelledby'], 'appearance-test-title') - for (const palette of THEME_PALETTES) assert.notEqual(translate('en', palette.label), palette.label) +test('display mode offers 浅色 / 深色 / 跟随系统 and nothing else: the soft-card palette is fixed', () => { + const f = fixture(), tree = f.render() + const group = nodes(tree).find(node => node.type === 'DropdownMenuRadioGroup' && node.props.value === 'system') + assert.ok(group, 'the mode group shows the current mode') + const items = nodes(group).filter(node => node.type === 'DropdownMenuRadioItem') + assert.deepEqual(items.map(node => node.props.value), ['light', 'dark', 'system']) + assert.deepEqual(items.map(node => nodes(node).filter(child => typeof child === 'string').join('') || node.props.children.filter(child => typeof child === 'string').join('')), ['Light', 'Dark', 'System']) + assert.doesNotMatch(source, /palette|Palette|ThemeToggle|外观与配色/) }) -test('selecting a palette does not replace System mode; switching mode retains palette; Reset restores both', () => { +test('choosing 跟随系统 sets mode "system" (the runtime then writes data-theme="system")', () => { const f = fixture() - nodes(f.render()).find(node => node.type === 'input' && node.props.value === 'plum').props.onChange() - assert.equal(f.state.mode, 'system'); assert.equal(f.state.palette, 'plum') - nodes(f.render()).find(node => node.type === 'input' && node.props.value === 'dark').props.onChange() - assert.equal(f.state.mode, 'dark'); assert.equal(f.state.palette, 'plum') - nodes(f.render()).find(node => node.type === 'button' && node.props.onClick).props.onClick() - assert.equal(f.state.mode, 'system'); assert.equal(f.state.palette, 'ocean') - assert.deepEqual(f.calls, [['palette', 'plum'], ['mode', 'dark'], ['reset']]) + nodes(f.render()).find(node => node.type === 'DropdownMenuRadioGroup' && node.props.value === 'system').props.onValueChange('dark') + nodes(f.render()).find(node => node.type === 'DropdownMenuRadioGroup' && node.props.value === 'dark').props.onValueChange('system') + assert.deepEqual(f.calls, [['mode', 'dark'], ['mode', 'system']]) +}) +test('the account button is a round icon button with the account initial and a labelled menu', () => { + const f = fixture(), tree = f.render() + const trigger = nodes(tree).find(node => node.type === 'IconButton') + assert.equal(trigger.props['aria-label'], translate('en', '用户菜单:{0}', ['lc-cn'])) + assert.equal(f.module.accountInitial('lc-cn'), 'L') + assert.equal(f.module.accountInitial(' 小林'), '小') + assert.equal(f.module.accountInitial(''), '?') + const signOut = nodes(tree).find(node => node.type === 'DropdownMenuItem' && node.props.variant === 'danger') + signOut.props.onSelect(); assert.deepEqual(f.calls, [['signout']]) }) diff --git a/tests/theme-runtime.test.mjs b/tests/theme-runtime.test.mjs index 4180ef3d..f0958ee2 100644 --- a/tests/theme-runtime.test.mjs +++ b/tests/theme-runtime.test.mjs @@ -2,87 +2,119 @@ import test from 'node:test' import assert from 'node:assert/strict' import { readFile } from 'node:fs/promises' import vm from 'node:vm' -import { applyTheme, initializeTheme, getThemePreferences, getThemeSnapshot, setThemePreferences, subscribeTheme, THEME_MODES, THEME_PALETTES, THEME_STORAGE_KEY, PALETTE_STORAGE_KEY } from '../console-ui/src/theme/index.ts' +import { applyTheme, initializeTheme, getThemePreferences, getThemeSnapshot, setThemePreferences, subscribeTheme, THEME_COLORS, THEME_MODES, THEME_STORAGE_KEY, LEGACY_PALETTE_STORAGE_KEY } from '../console-ui/src/theme/index.ts' function fixture({ mode, palette, dark = false, blocked = false } = {}) { const previous = { window: globalThis.window, document: globalThis.document } - const saved = new Map(), writes = [], classes = new Set(), properties = new Map([['--primary', '154 54% 40%'], ['--background', '150 30% 97%'], ['--host-extension-color', 'keep']]) + const saved = new Map(), writes = [], removed = [], classes = new Set(), properties = new Map([['--primary', '154 54% 40%'], ['--background', '150 30% 97%'], ['--host-extension-color', 'keep']]) if (mode !== undefined) saved.set(THEME_STORAGE_KEY, mode) - if (palette !== undefined) saved.set(PALETTE_STORAGE_KEY, palette) - const storage = { getItem(key) { if (blocked) throw Error('blocked'); return saved.get(key) ?? null }, setItem(key, value) { if (blocked) throw Error('blocked'); writes.push([key, value]); saved.set(key, value) } } + if (palette !== undefined) saved.set(LEGACY_PALETTE_STORAGE_KEY, palette) + const storage = { + getItem(key) { if (blocked) throw Error('blocked'); return saved.get(key) ?? null }, + setItem(key, value) { if (blocked) throw Error('blocked'); writes.push([key, value]); saved.set(key, value) }, + removeItem(key) { if (blocked) throw Error('blocked'); removed.push(key); saved.delete(key) }, + } const media = new EventTarget(); media.matches = dark const window = new EventTarget(); window.localStorage = storage; window.matchMedia = () => media const root = { dataset: {}, classList: { remove: (...items) => items.forEach(item => classes.delete(item)), add: item => classes.add(item) }, style: { removeProperty: key => properties.delete(key), setProperty() { throw Error('CSS owns palette values') } } } const meta = { value: '', setAttribute(_key, value) { this.value = value } } globalThis.window = window; globalThis.document = { documentElement: root, querySelector: () => meta } return { - root, classes, properties, writes, saved, storage, media, window, meta, + root, classes, properties, writes, removed, saved, storage, media, window, meta, system(next) { media.matches = next; media.dispatchEvent(new Event('change')) }, storageEvent(key) { const event = new Event('storage'); Object.defineProperties(event, { key: { value: key }, storageArea: { value: storage } }); window.dispatchEvent(event) }, close() { globalThis.window = previous.window; globalThis.document = previous.document }, } } -test('first load follows system without freezing its resolved mode into storage', () => { +test('first load follows the system with data-theme="system" and does not freeze its resolved mode into storage', () => { const f = fixture({ dark: true }) try { assert.equal(initializeTheme(), 'dark') - assert.deepEqual(getThemePreferences(), { mode: 'system', palette: 'zhin' }) + assert.deepEqual(getThemePreferences(), { mode: 'system' }) + assert.equal(f.root.dataset.theme, 'system', 'console-ui 1.3.0 follows the system only with data-theme="system"') + assert.deepEqual([...f.classes], ['dark'], 'the resolved class stays for the Console’s own .dark rules') assert.deepEqual(f.writes, []) f.system(false); assert.deepEqual([...f.classes], ['light']) - assert.equal(getThemeSnapshot(), 'system:zhin:light') + assert.equal(getThemeSnapshot(), 'system:light') } finally { f.close() } }) -test('legacy explicit light/dark preferences and saved palettes survive initialization', () => { - for (const mode of ['light', 'dark']) for (const palette of THEME_PALETTES) { - const f = fixture({ mode, palette: palette.id, dark: mode === 'light' }) - try { initializeTheme(); assert.deepEqual(getThemePreferences(), { mode, palette: palette.id }); assert.deepEqual([...f.classes], [mode]); assert.equal(f.writes.length, 0) } finally { f.close() } +test('explicit light / dark are a class only: no data-theme, so the library’s system rule never applies', () => { + for (const mode of ['light', 'dark']) { + const f = fixture({ mode, dark: mode === 'light' }) + try { + initializeTheme() + assert.deepEqual(getThemePreferences(), { mode }); assert.deepEqual([...f.classes], [mode]); assert.equal(f.writes.length, 0) + assert.equal('theme' in f.root.dataset, false) + } finally { f.close() } } }) -test('mode and palette are independent, explicit mode ignores OS changes, and System resumes live updates', () => { +test('the palette is gone: a saved palette is removed once and never written to the page', () => { + const f = fixture({ mode: 'dark', palette: 'plum' }) + try { + f.root.dataset.palette = 'plum' + initializeTheme() + assert.deepEqual(f.removed, [LEGACY_PALETTE_STORAGE_KEY]) + assert.equal('palette' in f.root.dataset, false) + assert.equal(getThemeSnapshot(), 'dark:dark') + assert.equal(f.meta.value, THEME_COLORS.dark) + } finally { f.close() } +}) + +test('theme-color is the soft-card page background: #F7F5F3 light, #121010 dark', () => { + assert.deepEqual(THEME_COLORS, { light: '#F7F5F3', dark: '#121010' }) + const f = fixture() + try { + initializeTheme(); assert.equal(f.meta.value, '#F7F5F3') + applyTheme('dark'); assert.equal(f.meta.value, '#121010') + } finally { f.close() } +}) + +test('explicit mode ignores OS changes, and System resumes live updates', () => { const f = fixture() try { - initializeTheme(); setThemePreferences({ palette: 'plum' }); applyTheme('dark') - assert.equal(getThemeSnapshot(), 'dark:plum:dark') - f.system(false); assert.equal(getThemeSnapshot(), 'dark:plum:dark') + initializeTheme(); applyTheme('dark') + assert.equal(getThemeSnapshot(), 'dark:dark') + f.system(false); assert.equal(getThemeSnapshot(), 'dark:dark') setThemePreferences({ mode: 'system' }); f.system(true) - assert.equal(getThemeSnapshot(), 'system:plum:dark') - assert.equal(f.saved.get(THEME_STORAGE_KEY), 'system'); assert.equal(f.saved.get(PALETTE_STORAGE_KEY), 'plum') - setThemePreferences({ mode: undefined, palette: undefined }); assert.equal(getThemeSnapshot(), 'system:plum:dark') - assert.deepEqual(f.writes, [[PALETTE_STORAGE_KEY, 'plum'], [THEME_STORAGE_KEY, 'dark'], [THEME_STORAGE_KEY, 'system']]) + assert.equal(getThemeSnapshot(), 'system:dark'); assert.equal(f.root.dataset.theme, 'system') + assert.equal(f.saved.get(THEME_STORAGE_KEY), 'system') + setThemePreferences({ mode: undefined }); assert.equal(getThemeSnapshot(), 'system:dark') + assert.deepEqual(f.writes, [[THEME_STORAGE_KEY, 'dark'], [THEME_STORAGE_KEY, 'system']]) } finally { f.close() } }) test('invalid and blocked storage defaults safely; blocked writes preserve session-only choices', () => { - for (const options of [{ mode: 'invalid', palette: 'url(attack)' }, { blocked: true, dark: true }]) { + for (const options of [{ mode: 'invalid' }, { blocked: true, dark: true }]) { const f = fixture(options) - try { initializeTheme(); assert.deepEqual(getThemePreferences(), { mode: 'system', palette: 'zhin' }); setThemePreferences({ mode: 'dark', palette: 'forest' }); assert.equal(getThemeSnapshot(), 'dark:forest:dark') } finally { f.close() } + try { initializeTheme(); assert.deepEqual(getThemePreferences(), { mode: 'system' }); setThemePreferences({ mode: 'dark' }); assert.equal(getThemeSnapshot(), 'dark:dark') } finally { f.close() } } const f = fixture() - try { initializeTheme(); assert.throws(() => setThemePreferences({ mode: 'auto' }), /Invalid/); assert.throws(() => setThemePreferences({ palette: 'unknown' }), /Invalid/) } finally { f.close() } + try { initializeTheme(); assert.throws(() => setThemePreferences({ mode: 'auto' }), /Invalid/) } finally { f.close() } }) -test('browser tabs synchronize preferences, cleared storage resets defaults, unrelated keys do nothing', () => { +test('browser tabs synchronize the mode, cleared storage resets the default, unrelated keys do nothing', () => { const f = fixture(); let updates = 0 try { initializeTheme(); const stop = subscribeTheme(() => updates++) - f.saved.set(THEME_STORAGE_KEY, 'dark'); f.saved.set(PALETTE_STORAGE_KEY, 'graphite'); f.storageEvent(PALETTE_STORAGE_KEY) - assert.equal(getThemeSnapshot(), 'dark:graphite:dark'); assert.equal(updates, 1); assert.equal(f.writes.length, 0) + f.saved.set(THEME_STORAGE_KEY, 'dark'); f.storageEvent(THEME_STORAGE_KEY) + assert.equal(getThemeSnapshot(), 'dark:dark'); assert.equal(updates, 1); assert.equal(f.writes.length, 0) f.storageEvent('zhin_api_token'); assert.equal(updates, 1) - f.saved.clear(); f.storageEvent(null); assert.equal(getThemeSnapshot(), 'system:zhin:light') - stop(); setThemePreferences({ palette: 'plum' }); assert.equal(updates, 2) + f.storageEvent(LEGACY_PALETTE_STORAGE_KEY); assert.equal(updates, 1, 'the old palette key changes nothing') + f.saved.clear(); f.storageEvent(null); assert.equal(getThemeSnapshot(), 'system:light') + stop(); setThemePreferences({ mode: 'light' }); assert.equal(updates, 2) } finally { f.close() } }) -test('reinitialization replaces runtime listeners, and every UI subscriber sees mode/palette changes', () => { +test('reinitialization replaces runtime listeners, and every UI subscriber sees mode changes', () => { const f = fixture(); let first = 0, second = 0 try { initializeTheme(); initializeTheme() const stopFirst = subscribeTheme(() => first++), stopSecond = subscribeTheme(() => second++) f.system(true); assert.equal(first, 1); assert.equal(second, 1) - stopFirst(); setThemePreferences({ palette: 'forest' }); assert.equal(first, 1); assert.equal(second, 2) + stopFirst(); setThemePreferences({ mode: 'dark' }); assert.equal(first, 1); assert.equal(second, 2) stopSecond() } finally { f.close() } }) @@ -98,18 +130,21 @@ test('legacy inline overrides are removed without writing palette variables or d } finally { f.close() } }) -test('early HTML bootstrap and runtime select the same palette/mode without persisting defaults', async () => { +test('early HTML bootstrap and runtime select the same mode without persisting defaults', async () => { const html = await readFile(new URL('../client/index.html', import.meta.url), 'utf8') const script = /