Repository navigation
Conversation
…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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SLUGBCKGhb7KCyhqynYFod
…TabBar Following the Main design: the top bar sits in the page flow over the Aurora of a first-level page. The current section is a NavPill with its name, the others round NavIcons opening the section's first page; the section's pages are Chips under the bar (功能 keeps its 核心 / 插件页面 groups). Phones get the floating TabBar with four sections and 「更多」, which opens the drawer with every page. Route permissions, plugin page placement, breadcrumbs below menu pages and the command center are unchanged. No backdrop-filter, content max 1280 from the library's data width. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SLUGBCKGhb7KCyhqynYFod
Lay the overview out like the Main design: one HeroCard with the instance state and its numbers, 需处理 beside it, the stat cards, the chat accounts as a list group (endpoint.list of the object tree), the message chart and the latest conversations. Data, polling and actions are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SLUGBCKGhb7KCyhqynYFod
…login and chat Following the page designs, layout and components only (data and actions unchanged): - 账号与会话: waiting logins as a hero-2 card with one primary 去登录; account filter as a Segmented; accounts listed before adapters. - AI 与模型: hero-2 with the default chat model and its fallback count. - 插件: one primary 安装插件, a warn Banner for plugins that need a look, the health filter and grouping as Segmented controls with counts (stat cards gone). - 运维 · 实例: four status cards and the lifecycle actions as white / danger-text buttons above the details. - 访问控制: the four pages switch with a Segmented; users get an initial tile and a status dot; 新建用户 is the page's primary. - 登录: one centered 440 column over the Aurora; the product sketch is gone. - 账号聊天: CChat bubbles (white + shadow-sm in, sunken out, 18 / 6 corners), selected rows with the primary bar, round avatars. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SLUGBCKGhb7KCyhqynYFod
…themes before measuring - Tailwind radii follow the soft-card r-1 … r-6; off-scale spacing keys (gap-1.5, py-0.5, pl-9, …) move to the 4px grid. - Everyday buttons use `secondary` (sunken) instead of `outline` (hairline ring); pressed toggles keep outline. Marketplace categories are Chips. - The top bar and the content share one frame: page padding outside, the 1280 content column inside. Brand link and capability numbers meet the touch-target and weight scales; no shadow on static cards or tab triggers. - scripts/layout-audit.mjs waits for the colour transitions after switching the theme: measured mid-transition, rows kept their light background under dark text and were reported as contrast failures. - README: describe the soft-card shell (NavPill / NavIcon, Chips, TabBar). Layout audit (12 pages × 4 widths × 2 themes): 2359 → 128 violations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SLUGBCKGhb7KCyhqynYFod
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SLUGBCKGhb7KCyhqynYFod
Member
Author
|
CI 的 validate 失败在 原因是本 PR 把依赖改成了
Generated by Claude Code |
…t errors - Phones: --zc-tabbar-reserve moves to html:has(.console-app-shell) under (width < 48rem) and equals the TabBar's real extent (4.25rem + its floating offset), so the notice stack, the library Toaster and html's scroll-padding read it; the Toaster gets the same bottom offset. - NavPill / TabBar: aria-current="page" only when the section link opens the current path, "true" on the section's other pages (styled the same in the tab bar). - Overview 聊天账号: an endpoint.list error shows StatusState with 重试 instead of a skeleton; 待登录 reuses the object pages' waitingLogin (loginStep and LoginAssist tasks). Unit tests for the overview model. - 访问控制 pages are Chip links (no Segmented whose arrows switch routes). - Restore the open-Host risk and the unreachable-Host note (zh / en); drop the removed console-surface-inset class and the dead topnav-menu rules, style the catalog count, add aria-keyshortcuts, settle animations in the layout audit instead of a fixed wait, and pluralize the 次 unit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SLUGBCKGhb7KCyhqynYFod
… feat/soft-cards-shell # Conflicts: # console-ui/src/pages/TaskOverview.tsx # tests/workspace-navigation.test.mjs
… Agent-off as 未启用 - Overview: the online-account ring names its digit count; two digits take the xs size and 「100%」 5/6 of it with proportional digits, so the label stays inside the stroke (it was ~36px in a ~30px inside before). - ConfigurationLiveStatus (运维 → 配置文件, 功能 → 群聊插话): a fully applied saved file says one sentence, 「已保存的配置都已生效。」; the two lead-in lines are gone and only a result from an older file adds which file it belongs to. - featureUnavailableState(): reads the Host's 503 「Agent Runtime 尚未就绪」 / 「未安装 @zhin.js/agent」 texts (and the disabled-feature reply) as a feature that is off. Workroom shows 「Workroom 未启用」 with a link to AI 与模型; 聊天记录 says the recent list needs the AI agent instead of 「最近会话未能读取」. Real permission, network and gateway failures keep their read-failure copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SLUGBCKGhb7KCyhqynYFod
The trace archive answers 503 「未安装 @zhin.js/agent,无法读取 trace」 when the instance has no Agent. The records panel now reads that through featureUnavailableState() and shows 「Agent 会话记录未启用」 with a link to AI 与模型; permission, gateway, other and network failures keep the failed-read state (zhinjs/zhin#1250 disabled-feature-as-read-failure). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SLUGBCKGhb7KCyhqynYFod
… feat/soft-cards-shell # Conflicts: # tests/conversation-page.test.mjs
… feat/soft-cards-shell # Conflicts: # console-ui/src/pages/access/tokens.tsx
There was a problem hiding this comment.
🟡 Changes recommended
The banner treats incomplete onboarding as proof that the bot is offline, potentially showing an incorrect status even when a configured bot is sending and receiving messages normally.
1 open issue
引导未完成时误报机器人尚未上线 · New
What changed in this PR
本 PR 将 Console 接入 @zhin.js/console-ui 1.3.0 的柔光卡片设计,统一页面组件、主题令牌与交互样式,减少本地样式覆盖。
Changes:
- 更新组件依赖、主题初始化、字体与圆角映射,并接入组件库 Toaster。
- 调整登录、模型、账号、运维等页面的布局、按钮和状态展示,移除旧配色面板及 Sandbox 样式契约。
- 补充英文文案和回归测试;布局审计改为有时限地等待有限动画结束后测量。
| File | Description |
|---|---|
tests/workrooms-participants-guard.test.mjs |
补齐 Workroom 测试依赖。 |
tests/user-menu-appearance.test.mjs |
验证显示模式移入账号菜单。 |
tests/signal-color-scan.test.mjs |
更新信号色规则和主题读取。 |
tests/private-visual.test.mjs |
验证旧 Sandbox 样式已移除。 |
tests/object-tab-contrast.test.mjs |
按新分段控件底色验证对比度。 |
tests/light-contrast-crumb-readout.test.mjs |
改用单套配色的主题测试。 |
tests/information-display-polish.test.mjs |
验证采用库内卡片样式。 |
tests/i18n-en-plurals.test.mjs |
增加重启次数的复数测试。 |
tests/helpers/token-cascade.mjs |
更新令牌解析并添加对比度计算。 |
tests/feature-switch-touch-target.test.mjs |
验证使用组件库触控尺寸。 |
tests/false-empty-states.test.mjs |
区分 Agent 未启用与读取失败。 |
tests/deployment-feedback-1250.test.mjs |
更新内容宽度与分区导航断言。 |
tests/console-ui-1-1.test.mjs |
更新概览按钮样式断言。 |
tests/console-small-1250.test.mjs |
验证布局审计等待动画结束。 |
tests/config-live-status.test.mjs |
验证精简后的配置生效文案。 |
tests/ambient-mode-safety.test.mjs |
更新深浅主题对比度测试。 |
tests/adapter-connection-management.test.mjs |
更新适配器按钮样式断言。 |
scripts/layout-audit.mjs |
切换主题后等待有限动画完成。 |
package.json |
提升 client 与 console-ui 依赖。 |
console-ui/src/utils/feature-disabled.mjs |
识别 Agent 不可用的错误回复。 |
console-ui/src/utils/feature-disabled.d.mts |
声明功能不可用状态接口。 |
console-ui/src/theme/appearance.css |
删除旧外观面板样式。 |
console-ui/src/settings.css |
使用统一分区间距。 |
console-ui/src/scope/ScopePicker.tsx |
更新范围切换按钮。 |
console-ui/src/scope/object-page.css |
更新头像和选中状态令牌。 |
console-ui/src/scope/ChatRolesPanel.tsx |
统一角色操作按钮与间距。 |
console-ui/src/scope/ChatRoleImportsSection.tsx |
更新导入列表刷新按钮。 |
console-ui/src/scope/ChatIdentityPanels.tsx |
统一身份管理按钮样式。 |
console-ui/src/scope/chat-roles.css |
更新选择和高亮样式。 |
console-ui/src/remote-entry-style-contract.ts |
删除旧 Playground 类名契约。 |
console-ui/src/pages/WelcomeFlowContext.tsx |
更新欢迎流程导航按钮。 |
console-ui/src/pages/token-usage.tsx |
更新用量页操作按钮。 |
console-ui/src/pages/token-usage-report.tsx |
更新复制与会话筛选按钮。 |
console-ui/src/pages/token-usage-charts.tsx |
统一图例与读数间距。 |
console-ui/src/pages/TaskOverview.tsx |
更新任务概览按钮。 |
console-ui/src/pages/skills-assistant.tsx |
更新技能助手操作按钮。 |
console-ui/src/pages/setup/setup-wizard.tsx |
更新连接测试按钮。 |
console-ui/src/pages/scope/scope-pages.css |
添加待登录主卡片样式。 |
console-ui/src/pages/scope/scope-overview-model.mjs |
导出并增强待登录判断。 |
console-ui/src/pages/scope/scope-overview-model.d.mts |
声明待登录判断接口。 |
console-ui/src/pages/scope/login-tasks.tsx |
支持按需启用账号轮询。 |
console-ui/src/pages/scope/login-flow.css |
更新验证码与步骤标签样式。 |
console-ui/src/pages/scope/login-flow-card.tsx |
更新登录流程按钮。 |
console-ui/src/pages/scope/login-challenge.tsx |
更新验证链接按钮。 |
console-ui/src/pages/scope/endpoint-access.tsx |
更新账号接入操作按钮。 |
console-ui/src/pages/scope/conversation-page.tsx |
更新会话导航按钮。 |
console-ui/src/pages/scope/configured-account-actions.tsx |
更新配置差异操作按钮。 |
console-ui/src/pages/scope/adapter-page.tsx |
更新适配器工具栏按钮。 |
console-ui/src/pages/scope/adapter-accounts.tsx |
更新账号刷新与取消按钮。 |
console-ui/src/pages/ScheduleExecutions.tsx |
更新执行记录操作按钮。 |
console-ui/src/pages/plugins.css |
适配分段筛选与计数样式。 |
console-ui/src/pages/PluginManagementSummary.tsx |
更新插件摘要导航按钮。 |
console-ui/src/pages/PersonalSessionModelPicker.tsx |
更新模型刷新按钮。 |
console-ui/src/pages/ops/version-panel.tsx |
更新版本操作按钮与间距。 |
console-ui/src/pages/ops/terminal.tsx |
更新终端刷新和重连按钮。 |
console-ui/src/pages/ops/self-check.tsx |
更新连接自检按钮。 |
console-ui/src/pages/ops/plugin-declare.tsx |
更新声明插件的取消按钮。 |
console-ui/src/pages/onboarding/onboarding.css |
移除旧横幅布局覆盖。 |
console-ui/src/pages/onboarding/index.tsx |
更新引导导航按钮。 |
console-ui/src/pages/not-found.tsx |
更新快速搜索按钮。 |
console-ui/src/pages/login.tsx |
添加 Aurora 并移除静态预览。 |
console-ui/src/pages/login-preview.tsx |
删除旧登录页产品预览。 |
console-ui/src/pages/introspection/McpServerDetail.tsx |
更新 MCP 操作按钮与间距。 |
console-ui/src/pages/introspection/JsonViewer.tsx |
更新 JSON 复制按钮。 |
console-ui/src/pages/introspection/index.tsx |
统一能力页按钮与间距。 |
console-ui/src/pages/insights/ScopeFilterBar.tsx |
更新清除范围按钮。 |
console-ui/src/pages/inference/Workspace.tsx |
添加默认聊天模型主卡片。 |
console-ui/src/pages/inference/SupportInfo.tsx |
调整实验标签间距。 |
console-ui/src/pages/inference/Purposes.tsx |
统一用途操作按钮与间距。 |
console-ui/src/pages/inference/Profiles.tsx |
更新模型标签和操作按钮。 |
console-ui/src/pages/inference/PersonalSessions.tsx |
更新个人会话操作按钮。 |
console-ui/src/pages/inference/Accounts.tsx |
统一模型账号操作按钮。 |
console-ui/src/pages/HostToolApprovalsPanel.tsx |
更新工具审批按钮。 |
console-ui/src/pages/HostSelfChangesPanel.tsx |
更新变更审批按钮。 |
console-ui/src/pages/files/tree-node.tsx |
统一文件树节点间距。 |
console-ui/src/pages/files/files-page.tsx |
更新文件页按钮与搜索间距。 |
console-ui/src/pages/files/file-editor.tsx |
更新重试与撤销按钮。 |
console-ui/src/pages/features/global-features-panel.tsx |
更新全局功能按钮与间距。 |
console-ui/src/pages/features/global-config.tsx |
更新配置导航与重试按钮。 |
console-ui/src/pages/features/global-config-readonly.tsx |
更新只读配置重试按钮。 |
console-ui/src/pages/features/feature-matrix.tsx |
更新矩阵按钮与标签间距。 |
console-ui/src/pages/features/feature-level-panel.tsx |
更新分层功能操作按钮。 |
console-ui/src/pages/features/conversation-list.tsx |
更新会话列表按钮与间距。 |
console-ui/src/pages/endpoint-detail/side-event-actions.tsx |
更新请求与通知操作按钮。 |
console-ui/src/pages/endpoint-detail/RenderingDiagnostics.tsx |
调整诊断信息内边距。 |
console-ui/src/pages/endpoint-detail/MessageDiagnostics.tsx |
更新消息诊断刷新按钮。 |
console-ui/src/pages/endpoint-detail/index.tsx |
统一聊天工作区按钮与间距。 |
console-ui/src/pages/endpoint-detail/ConversationSidebar.tsx |
调整会话搜索框内边距。 |
console-ui/src/pages/endpoint-detail/ComposerAttachmentMenu.tsx |
更新附件菜单触发按钮。 |
console-ui/src/pages/database/write-check.tsx |
更新写入核对按钮。 |
console-ui/src/pages/database/sql-console.tsx |
统一 SQL 历史和结果间距。 |
console-ui/src/pages/database/kv-bucket-view.tsx |
更新键值操作按钮与间距。 |
console-ui/src/pages/database/ddl-outcome.tsx |
更新数据库变更核对按钮。 |
console-ui/src/pages/dashboard-overview-model.mjs |
添加账号状态和最近会话模型。 |
console-ui/src/pages/dashboard-overview-model.d.mts |
声明概览模型类型。 |
console-ui/src/pages/config.tsx |
统一配置页操作按钮。 |
console-ui/src/pages/command-permissions.tsx |
更新权限说明导航与分页按钮。 |
console-ui/src/pages/chat-members/index.tsx |
更新成员管理操作按钮。 |
console-ui/src/pages/bot-replay.tsx |
更新回放筛选与导出按钮。 |
console-ui/src/pages/attention/index.tsx |
更新待办刷新与重试按钮。 |
console-ui/src/pages/attention/AttentionSummaryList.tsx |
更新待办摘要操作按钮。 |
console-ui/src/pages/attention/AttentionItemRow.tsx |
更新待办项操作按钮。 |
console-ui/src/pages/attention/AttentionBadge.tsx |
将铃铛尺寸交由样式控制。 |
console-ui/src/pages/attention/attention.css |
更新顶栏铃铛按钮外观。 |
console-ui/src/pages/AmbientGroupPicker.tsx |
统一群选择器按钮与间距。 |
console-ui/src/pages/agent-workbench.tsx |
更新 Agent 工作台按钮与间距。 |
console-ui/src/pages/admin-pages.css |
添加运维状态卡片网格。 |
console-ui/src/pages/account/index.tsx |
更新账号表单间距与按钮。 |
console-ui/src/pages/access/tokens.tsx |
统一令牌管理按钮。 |
console-ui/src/pages/access/roles.tsx |
统一角色管理按钮。 |
console-ui/src/pages/access/audit.tsx |
更新审计操作按钮与间距。 |
console-ui/src/navigation-sections.d.mts |
声明分区导航与 TabBar 模型。 |
console-ui/src/layouts/workspace-navigation.css |
移除旧顶栏菜单样式。 |
console-ui/src/i18n/messages.en.soft-cards.mjs |
添加柔光卡片相关英文文案。 |
console-ui/src/i18n/messages.en.scope.mjs |
删除旧待登录说明译文。 |
console-ui/src/i18n/messages.en.plugins.mjs |
删除旧插件筛选说明译文。 |
console-ui/src/i18n/messages.en.ops.mjs |
删除旧运维标签译文。 |
console-ui/src/i18n/messages.en.insights.mjs |
整理概览相关译文。 |
console-ui/src/i18n/messages.en.host.mjs |
补充 Agent 未启用状态译文。 |
console-ui/src/i18n/messages.en.auth.mjs |
删除旧引导横幅译文。 |
console-ui/src/i18n/messages.en.admin.mjs |
删除旧实例 ID 译文。 |
console-ui/src/i18n/console-ui-locale.tsx |
提供 Stepper 和 Toast 文案。 |
console-ui/src/hooks/useTheme.ts |
移除配色状态与操作接口。 |
console-ui/src/hooks/useIsMobile.ts |
将紧凑导航断点改为 48rem。 |
console-ui/src/components/toast.tsx |
重命名通知类并采用退出动效令牌。 |
console-ui/src/components/ThemeToggle.tsx |
删除旧主题配色弹出面板。 |
console-ui/src/components/StatusState.tsx |
统一状态提示操作按钮。 |
console-ui/src/components/PluginConfigForm/index.tsx |
更新配置表单重试按钮。 |
console-ui/src/components/PluginConfigForm/ConversationTargetEditor.tsx |
更新账号读取按钮。 |
console-ui/src/components/PluginConfigForm/ConfigurationLiveStatus.tsx |
精简配置生效说明。 |
console-ui/src/components/PluginConfigForm/config-live-status.mjs |
统一已生效状态摘要。 |
console-ui/src/components/onboarding-banner.tsx |
改用组件库 Banner 与 IconButton。 |
console-ui/src/components/log-panel/log-panel.css |
更新日志选中与激活状态令牌。 |
console-ui/src/components/LanguageSelect.tsx |
统一语言选择器内边距。 |
console-ui/src/components/InstanceUnavailableBanner.tsx |
更新实例不可用操作按钮。 |
console-ui/src/components/ConsoleCommandCenter.tsx |
改为图标入口并声明键盘快捷键。 |
console-ui/src/components/ConnectionIndicator.tsx |
更新连接重试按钮。 |
console-ui/src/components/ApplyFeedback.tsx |
更新重启反馈操作按钮。 |
console-ui/src/components/AgentSessionPicker.tsx |
统一会话身份信息间距。 |
console-ui/src/components/ActionReceipt.tsx |
统一操作回执按钮。 |
client/tailwind.config.js |
映射新颜色角色与圆角令牌。 |
client/style.css |
对齐字体尺度并移除旧 Playground 导入。 |
client/main.tsx |
在应用根部接入组件库 Toaster。 |
client/index.html |
更新首屏主题初始化与浏览器主题色。 |
Review effort: Balanced
…offline Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SLUGBCKGhb7KCyhqynYFod
… feat/soft-cards-shell # Conflicts: # console-ui/src/pages/access/roles.tsx
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

概要
按柔光卡片设计稿改 Console,组件和令牌统一用
@zhin.js/console-ui1.3.0(zhinjs/zhin#1439 已合并)。依赖: 要等 zhin 发布 console-ui 1.3.0 和 client 1.5.2 之后,CI 才能通过。package.json 已写成
~1.3.0/~1.5.2,lockfile 留到发版后再刷新。改动
[data-palette]、.dark颜色覆盖,以及与组件库同名的--console-*。data-theme="system"。useToast()。Console 自己的通知改名为.console-notice,避免和组件库冲突。与设计稿的出入
验证
pnpm test:1911 项全部通过。发版后
pnpm install,刷新 lockfile 并提交。Generated by Claude Code