Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

feat(ui-design): Settings baseline frames for service, platforms, replies, diagnostics, logs, dependencies, direct messages, and groups (#3139)

Call Whitec96ac78c04ed
diff --git a/ui/design/frames/agents/fixtures.ts b/ui/design/frames/agents/fixtures.ts
new file mode 100644
index 000000000..da42a8d98
--- /dev/null
+++ b/ui/design/frames/agents/fixtures.ts
@@ -0,0 +1,40 @@
+// Vibe Agents as `GET /api/agents` and the settings' agent catalog serve them, shared by the
+// Agents page and every surface that picks an Agent (routing panels, the new session sheet).
+import type { VibeAgentBrief } from '@/context/ApiContext';
+
+import { DESIGN_NOW } from '../../shell/clock';
+
+const at = (minutesAgo: number) => new Date(DESIGN_NOW - minutesAgo * 60_000).toISOString();
+
+let nextId = 0;
+export const agentBrief = (name: string, backend: string, extra: Partial<VibeAgentBrief> = {}): VibeAgentBrief => ({
+ id: `agt_${(nextId += 1).toString(16).padStart(6, '0')}`,
+ name,
+ display_name: name,
+ description: null,
+ backend,
+ model: null,
+ reasoning_effort: null,
+ enabled: true,
+ archived: false,
+ archived_at: null,
+ source: 'user',
+ updated_at: at(60 * 24),
+ bot: null,
+ ...extra,
+});
+
+/** The built-in Agents a fresh install has, plus the user's own. */
+export const demoAgents: VibeAgentBrief[] = [
+ agentBrief('vibey', 'vibey', { source: 'builtin', description: 'Vibey, the official agent of Avibe.' }),
+ agentBrief('main', 'vibey', { source: 'builtin', description: "The user's main Bot and first point of contact.", bot: { handle: 'main', display_name: '', builtin: true } }),
+ agentBrief('claude', 'claude', { source: 'builtin', model: 'claude-opus-5-5', description: 'Default Agent for the Claude Code backend.' }),
+ agentBrief('codex', 'codex', { source: 'builtin', model: 'gpt-5.6-sol', reasoning_effort: 'high', description: 'Default Agent for the Codex backend.' }),
+ agentBrief('opencode', 'opencode', { source: 'builtin', model: 'openai/gpt-5.6-sol', description: 'Default Agent for the OpenCode backend.' }),
+ agentBrief('reviewer', 'claude', { model: 'claude-opus-5-5', reasoning_effort: 'high', description: '代码评审:只看 diff,先列缺陷再给建议' }),
+ agentBrief('docs-writer', 'claude', { model: 'claude-sonnet-5-5', description: '中英文档写作与校对' }),
+ agentBrief('slack-triage', 'opencode', { model: 'openai/gpt-5.6-sol', reasoning_effort: 'low', description: '把 Slack 消息归类、找负责人、转成 PR' }),
+];
+
+/** `{ agents, default_agent_name }`, as `/api/agents` and `/api/settings` (`agent_catalog`) answer. */
+export const agentCatalog = { ok: true, agents: demoAgents, default_agent_name: 'vibey' };
diff --git a/ui/design/frames/settings/config.json b/ui/design/frames/settings/config.json
new file mode 100644
index 000000000..2c5f9baea
--- /dev/null
+++ b/ui/design/frames/settings/config.json
@@ -0,0 +1,470 @@
+{
+ "platform": "slack",
+ "platforms": {
+ "enabled": [
+ "slack",
+ "discord",
+ "telegram"
+ ],
+ "primary": "slack"
+ },
+ "platform_catalog": [
+ {
+ "id": "slack",
+ "config_key": "slack",
+ "title_key": "platform.slack.title",
+ "description_key": "platform.slack.desc",
+ "credential_fields": [
+ "bot_token"
+ ],
+ "capabilities": {
+ "supports_channels": true,
+ "supports_threads": true,
+ "supports_buttons": true,
+ "supports_quick_replies": true,
+ "supports_message_editing": true,
+ "supports_message_deletion": true,
+ "markdown_upload_returns_message_id": false,
+ "quick_reply_single_column": false,
+ "quick_reply_max_per_row": null,
+ "supports_typing_indicator": true,
+ "typing_indicator_requires_clear": false,
+ "typing_indicator_best_effort": true,
+ "supports_reaction_indicator": true,
+ "supports_message_indicator": true,
+ "supports_message_indicator_delete": false,
+ "preferred_processing_indicator": "typing",
+ "force_preferred_processing_indicator": false,
+ "supports_status_bubble": true,
+ "supports_toolcall_delivery": true
+ },
+ "kind": "im"
+ },
+ {
+ "id": "discord",
+ "config_key": "discord",
+ "title_key": "platform.discord.title",
+ "description_key": "platform.discord.desc",
+ "credential_fields": [
+ "bot_token"
+ ],
+ "capabilities": {
+ "supports_channels": true,
+ "supports_threads": true,
+ "supports_buttons": true,
+ "supports_quick_replies": true,
+ "supports_message_editing": true,
+ "supports_message_deletion": true,
+ "markdown_upload_returns_message_id": true,
+ "quick_reply_single_column": false,
+ "quick_reply_max_per_row": null,
+ "supports_typing_indicator": true,
+ "typing_indicator_requires_clear": false,
+ "typing_indicator_best_effort": false,
+ "supports_reaction_indicator": true,
+ "supports_message_indicator": true,
+ "supports_message_indicator_delete": false,
+ "preferred_processing_indicator": "typing",
+ "force_preferred_processing_indicator": false,
+ "supports_status_bubble": true,
+ "supports_toolcall_delivery": true
+ },
+ "kind": "im"
+ },
+ {
+ "id": "telegram",
+ "config_key": "telegram",
+ "title_key": "platform.telegram.title",
+ "description_key": "platform.telegram.desc",
+ "credential_fields": [
+ "bot_token"
+ ],
+ "capabilities": {
+ "supports_channels": true,
+ "supports_threads": false,
+ "supports_buttons": true,
+ "supports_quick_replies": true,
+ "supports_message_editing": true,
+ "supports_message_deletion": true,
+ "markdown_upload_returns_message_id": true,
+ "quick_reply_single_column": true,
+ "quick_reply_max_per_row": null,
+ "supports_typing_indicator": true,
+ "typing_indicator_requires_clear": false,
+ "typing_indicator_best_effort": false,
+ "supports_reaction_indicator": true,
+ "supports_message_indicator": true,
+ "supports_message_indicator_delete": true,
+ "preferred_processing_indicator": "typing",
+ "force_preferred_processing_indicator": false,
+ "supports_status_bubble": false,
+ "supports_toolcall_delivery": true
+ },
+ "kind": "im"
+ },
+ {
+ "id": "lark",
+ "config_key": "lark",
+ "title_key": "platform.lark.title",
+ "description_key": "platform.lark.desc",
+ "credential_fields": [
+ "app_id",
+ "app_secret"
+ ],
+ "capabilities": {
+ "supports_channels": true,
+ "supports_threads": true,
+ "supports_buttons": true,
+ "supports_quick_replies": true,
+ "supports_message_editing": true,
+ "supports_message_deletion": false,
+ "markdown_upload_returns_message_id": true,
+ "quick_reply_single_column": false,
+ "quick_reply_max_per_row": 3,
+ "supports_typing_indicator": false,
+ "typing_indicator_requires_clear": false,
+ "typing_indicator_best_effort": false,
+ "supports_reaction_indicator": true,
+ "supports_message_indicator": true,
+ "supports_message_indicator_delete": false,
+ "preferred_processing_indicator": "reaction",
+ "force_preferred_processing_indicator": false,
+ "supports_status_bubble": true,
+ "supports_toolcall_delivery": true
+ },
+ "kind": "im"
+ },
+ {
+ "id": "wechat",
+ "config_key": "wechat",
+ "title_key": "platform.wechat.title",
+ "description_key": "platform.wechat.desc",
+ "credential_fields": [
+ "bot_token"
+ ],
+ "capabilities": {
+ "supports_channels": false,
+ "supports_threads": false,
+ "supports_buttons": false,
+ "supports_quick_replies": false,
+ "supports_message_editing": false,
+ "supports_message_deletion": false,
+ "markdown_upload_returns_message_id": false,
+ "quick_reply_single_column": false,
+ "quick_reply_max_per_row": null,
+ "supports_typing_indicator": true,
+ "typing_indicator_requires_clear": true,
+ "typing_indicator_best_effort": false,
+ "supports_reaction_indicator": false,
+ "supports_message_indicator": true,
+ "supports_message_indicator_delete": false,
+ "preferred_processing_indicator": "typing",
+ "force_preferred_processing_indicator": true,
+ "supports_status_bubble": false,
+ "supports_toolcall_delivery": false
+ },
+ "kind": "im"
+ },
+ {
+ "id": "avibe",
+ "config_key": "avibe",
+ "title_key": "platform.avibe.title",
+ "description_key": "platform.avibe.desc",
+ "credential_fields": [],
+ "capabilities": {
+ "supports_channels": true,
+ "supports_threads": true,
+ "supports_buttons": true,
+ "supports_quick_replies": true,
+ "supports_message_editing": true,
+ "supports_message_deletion": false,
+ "markdown_upload_returns_message_id": true,
+ "quick_reply_single_column": false,
+ "quick_reply_max_per_row": null,
+ "supports_typing_indicator": false,
+ "typing_indicator_requires_clear": false,
+ "typing_indicator_best_effort": false,
+ "supports_reaction_indicator": false,
+ "supports_message_indicator": true,
+ "supports_message_indicator_delete": false,
+ "preferred_processing_indicator": "typing",
+ "force_preferred_processing_indicator": false,
+ "supports_status_bubble": false,
+ "supports_toolcall_delivery": true
+ },
+ "kind": "workbench"
+ }
+ ],
+ "agent_backend_catalog": [
+ {
+ "id": "vibey",
+ "display_name": "Vibey",
+ "config_key": "vibey",
+ "default_cli": null,
+ "default_enabled": true,
+ "latest_probe": null,
+ "capabilities": {
+ "supports_cli": false,
+ "supports_native_sessions": false,
+ "supports_runtime_refresh": false,
+ "supports_web_oauth": false,
+ "supports_install": false
+ },
+ "builtin": true,
+ "description_key": "settings.backends.vibeyDescription",
+ "settings_route": "/settings/backends/vibey"
+ },
+ {
+ "id": "opencode",
+ "display_name": "OpenCode",
+ "config_key": "opencode",
+ "default_cli": "opencode",
+ "default_enabled": true,
+ "latest_probe": [
+ "github",
+ "sst/opencode"
+ ],
+ "capabilities": {
+ "supports_cli": true,
+ "supports_native_sessions": true,
+ "supports_runtime_refresh": true,
+ "supports_web_oauth": true,
+ "supports_install": true
+ },
+ "builtin": false,
+ "description_key": "settings.backends.opencodeDescription",
+ "settings_route": "/settings/backends/opencode"
+ },
+ {
+ "id": "claude",
+ "display_name": "Claude Code",
+ "config_key": "claude",
+ "default_cli": "claude",
+ "default_enabled": true,
+ "latest_probe": [
+ "npm",
+ "@anthropic-ai/claude-code"
+ ],
+ "capabilities": {
+ "supports_cli": true,
+ "supports_native_sessions": true,
+ "supports_runtime_refresh": true,
+ "supports_web_oauth": true,
+ "supports_install": true
+ },
+ "builtin": false,
+ "description_key": "settings.backends.claudeDescription",
+ "settings_route": "/settings/backends/claude"
+ },
+ {
+ "id": "codex",
+ "display_name": "Codex",
+ "config_key": "codex",
+ "default_cli": "codex",
+ "default_enabled": false,
+ "latest_probe": [
+ "npm",
+ "@openai/codex"
+ ],
+ "capabilities": {
+ "supports_cli": true,
+ "supports_native_sessions": true,
+ "supports_runtime_refresh": true,
+ "supports_web_oauth": true,
+ "supports_install": true
+ },
+ "builtin": false,
+ "description_key": "settings.backends.codexDescription",
+ "settings_route": "/settings/backends/codex"
+ }
+ ],
+ "setup_state": {
+ "needs_setup": false,
+ "configured_platforms": [
+ "slack",
+ "discord",
+ "telegram"
+ ],
+ "missing_credentials": []
+ },
+ "mode": "self_host",
+ "version": "v2",
+ "slack": {
+ "proxy_url": null,
+ "team_id": "T0ACMEVIBE",
+ "team_name": "acme-vibe",
+ "app_id": "A02M9KZDP",
+ "require_mention": false,
+ "require_bind": false,
+ "disable_link_unfurl": false,
+ "has_bot_token": true,
+ "bot_token_length": 39,
+ "has_app_token": true,
+ "app_token_length": 26,
+ "has_signing_secret": false,
+ "signing_secret_length": 0
+ },
+ "discord": {
+ "proxy_url": null,
+ "application_id": "112233445566778899",
+ "require_mention": false,
+ "require_bind": false,
+ "thread_auto_archive_minutes": 10080,
+ "has_bot_token": true,
+ "bot_token_length": 21
+ },
+ "telegram": {
+ "proxy_url": null,
+ "require_mention": true,
+ "require_bind": false,
+ "forum_auto_topic": true,
+ "use_webhook": false,
+ "webhook_url": null,
+ "allowed_chat_ids": null,
+ "allowed_user_ids": null,
+ "has_bot_token": true,
+ "bot_token_length": 30,
+ "has_webhook_secret_token": false,
+ "webhook_secret_token_length": 0
+ },
+ "lark": null,
+ "wechat": null,
+ "avibe": {
+ "proxy_url": null,
+ "enabled": true
+ },
+ "runtime": {
+ "default_cwd": "/Users/demo/work",
+ "log_level": "INFO",
+ "show_page_api_timeout_seconds": 90.0,
+ "resource_governance": {
+ "mode": "auto"
+ },
+ "harness_prompt_echo": true,
+ "harness_run_sweep_interval_seconds": 60,
+ "harness_run_orphan_grace_seconds": 120,
+ "harness_run_queued_ttl_seconds": 1800,
+ "harness_run_hold_ttl_seconds": 3600,
+ "agent_events_trace_retention_enabled": true,
+ "agent_events_trace_retention_days": 30,
+ "skill_observability_enabled": true
+ },
+ "agents": {
+ "opencode": {
+ "enabled": true,
+ "cli_path": "opencode",
+ "auto_update": true,
+ "default_agent": null,
+ "default_reasoning_effort": null,
+ "error_retry_limit": 1,
+ "active_turn_timeout_seconds": 0,
+ "legacy_turn_timeout_neutralized": true,
+ "default_provider": null
+ },
+ "claude": {
+ "enabled": true,
+ "cli_path": "claude",
+ "auto_update": true,
+ "idle_timeout_seconds": 600,
+ "auth_mode": "oauth",
+ "api_key": null,
+ "base_url": null,
+ "auth_mode_set": false,
+ "api_key_length": 0,
+ "has_api_key": false
+ },
+ "codex": {
+ "enabled": false,
+ "cli_path": "codex",
+ "auto_update": true,
+ "idle_timeout_seconds": 600,
+ "auth_mode": "oauth",
+ "api_key": null,
+ "base_url": null,
+ "oauth_relay_marker": null,
+ "api_key_length": 0,
+ "has_api_key": false
+ },
+ "avault": {
+ "cli_path": "avault"
+ }
+ },
+ "model_hub": {
+ "enabled": true,
+ "runtime_default_applied": true,
+ "sources": [],
+ "agents": {}
+ },
+ "gateway": null,
+ "ui": {
+ "setup_host": "127.0.0.1",
+ "setup_port": 5123,
+ "open_browser": true,
+ "chat_message_font_size": 14,
+ "show_agent_activity": false,
+ "show_tool_calls": true,
+ "trusted_public_origins": [],
+ "instance_name": "",
+ "system_hostname": "demo-mac.local",
+ "default_instance_name": "demo-mac.local"
+ },
+ "remote_access": {
+ "provider": "vibe_cloud",
+ "vibe_cloud": {
+ "enabled": false,
+ "backend_url": "https://avibe.bot",
+ "public_url": "",
+ "instance_id": "",
+ "instance_kind": "",
+ "client_id": "",
+ "issuer": "",
+ "authorization_endpoint": "",
+ "token_endpoint": "",
+ "jwks_uri": "",
+ "redirect_uri": "",
+ "cloudflared_path": "",
+ "transport_protocol": "auto",
+ "auto_recovery": true,
+ "optimization_profile": "balanced",
+ "edge_ip_version": "4",
+ "edge_bind_address": "",
+ "dev_login_hint": "",
+ "paired": false
+ }
+ },
+ "audio_asr": {
+ "enabled": true,
+ "echo_transcript": true,
+ "enabled_configured": false,
+ "timeout_seconds": 60.0,
+ "endpoint_path": "/v1/audio/transcriptions",
+ "model": "qwen3-asr-flash",
+ "max_file_bytes": null
+ },
+ "update": {
+ "auto_update": true,
+ "check_interval_minutes": 60,
+ "idle_minutes": 30,
+ "notify_admins": true
+ },
+ "ack_mode": "reaction",
+ "language": "zh",
+ "show_duration": true,
+ "include_time_info": true,
+ "include_user_info": true,
+ "reply_enhancements": true,
+ "agent_progress_style": "off",
+ "agent_status_heartbeat_ms": 8000,
+ "agent_status_no_output_ms": 180000,
+ "setup_completed": true,
+ "config_recovery": {
+ "required": false,
+ "warnings": []
+ },
+ "capabilities": {
+ "model_hub": {
+ "enabled": true
+ }
+ },
+ "agent_supply_blocks": {}
+}
\ No newline at end of file
diff --git a/ui/design/frames/settings/dependencies.design.tsx b/ui/design/frames/settings/dependencies.design.tsx
new file mode 100644
index 000000000..3cce12055
--- /dev/null
+++ b/ui/design/frames/settings/dependencies.design.tsx
@@ -0,0 +1,77 @@
+// Settings · Dependencies: the local runtimes Avibe installs and keeps current, one row each.
+import type { DependencyItem } from '@/context/ApiContext';
+import { SettingsDependenciesPage } from '@/components/settings/SettingsDependenciesPage';
+
+import { frames } from '../../frame';
+import { settingsFixtures, settingsPage } from './fixtures';
+
+const page = settingsPage('dependencies', <SettingsDependenciesPage />);
+const route = '/settings/dependencies';
+
+const dep = (id: string, version: string | null, extra: Partial<DependencyItem> = {}): DependencyItem => ({
+ id,
+ kind: id === 'node' ? 'node' : id === 'show-runtime' ? 'runtime' : 'tool',
+ required: true,
+ installed: version !== null,
+ version,
+ latest_version: version,
+ has_update: false,
+ status: 'ready',
+ readiness: 'ready',
+ action_class: 'repairable',
+ reason: null,
+ ...extra,
+});
+
+const current = [
+ dep('askill', '0.1.13'),
+ dep('avault', '0.6.2', { latest_version: '0.7.0', has_update: true }),
+ dep('show-runtime', '1.4.0'),
+ dep('node', '22.11.0', { action_class: 'none' }),
+ dep('model-hub-engine', '0.9.3'),
+ dep('tmux', '3.5a', { required: false }),
+];
+
+const broken = [
+ dep('askill', '0.1.13'),
+ dep('avault', '0.7.0'),
+ dep('show-runtime', null, { status: 'missing', readiness: 'not_ready' }),
+ dep('node', null, { status: 'missing', readiness: 'not_ready', action_class: 'operator_only' }),
+ dep('model-hub-engine', '0.9.1', { status: 'error', readiness: 'not_ready', reason: 'engine_start_failed' }),
+ dep('tmux', '3.5a', { required: false }),
+];
+
+const designFrames = frames([
+ {
+ name: 'default',
+ title: '设置 · 依赖 · 一项可更新',
+ width: 1440,
+ height: 900,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures({ '/api/dependencies': { ok: true, deps: current } }),
+ render: page,
+ },
+ {
+ name: 'needs-repair',
+ title: '设置 · 依赖 · 缺失与出错',
+ width: 1440,
+ height: 1000,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures({ '/api/dependencies': { ok: true, deps: broken } }),
+ render: page,
+ },
+ {
+ name: 'phone',
+ title: '设置 · 依赖 · 手机',
+ width: 390,
+ height: 844,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures({ '/api/dependencies': { ok: true, deps: current } }),
+ render: page,
+ },
+]);
+
+export default designFrames;
diff --git a/ui/design/frames/settings/diagnostics.design.tsx b/ui/design/frames/settings/diagnostics.design.tsx
new file mode 100644
index 000000000..d6bdc132b
--- /dev/null
+++ b/ui/design/frames/settings/diagnostics.design.tsx
@@ -0,0 +1,85 @@
+// Settings · Diagnostics: the health check (Doctor) with its passed, warning, and failed checks.
+import { SettingsDiagnosticsPage } from '@/components/settings/SettingsDiagnosticsPage';
+
+import { frames } from '../../frame';
+import { settingsFixtures, settingsPage } from './fixtures';
+
+const page = settingsPage('diagnostics', <SettingsDiagnosticsPage />);
+const route = '/settings/diagnostics';
+
+const check = (status: 'pass' | 'warn' | 'fail', message: string, action?: string) => ({ status, message, action });
+
+const withIssues = {
+ ok: false,
+ summary: { pass: 9, warn: 2, fail: 1 },
+ groups: [
+ {
+ name: '运行环境',
+ items: [
+ check('pass', 'Python 3.12.12'),
+ check('pass', '配置文件可读:~/.avibe/config/config.json'),
+ check('pass', '服务进程运行中(PID 48213)'),
+ check('warn', '日志目录占用 1.8 GB', '在「服务」页查看日志文件位置后清理旧日志'),
+ ],
+ },
+ {
+ name: 'Agent 后端',
+ items: [
+ check('pass', 'Claude Code 2.4.18 已就绪'),
+ check('pass', 'OpenCode 1.6.2 已就绪'),
+ check('fail', 'Codex CLI 未安装', '到 设置 → 后端 安装 Codex'),
+ ],
+ },
+ {
+ name: '通讯平台',
+ items: [
+ check('pass', 'Slack · acme-vibe 已连接'),
+ check('pass', 'Discord · AI Hands 已连接'),
+ check('warn', 'Telegram 机器人未关闭隐私模式,群组里只能收到 @ 消息', '在 BotFather 中执行 /setprivacy'),
+ check('pass', 'Avibe Workbench 可用'),
+ check('pass', '依赖 askill 0.1.13 已就绪'),
+ ],
+ },
+ ],
+};
+
+const healthy = {
+ ok: true,
+ summary: { pass: 12, warn: 0, fail: 0 },
+ groups: withIssues.groups.map((group) => ({ ...group, items: group.items.map((item) => ({ ...item, status: 'pass', action: undefined })) })),
+};
+
+const designFrames = frames([
+ {
+ name: 'issues',
+ title: '设置 · 诊断 · 有警告和失败',
+ width: 1440,
+ height: 1240,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures({ '/api/doctor': withIssues }),
+ render: page,
+ },
+ {
+ name: 'healthy',
+ title: '设置 · 诊断 · 全部通过',
+ width: 1440,
+ height: 1240,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures({ '/api/doctor': healthy }),
+ render: page,
+ },
+ {
+ name: 'phone',
+ title: '设置 · 诊断 · 手机',
+ width: 390,
+ height: 844,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures({ '/api/doctor': withIssues }),
+ render: page,
+ },
+]);
+
+export default designFrames;
diff --git a/ui/design/frames/settings/direct-messages.design.tsx b/ui/design/frames/settings/direct-messages.design.tsx
new file mode 100644
index 000000000..fd4e24295
--- /dev/null
+++ b/ui/design/frames/settings/direct-messages.design.tsx
@@ -0,0 +1,58 @@
+// Settings · Direct messages: the bind code, then every user bound on each platform with their route.
+import { UserList } from '@/components/steps/UserList';
+
+import { frames } from '../../frame';
+import { bindCodesApi, scopeSettingsApi, settingsFixtures, settingsPage, usersApi } from './fixtures';
+
+const page = settingsPage('platforms/users', <UserList />);
+const fixtures = settingsFixtures({ ...scopeSettingsApi, ...usersApi, ...bindCodesApi });
+
+const designFrames = frames([
+ {
+ name: 'default',
+ title: '设置 · 私聊 · 已绑定用户',
+ width: 1440,
+ height: 900,
+ status: 'shipped',
+ route: '/settings/platforms/users',
+ fixtures,
+ render: page,
+ },
+ {
+ name: 'expanded',
+ title: '设置 · 私聊 · 展开一位用户的路由',
+ width: 1440,
+ height: 1100,
+ status: 'shipped',
+ // The deep link a chat uses to open one user's row.
+ route: '/settings/platforms/users?platform=slack&user=U04ALEXLIU',
+ fixtures,
+ render: page,
+ },
+ {
+ name: 'empty',
+ title: '设置 · 私聊 · 还没有用户',
+ width: 1440,
+ height: 900,
+ status: 'shipped',
+ route: '/settings/platforms/users',
+ fixtures: settingsFixtures({
+ ...scopeSettingsApi,
+ '/api/users': { ok: true, users: {} },
+ '/api/bind-codes': { ok: true, bind_codes: [] },
+ }),
+ render: page,
+ },
+ {
+ name: 'phone',
+ title: '设置 · 私聊 · 手机',
+ width: 390,
+ height: 844,
+ status: 'shipped',
+ route: '/settings/platforms/users',
+ fixtures,
+ render: page,
+ },
+]);
+
+export default designFrames;
diff --git a/ui/design/frames/settings/fixtures.tsx b/ui/design/frames/settings/fixtures.tsx
new file mode 100644
index 000000000..c0da3d3c4
--- /dev/null
+++ b/ui/design/frames/settings/fixtures.tsx
@@ -0,0 +1,133 @@
+// Settings pages render inside the shipped Settings layout (its header and rail), routed the way
+// App.tsx routes them, and read the Owner's config (`config.json`: a `GET /api/config` answer for
+// an install with Slack, Discord, and Telegram connected; secrets appear only as `has_*` flags).
+import type { ReactNode } from 'react';
+import { Route, Routes } from 'react-router-dom';
+
+import { SettingsLayout } from '@/components/settings/SettingsLayout';
+
+import { DESIGN_NOW } from '../../shell/clock';
+import { mainBot, type WorkbenchFixtures } from '../../shell/fixtures';
+import { agentCatalog } from '../agents/fixtures';
+import config from './config.json';
+
+export const settingsConfig = config;
+
+const at = (minutesAgo: number) => new Date(DESIGN_NOW - minutesAgo * 60_000).toISOString();
+
+export const running = { state: 'running', pid: 48213, started_at: at(4 * 60 + 23) };
+
+/** What every Settings page reads: the running service, the config, the version, a local session. */
+export function settingsFixtures(api: Record<string, unknown> = {}, extra: WorkbenchFixtures = {}): WorkbenchFixtures {
+ return {
+ status: running,
+ bots: [mainBot],
+ ...extra,
+ api: {
+ '/api/config': config,
+ '/api/version': { current: '3.2.4', latest: '3.2.4', has_update: false, error: null },
+ '/api/session': { remote: false },
+ ...api,
+ },
+ };
+}
+
+/** One Settings page at `/settings/<path>` inside the shipped layout. */
+export const settingsPage = (path: string, element: ReactNode) => () => (
+ <Routes>
+ <Route path="/settings" element={<SettingsLayout />}>
+ <Route path={path} element={element} />
+ </Route>
+ </Routes>
+);
+
+const routing = (agentName: string | null, extra: Record<string, unknown> = {}) => ({
+ enabled: true,
+ show_message_types: ['assistant'],
+ custom_cwd: '',
+ routing: { agent_name: agentName, model: null, reasoning_effort: null },
+ require_mention: null,
+ require_bind: null,
+ ...extra,
+});
+
+/** Per-platform scope settings (`GET /api/settings?platform=…`): group and user routes plus the Agent catalog. */
+export const scopeSettings = {
+ slack: {
+ channels: {
+ C04AIBOTS: routing('vibey', { custom_cwd: '/Users/demo/dev/avibe-bot-backend', require_mention: true }),
+ C01GENERAL: routing(null),
+ C07RELEASE: routing('reviewer', { enabled: false }),
+ },
+ agent_catalog: agentCatalog,
+ },
+ discord: {
+ channels: { C03DEVBOTS: routing('codex', { enabled: false }), C05AIHANDS: routing('claude') },
+ guild_allowlist: ['G01AIHANDS'],
+ agent_catalog: agentCatalog,
+ },
+ telegram: {
+ channels: { '-1002233445566': routing('slack-triage') },
+ threads: {},
+ agent_catalog: agentCatalog,
+ },
+};
+
+export const scopeSettingsApi = Object.fromEntries(
+ Object.entries(scopeSettings).map(([platform, settings]) => [`/api/settings?platform=${platform}`, settings]),
+);
+
+/** The groups each platform reports (`POST /api/<platform>/channels`, `/api/telegram/chats`). */
+export const platformChannelsApi = {
+ '/api/slack/channels': {
+ ok: true,
+ channels: [
+ { id: 'C04AIBOTS', name: 'ai-bots', is_private: false },
+ { id: 'C01GENERAL', name: 'general', is_private: false },
+ { id: 'C07RELEASE', name: 'release-notes', is_private: true },
+ ],
+ },
+ '/api/discord/channels': {
+ ok: true,
+ channels: [
+ { id: 'C05AIHANDS', name: 'ai-hands', type: 0 },
+ { id: 'C03DEVBOTS', name: 'dev-bots', type: 0 },
+ ],
+ },
+ '/api/telegram/chats': {
+ ok: true,
+ channels: [{ id: '-1002233445566', name: '产品讨论组', type: 'supergroup', supports_topics: false, last_seen_at: at(42) }],
+ },
+};
+
+const user = (displayName: string, agentName: string | null, extra: Record<string, unknown> = {}) => ({
+ display_name: displayName,
+ is_admin: false,
+ bound_at: at(60 * 24 * 12),
+ ...routing(agentName),
+ ...extra,
+});
+
+/** The users bound on each platform (`GET /api/users?platform=…`). */
+export const usersApi = {
+ '/api/users?platform=slack': {
+ ok: true,
+ users: {
+ U04ALEXLIU: user('Alex Liu', 'vibey', { is_admin: true, custom_cwd: '/Users/demo/dev/avibe-bot-backend', show_message_types: ['assistant', 'toolcall'] }),
+ B07DEVOPS: user('devops-bot', null, { enabled: false }),
+ },
+ },
+ '/api/users?platform=discord': { ok: true, users: { '319204857761': user('Sara Chen', 'opencode') } },
+ '/api/users?platform=telegram': { ok: true, users: { '58181121': user('Marc Lin', 'reviewer') } },
+};
+
+/** One active bind code with time left, and an older one already used. */
+export const bindCodesApi = {
+ '/api/bind-codes': {
+ ok: true,
+ bind_codes: [
+ { code: 'VBE-7HT3-Q9PX', type: 'expiring', created_at: at(20), expires_at: new Date(DESIGN_NOW + 60 * 60_000 * 24).toISOString(), is_active: true, used_by: [] },
+ { code: 'VBE-2KD8-M4RA', type: 'one_time', created_at: at(60 * 24 * 12), expires_at: null, is_active: false, used_by: ['U04ALEXLIU'] },
+ ],
+ },
+};
diff --git a/ui/design/frames/settings/groups.design.tsx b/ui/design/frames/settings/groups.design.tsx
new file mode 100644
index 000000000..93af48f8e
--- /dev/null
+++ b/ui/design/frames/settings/groups.design.tsx
@@ -0,0 +1,49 @@
+// Settings · Groups: every group the connected platforms report, with its on/off switch and route.
+import { ChannelList } from '@/components/steps/ChannelList';
+
+import { frames } from '../../frame';
+import { platformChannelsApi, scopeSettingsApi, settingsFixtures, settingsPage } from './fixtures';
+
+const page = settingsPage('platforms/groups', <ChannelList isPage />);
+const route = '/settings/platforms/groups';
+const fixtures = settingsFixtures({ ...scopeSettingsApi, ...platformChannelsApi });
+
+const designFrames = frames([
+ {
+ name: 'default',
+ title: '设置 · 群组 · 全部平台',
+ width: 1440,
+ height: 900,
+ status: 'shipped',
+ route,
+ fixtures,
+ render: page,
+ },
+ {
+ name: 'empty',
+ title: '设置 · 群组 · 还没有发现群组',
+ width: 1440,
+ height: 900,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures({
+ ...scopeSettingsApi,
+ '/api/slack/channels': { ok: true, channels: [] },
+ '/api/discord/channels': { ok: true, channels: [] },
+ '/api/telegram/chats': { ok: true, channels: [] },
+ }),
+ render: page,
+ },
+ {
+ name: 'phone',
+ title: '设置 · 群组 · 手机',
+ width: 390,
+ height: 844,
+ status: 'shipped',
+ route,
+ fixtures,
+ render: page,
+ },
+]);
+
+export default designFrames;
diff --git a/ui/design/frames/settings/logs.design.tsx b/ui/design/frames/settings/logs.design.tsx
new file mode 100644
index 000000000..72498da0c
--- /dev/null
+++ b/ui/design/frames/settings/logs.design.tsx
@@ -0,0 +1,71 @@
+// Settings · Diagnostics · Logs: the service log tail with level and source filters.
+import { SettingsLogsPage } from '@/components/settings/SettingsLogsPage';
+
+import { frames } from '../../frame';
+import { settingsFixtures, settingsPage } from './fixtures';
+
+const page = settingsPage('diagnostics/logs', <SettingsLogsPage />);
+const route = '/settings/diagnostics/logs';
+
+const entry = (time: string, level: string, logger: string, message: string, source = 'service') => ({
+ timestamp: `2026-11-01 ${time}`,
+ level,
+ logger,
+ message,
+ source,
+});
+
+// Oldest first, as the server returns them; the panel shows the newest on top.
+const logs = [
+ entry('15:18:42,214', 'INFO', 'modules.im.slack', '[slack.py:412] - received #ai-bots from @alex (mention required)'),
+ entry('15:18:42,218', 'DEBUG', 'core.message_dispatcher', '[message_dispatcher.py:233] - routing to agent=vibey cwd=~/dev/avibe-bot-backend'),
+ entry('15:18:43,871', 'INFO', 'modules.agents.vibey', '[runtime.py:618] - turn started session=ses_zMG4 model=claude-opus-5-5'),
+ entry('15:18:46,302', 'DEBUG', 'modules.im.slack', '[slack.py:780] - posting reaction :eyes: as ack'),
+ entry('15:18:48,015', 'WARNING', 'modules.im.discord', '[discord.py:1204] - rate-limit hit on guild=ai-hands · backing off 4s'),
+ entry('15:18:52,118', 'INFO', 'modules.agents.vibey', '[runtime.py:702] - turn finished session=ses_zMG4 elapsed=8.2s tokens_in=18342 tokens_out=412'),
+ entry('15:18:52,221', 'INFO', 'modules.im.slack', '[slack.py:833] - posted reply (4 lines, 412 chars) · removed reaction'),
+ entry('15:19:01,847', 'ERROR', 'core.controller', '[controller.py:1880] - codex backend unavailable: CLI not found on PATH'),
+ entry('15:19:02,003', 'INFO', 'vibe.ui_server', '[ui_server.py:402] - GET /api/inbox 200 12ms', 'ui_stdout'),
+];
+
+const sources = [
+ { key: 'all', filename: '', path: '', exists: true, total: 18420 },
+ { key: 'service', filename: 'vibe_remote.log', path: '~/.avibe/logs/vibe_remote.log', exists: true, total: 18211 },
+ { key: 'service_stderr', filename: 'service_stderr.log', path: '~/.avibe/logs/service_stderr.log', exists: true, total: 3 },
+ { key: 'ui_stdout', filename: 'ui_stdout.log', path: '~/.avibe/logs/ui_stdout.log', exists: true, total: 206 },
+];
+
+const designFrames = frames([
+ {
+ name: 'default',
+ title: '设置 · 日志',
+ width: 1440,
+ height: 1000,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures({ '/api/logs': { logs, total: 18420, sources, source: 'all' } }),
+ render: page,
+ },
+ {
+ name: 'empty',
+ title: '设置 · 日志 · 还没有日志',
+ width: 1440,
+ height: 900,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures({ '/api/logs': { logs: [], total: 0, sources: sources.map((s) => ({ ...s, total: 0 })), source: 'all' } }),
+ render: page,
+ },
+ {
+ name: 'phone',
+ title: '设置 · 日志 · 手机',
+ width: 390,
+ height: 844,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures({ '/api/logs': { logs, total: 18420, sources, source: 'all' } }),
+ render: page,
+ },
+]);
+
+export default designFrames;
diff --git a/ui/design/frames/settings/messaging.design.tsx b/ui/design/frames/settings/messaging.design.tsx
new file mode 100644
index 000000000..81c398aa7
--- /dev/null
+++ b/ui/design/frames/settings/messaging.design.tsx
@@ -0,0 +1,33 @@
+// Settings · Replies: input enhancement, Agent context, and work feedback defaults.
+import { SettingsMessagingPage } from '@/components/settings/SettingsMessagingPage';
+
+import { frames } from '../../frame';
+import { settingsFixtures, settingsPage } from './fixtures';
+
+const page = settingsPage('replies', <SettingsMessagingPage />);
+const route = '/settings/replies';
+
+const designFrames = frames([
+ {
+ name: 'default',
+ title: '设置 · 回复',
+ width: 1440,
+ height: 1720,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures(),
+ render: page,
+ },
+ {
+ name: 'phone',
+ title: '设置 · 回复 · 手机',
+ width: 390,
+ height: 844,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures(),
+ render: page,
+ },
+]);
+
+export default designFrames;
diff --git a/ui/design/frames/settings/platforms.design.tsx b/ui/design/frames/settings/platforms.design.tsx
new file mode 100644
index 000000000..7897ce9c3
--- /dev/null
+++ b/ui/design/frames/settings/platforms.design.tsx
@@ -0,0 +1,52 @@
+// Settings · Platform connections: the enabled-platform grid and one card per connected platform,
+// plus a platform's credential form as its card opens it (the shipped embed, drawn on its own).
+import { PlatformConfigEmbed } from '@/components/settings/PlatformConfigEmbed';
+import { SettingsPlatformsPage } from '@/components/settings/SettingsPlatformsPage';
+
+import { frames } from '../../frame';
+import { settingsConfig, settingsFixtures, settingsPage } from './fixtures';
+
+const page = settingsPage('platforms', <SettingsPlatformsPage />);
+const route = '/settings/platforms';
+
+// The app manifest the Slack form offers to create the app from.
+const manifest = JSON.stringify({ display_information: { name: 'Avibe' }, features: { bot_user: { display_name: 'Avibe' } }, settings: { socket_mode_enabled: true } });
+const slackFormFixtures = settingsFixtures({ '/api/slack/manifest': { ok: true, manifest: JSON.stringify(JSON.parse(manifest), null, 2), manifest_compact: manifest } });
+
+const designFrames = frames([
+ {
+ name: 'default',
+ title: '设置 · 平台接入 · 已连 3 个平台',
+ width: 1440,
+ height: 900,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures(),
+ render: page,
+ },
+ {
+ name: 'phone',
+ title: '设置 · 平台接入 · 手机',
+ width: 390,
+ height: 844,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures(),
+ render: page,
+ },
+ {
+ name: 'slack-form',
+ title: '设置 · 平台接入 · Slack 凭证表单(卡片展开后)',
+ width: 880,
+ height: 720,
+ status: 'shipped',
+ fixtures: slackFormFixtures,
+ render: () => (
+ <div className="h-full overflow-hidden bg-background px-5 py-4">
+ <PlatformConfigEmbed platform="slack" config={settingsConfig} onApply={async () => {}} onCancel={() => {}} />
+ </div>
+ ),
+ },
+]);
+
+export default designFrames;
diff --git a/ui/design/frames/settings/sections.design.tsx b/ui/design/frames/settings/sections.design.tsx
new file mode 100644
index 000000000..a442f4ee5
--- /dev/null
+++ b/ui/design/frames/settings/sections.design.tsx
@@ -0,0 +1,26 @@
+// The Settings section list: a phone's Settings root (a desktop keeps it as the rail beside each page).
+import { Route, Routes } from 'react-router-dom';
+
+import { SettingsLayout } from '@/components/settings/SettingsLayout';
+
+import { frames } from '../../frame';
+import { settingsFixtures } from './fixtures';
+
+const designFrames = frames([
+ {
+ name: 'phone',
+ title: '设置 · 分区列表 · 手机',
+ width: 390,
+ height: 844,
+ status: 'shipped',
+ route: '/settings',
+ fixtures: settingsFixtures(),
+ render: () => (
+ <Routes>
+ <Route path="/settings" element={<SettingsLayout />} />
+ </Routes>
+ ),
+ },
+]);
+
+export default designFrames;
diff --git a/ui/design/frames/settings/service.design.tsx b/ui/design/frames/settings/service.design.tsx
new file mode 100644
index 000000000..a406d9077
--- /dev/null
+++ b/ui/design/frames/settings/service.design.tsx
@@ -0,0 +1,43 @@
+// Settings · Service: run control, the console server, the instance name, and the log file.
+import { SettingsServicePage } from '@/components/settings/SettingsServicePage';
+
+import { frames } from '../../frame';
+import { settingsFixtures, settingsPage } from './fixtures';
+
+const page = settingsPage('service', <SettingsServicePage />);
+const route = '/settings/service';
+
+const designFrames = frames([
+ {
+ name: 'default',
+ title: '设置 · 服务 · 运行中',
+ width: 1440,
+ height: 900,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures(),
+ render: page,
+ },
+ {
+ name: 'stopped',
+ title: '设置 · 服务 · 已停止',
+ width: 1440,
+ height: 900,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures({}, { status: { state: 'stopped' } }),
+ render: page,
+ },
+ {
+ name: 'phone',
+ title: '设置 · 服务 · 手机',
+ width: 390,
+ height: 844,
+ status: 'shipped',
+ route,
+ fixtures: settingsFixtures(),
+ render: page,
+ },
+]);
+
+export default designFrames;
diff --git a/ui/design/shell/DesignShell.tsx b/ui/design/shell/DesignShell.tsx
index 726ef61f1..c6ba6a4e5 100644
--- a/ui/design/shell/DesignShell.tsx
+++ b/ui/design/shell/DesignShell.tsx
@@ -4,6 +4,7 @@ import { MemoryRouter } from 'react-router-dom';
import { ApiProvider } from '@/context/ApiContext';
import { BotsProvider } from '@/context/BotsProvider';
import { InstanceAuthorizationContext } from '@/context/InstanceAuthorizationContext';
+import { StatusContext, type RuntimeStatus } from '@/context/StatusContext';
import { ToastProvider } from '@/context/ToastProvider';
import { UnsavedChangesContext } from '@/context/unsavedChangesContext';
import { WindowManagerContext, type WindowManagerValue } from '@/context/WindowManagerContext';
@@ -44,6 +45,11 @@ function inboxValue(fixtures: WorkbenchFixtures): InboxState {
});
}
+function statusValue(fixtures: WorkbenchFixtures) {
+ const status: RuntimeStatus = fixtures.status ?? {};
+ return { status, health: true, refreshStatus: () => Promise.resolve(status), control: () => Promise.resolve(null) };
+}
+
function projectsValue(fixtures: WorkbenchFixtures): WorkbenchProjectsTree {
const expanded = new Set(fixtures.expandedProjects ?? []);
return inert<WorkbenchProjectsTree>({
@@ -73,6 +79,7 @@ function projectsValue(fixtures: WorkbenchFixtures): WorkbenchProjectsTree {
export function DesignShell({ fixtures = {}, route = '/', children }: { fixtures?: WorkbenchFixtures; route?: string; children: ReactNode }) {
const inbox = useMemo(() => inboxValue(fixtures), [fixtures]);
const projects = useMemo(() => projectsValue(fixtures), [fixtures]);
+ const status = useMemo(() => statusValue(fixtures), [fixtures]);
const authorization = useMemo(
() => ({ remote: false, instanceKind: null, instanceRole: 'owner' as const, capabilities: fixtures.capabilities ?? owner }),
[fixtures],
@@ -86,7 +93,9 @@ export function DesignShell({ fixtures = {}, route = '/', children }: { fixtures
<WindowManagerContext.Provider value={inert<WindowManagerValue>({ windows: [], focusedId: null, gestureActive: false })}>
<WorkbenchInboxContext.Provider value={inbox}>
<WorkbenchProjectsContext.Provider value={projects}>
- <BotsProvider>{children}</BotsProvider>
+ <BotsProvider>
+ <StatusContext.Provider value={status}>{children}</StatusContext.Provider>
+ </BotsProvider>
</WorkbenchProjectsContext.Provider>
</WorkbenchInboxContext.Provider>
</WindowManagerContext.Provider>
diff --git a/ui/design/shell/fixtures.ts b/ui/design/shell/fixtures.ts
index 2b97c2cc2..7ebf3bdb0 100644
--- a/ui/design/shell/fixtures.ts
+++ b/ui/design/shell/fixtures.ts
@@ -1,5 +1,6 @@
import type { InboxSession, InstanceCapabilities, WorkbenchProject, WorkbenchSession } from '@/context/ApiContext';
import type { BotRuntimeStatus } from '@/context/BotsContext';
+import type { RuntimeStatus } from '@/context/StatusContext';
import type { Bot, BotAvatar } from '@/lib/bots';
import { OWNER_INSTANCE_CAPABILITIES } from '@/lib/sessionInfo';
@@ -8,6 +9,8 @@ import { DESIGN_NOW } from './clock';
/** What a frame can set. Everything is optional; omitted parts are empty, not loading. */
export interface WorkbenchFixtures {
capabilities?: InstanceCapabilities;
+ /** The service status the shell polls (`GET /status`), as the Status provider serves it. */
+ status?: RuntimeStatus;
projects?: WorkbenchProject[];
sessionsByProject?: Record<string, WorkbenchSession[]>;
expandedProjects?: string[];
@@ -27,7 +30,8 @@ export interface WorkbenchFixtures {
/** Everything the frame's providers fetch, as the network stub serves it. */
export function apiResponses(fixtures: WorkbenchFixtures = {}): Record<string, unknown> {
- const responses: Record<string, unknown> = {};
+ // Any write first reads a CSRF token, so every frame can draw a component that saves.
+ const responses: Record<string, unknown> = { '/api/csrf-token': { csrf_token: 'design' } };
if (fixtures.bots) responses['/api/bots'] = { ok: true, bots: fixtures.bots };
// Every Bot Session is read for its status dot; idle unless the frame says otherwise.
for (const { session_id: sessionId } of fixtures.bots ?? []) {
diff --git a/ui/src/components/settings/SettingsDependenciesPage.tsx b/ui/src/components/settings/SettingsDependenciesPage.tsx
index 259b4be96..5138debaf 100644
--- a/ui/src/components/settings/SettingsDependenciesPage.tsx
+++ b/ui/src/components/settings/SettingsDependenciesPage.tsx
@@ -35,7 +35,7 @@ import { errorMessage } from '@/lib/errorMessage';
import { useDependencyChecks } from './useDependencyChecks';
import { AvaultAuthorizationNotice } from '../ui/avault-authorization-notice';
-// Mirrors design.pen "vibe-remote — Settings · Dependencies": one card per
+// ui/design: settings/dependencies/default. One card per
// required local runtime (icon tile + name/REQUIRED + detail + status pill +
// action), reusing the Backends-page card shape. askill + the Show Page
// runtime and CPA auto-install during `vibe runtime prepare`; this page surfaces
diff --git a/ui/src/components/settings/SettingsMessagingPage.tsx b/ui/src/components/settings/SettingsMessagingPage.tsx
index dedb1bd0d..bb9482e19 100644
--- a/ui/src/components/settings/SettingsMessagingPage.tsx
+++ b/ui/src/components/settings/SettingsMessagingPage.tsx
@@ -36,7 +36,7 @@ function formatSavedAt(value: number | null, t: TFunction) {
: t('settings.messagingStatusAgo').replace('{{seconds}}', String(deltaSec));
}
-// Mirrors design.pen TDgw0 (VR/CM/Messaging):
+// ui/design: settings/messaging/default.
// msgIntro 15px semibold + 12px muted, msgSec1 cornerRadius 12 fill --background
// stroke --border, value rows padding [14, 20] separated by bottom border.
export const SettingsMessagingPage: React.FC = () => {
diff --git a/ui/src/components/settings/SettingsPrimitives.tsx b/ui/src/components/settings/SettingsPrimitives.tsx
index 2fed56485..87b0caafc 100644
--- a/ui/src/components/settings/SettingsPrimitives.tsx
+++ b/ui/src/components/settings/SettingsPrimitives.tsx
@@ -20,7 +20,7 @@ type SettingsPanelProps = {
variant?: 'panel' | 'preference';
};
-// Mirrors design.pen O8BNR/B6qFRA (svcSec1 / msgSec1):
+// ui/design: settings/service/default, settings/messaging/default.
// cornerRadius 12, fill --background, stroke --border 1px,
// header padding [16, 20] with bottom border, rows padding [12, 20].
export const SettingsPanel: React.FC<SettingsPanelProps> = ({
@@ -158,9 +158,9 @@ export const SearchField: React.FC<SearchFieldProps> = ({
</div>
);
-// Mirrors design.pen FALFE / ylboi (mint switch on): cornerRadius 9999,
+// ui/design: settings/messaging/default. On: cornerRadius 9999,
// fill --mint, blur 8 #5BFFA055 glow, 38×22 with knob inset 3.
-// Off state mirrors fcMl6 (Switch/Unchecked): fill + stroke = --border-strong
+// Off: fill + stroke = --border-strong
// (14% white dark / 14% black light) for sufficient contrast against bg-background.
interface ToggleSwitchProps {
enabled: boolean;
@@ -222,8 +222,8 @@ type SettingsResourceRowProps = {
};
// Shared "managed resource" card: lead icon tile + title (+ inline badges) +
-// detail line, with a right-aligned action cluster. Mirrors design.pen
-// qVHh4 (VR/CM/Backends) cards; used by both the Backends and Dependencies
+// detail line, with a right-aligned action cluster (ui/design:
+// settings/dependencies/default); used by both the Backends and Dependencies
// settings pages so the row shell stays one concept in one home.
export const SettingsResourceRow: React.FC<SettingsResourceRowProps> = ({
icon: Icon,
diff --git a/ui/src/components/settings/SettingsServicePage.tsx b/ui/src/components/settings/SettingsServicePage.tsx
index 96967877b..05db643ed 100644
--- a/ui/src/components/settings/SettingsServicePage.tsx
+++ b/ui/src/components/settings/SettingsServicePage.tsx
@@ -13,9 +13,9 @@ import { Button } from '@/components/ui/button';
import { setConfigField } from '@/lib/configMutations';
import { applyAppTitle } from '@/lib/documentTitle';
-// Mirrors design.pen mHUcm (VR/CM/Service): two cards.
-// svcSec1: header [16, 20] + value rows [12, 20] with bottom borders.
-// svcSec2: single row card with title + value pill (read-only mono).
+// ui/design: settings/service/default. Two cards:
+// run control: header [16, 20] + value rows [12, 20] with bottom borders;
+// log file: single row card with title + value pill (read-only mono).
export const SettingsServicePage: React.FC = () => {
const { t } = useTranslation();
const { status, control } = useStatus();
@@ -343,7 +343,7 @@ export const SettingsServicePage: React.FC = () => {
/>
</SettingsPanel>
- {/* Mirrors design.pen CuVKM (svcSec2): single-row read-only value pill */}
+ {/* Log file: single-row read-only value pill */}
<SettingsPanel>
<div className="flex flex-col gap-3 px-5 py-4 md:flex-row md:items-center md:justify-between">
<div className="text-[13px] font-medium text-foreground">{t('settings.logFileLabel')}</div>
diff --git a/ui/src/components/shared/RoutingConfigPanel.tsx b/ui/src/components/shared/RoutingConfigPanel.tsx
index 50c5f4b58..c03868612 100644
--- a/ui/src/components/shared/RoutingConfigPanel.tsx
+++ b/ui/src/components/shared/RoutingConfigPanel.tsx
@@ -8,7 +8,7 @@ import { ToggleSwitch } from '../settings/SettingsPrimitives';
import { AgentRoutePicker } from '../workbench/AgentRoutePicker';
import type { VibeAgentBrief } from '../../context/ApiContext';
-// Mirrors design.pen `asPXu` (VR/RoutingConfig). Shared between groups (channels)
+// ui/design: settings/direct-messages/expanded. Shared between groups (channels)
// and users — same form, same fields, same styles. The only difference is whether
// the @mention requirement segmented toggle is shown.
//
diff --git a/ui/src/components/steps/ChannelList.tsx b/ui/src/components/steps/ChannelList.tsx
index 858f1bb93..b7bddf03f 100644
--- a/ui/src/components/steps/ChannelList.tsx
+++ b/ui/src/components/steps/ChannelList.tsx
@@ -1161,7 +1161,7 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onB
};
// ====================================================================
- // PAGE MODE: redesigned layout (matches design.pen frame A7h8Wv)
+ // PAGE MODE (ui/design: settings/groups/default)
// - Header with title + 240px search + Rescan
// - Tabs row (All channels + per-platform with PlatformIcon + counts)
// - Per-tab notes (Discord guild picker, Telegram discovery info)
@@ -1222,7 +1222,7 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onB
return (
<>
<div className="flex h-full flex-col gap-5">
- {/* Page header — design.pen iXX59 */}
+ {/* Page header */}
<div className="flex flex-wrap items-center justify-between gap-4">
<div className="flex flex-col gap-1.5">
<h1 className="text-[28px] font-bold leading-tight tracking-[-0.4px] text-foreground">
@@ -1253,7 +1253,7 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onB
</div>
</div>
- {/* Platform Tabs — design.pen O2hb2M */}
+ {/* Platform Tabs */}
<div className="flex items-end gap-1 overflow-x-auto border-b border-border">
<button
type="button"
@@ -1442,7 +1442,7 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onB
</div>
)}
- {/* List header — design.pen xQq1G */}
+ {/* List header */}
<div className="flex flex-wrap items-center justify-between gap-3">
<div className="text-[13px] text-muted">
{pageTab === 'all'
@@ -1471,7 +1471,7 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onB
</div>
</div>
- {/* Channel rows — design.pen JrNBe / M8FRiG / KywfU */}
+ {/* Channel rows */}
<div className="flex-1 space-y-3 overflow-y-auto">
{visibleRows.length === 0 && (
<div className="rounded-xl border border-dashed border-border bg-surface-3/60 p-8 text-center text-muted">
@@ -1639,7 +1639,7 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onB
)}
</div>
- {/* Expanded body — design.pen asPXu (VR/RoutingConfig) — shared with /users */}
+ {/* Expanded body — RoutingConfigPanel, shared with /users */}
{expanded && (
<>
<RoutingConfigPanel
diff --git a/ui/src/components/steps/DoctorPanel.tsx b/ui/src/components/steps/DoctorPanel.tsx
index 81b35150a..50376eb06 100644
--- a/ui/src/components/steps/DoctorPanel.tsx
+++ b/ui/src/components/steps/DoctorPanel.tsx
@@ -50,7 +50,7 @@ const STATUS_TONE: Record<
},
};
-// Mirrors design.pen Hns4E (VR/CM/Diagnostics):
+// ui/design: settings/diagnostics/issues.
// diagHero: cornerRadius 14, fill --surface-2, mint stroke 33%, blur 32 y16 spread -8 #5BFFA014.
// diagPulse: 42×42 mint-soft circle with blur 16 #5BFFA070 spread -4 glow.
// diagG: cornerRadius 12, fill --background, stroke --border. Item rows [10, 20].
@@ -95,7 +95,7 @@ export const DoctorPanel: React.FC<DoctorPanelProps> = ({
return (
<div className={clsx('flex w-full flex-col gap-5', isPage && 'h-full')}>
{/* diagHero */}
- {/* Not `shadow-mint-card-sm`: design.pen draws this card at y16, and that
+ {/* Not `shadow-mint-card-sm`: this card's glow sits at y16, and that
rung is y8. Card washes are not this change's scope -- 41 of them are
still literals -- so it keeps its own value rather than being snapped
to the nearest rung. */}
diff --git a/ui/src/components/steps/UserList.tsx b/ui/src/components/steps/UserList.tsx
index 455ae4417..38b7b842f 100644
--- a/ui/src/components/steps/UserList.tsx
+++ b/ui/src/components/steps/UserList.tsx
@@ -705,7 +705,7 @@ export const UserList: React.FC = () => {
</label>
</div>
- {/* User cards — design.pen asPXu (VR/RoutingConfig) shared with /groups */}
+ {/* User cards (ui/design: settings/direct-messages/default) */}
<div className="flex-1 space-y-3 overflow-y-auto">
{visibleUsers.length === 0 ? (
<div className="rounded-xl border border-dashed border-border bg-surface-3/60 p-8 text-center text-[13px] text-muted">
@@ -840,7 +840,7 @@ export const UserList: React.FC = () => {
)}
</div>
- {/* Expanded body — design.pen asPXu (VR/RoutingConfig) shared with /groups, no @mention toggle */}
+ {/* Expanded body — RoutingConfigPanel shared with /groups, no @mention toggle (ui/design: settings/direct-messages/expanded) */}
{expanded && (
<RoutingConfigPanel
value={userConfig}