diff --git a/apps/app/.impeccable/design.json b/apps/app/.impeccable/design.json new file mode 100644 index 000000000..8f093e832 --- /dev/null +++ b/apps/app/.impeccable/design.json @@ -0,0 +1,316 @@ +{ + "schemaVersion": 2, + "generatedAt": "2026-11-11T19:54:07.567418+00:00", + "title": "Design System: Vibeface Web App", + "extensions": { + "colorMeta": { + "background-light": { + "role": "neutral", + "displayName": "Background Light", + "canonical": "oklch(1 0 0)", + "tonalRamp": [ + "oklch(0.150 0.0000 0)", + "oklch(0.260 0.0000 0)", + "oklch(0.380 0.0000 0)", + "oklch(0.500 0.0000 0)", + "oklch(0.620 0.0000 0)", + "oklch(0.740 0.0000 0)", + "oklch(0.860 0.0000 0)", + "oklch(0.950 0.0000 0)" + ] + }, + "background-dark": { + "role": "neutral", + "displayName": "Background Dark", + "canonical": "oklch(0.175 0.006 270)", + "tonalRamp": [ + "oklch(0.150 0.0045 270)", + "oklch(0.260 0.0060 270)", + "oklch(0.380 0.0060 270)", + "oklch(0.500 0.0060 270)", + "oklch(0.620 0.0060 270)", + "oklch(0.740 0.0060 270)", + "oklch(0.860 0.0042 270)", + "oklch(0.950 0.0015 270)" + ] + }, + "foreground-light": { + "role": "neutral", + "displayName": "Foreground Light", + "canonical": "oklch(0.21 0.012 270)", + "tonalRamp": [ + "oklch(0.150 0.0090 270)", + "oklch(0.260 0.0120 270)", + "oklch(0.380 0.0120 270)", + "oklch(0.500 0.0120 270)", + "oklch(0.620 0.0120 270)", + "oklch(0.740 0.0120 270)", + "oklch(0.860 0.0084 270)", + "oklch(0.950 0.0030 270)" + ] + }, + "foreground-dark": { + "role": "neutral", + "displayName": "Foreground Dark", + "canonical": "oklch(0.955 0.004 270)", + "tonalRamp": [ + "oklch(0.150 0.0030 270)", + "oklch(0.260 0.0040 270)", + "oklch(0.380 0.0040 270)", + "oklch(0.500 0.0040 270)", + "oklch(0.620 0.0040 270)", + "oklch(0.740 0.0040 270)", + "oklch(0.860 0.0028 270)", + "oklch(0.950 0.0010 270)" + ] + }, + "primary-light": { + "role": "primary", + "displayName": "Primary Light", + "canonical": "oklch(0.24 0.016 270)", + "tonalRamp": [ + "oklch(0.150 0.0120 270)", + "oklch(0.260 0.0160 270)", + "oklch(0.380 0.0160 270)", + "oklch(0.500 0.0160 270)", + "oklch(0.620 0.0160 270)", + "oklch(0.740 0.0160 270)", + "oklch(0.860 0.0112 270)", + "oklch(0.950 0.0040 270)" + ] + }, + "primary-foreground-light": { + "role": "primary", + "displayName": "Primary Foreground Light", + "canonical": "oklch(0.985 0.002 270)", + "tonalRamp": [ + "oklch(0.150 0.0015 270)", + "oklch(0.260 0.0020 270)", + "oklch(0.380 0.0020 270)", + "oklch(0.500 0.0020 270)", + "oklch(0.620 0.0020 270)", + "oklch(0.740 0.0020 270)", + "oklch(0.860 0.0014 270)", + "oklch(0.950 0.0005 270)" + ] + }, + "primary-dark": { + "role": "primary", + "displayName": "Primary Dark", + "canonical": "oklch(0.94 0.005 270)", + "tonalRamp": [ + "oklch(0.150 0.0037 270)", + "oklch(0.260 0.0050 270)", + "oklch(0.380 0.0050 270)", + "oklch(0.500 0.0050 270)", + "oklch(0.620 0.0050 270)", + "oklch(0.740 0.0050 270)", + "oklch(0.860 0.0035 270)", + "oklch(0.950 0.0013 270)" + ] + }, + "brand-light": { + "role": "accent", + "displayName": "Brand Light", + "canonical": "oklch(0.53 0.2 280)", + "tonalRamp": [ + "oklch(0.150 0.1500 280)", + "oklch(0.260 0.2000 280)", + "oklch(0.380 0.2000 280)", + "oklch(0.500 0.2000 280)", + "oklch(0.620 0.2000 280)", + "oklch(0.740 0.2000 280)", + "oklch(0.860 0.1400 280)", + "oklch(0.950 0.0500 280)" + ] + }, + "brand-dark": { + "role": "accent", + "displayName": "Brand Dark", + "canonical": "oklch(0.72 0.15 280)", + "tonalRamp": [ + "oklch(0.150 0.1125 280)", + "oklch(0.260 0.1500 280)", + "oklch(0.380 0.1500 280)", + "oklch(0.500 0.1500 280)", + "oklch(0.620 0.1500 280)", + "oklch(0.740 0.1500 280)", + "oklch(0.860 0.1050 280)", + "oklch(0.950 0.0375 280)" + ] + }, + "muted-light": { + "role": "neutral", + "displayName": "Muted Light", + "canonical": "oklch(0.965 0.004 270)", + "tonalRamp": [ + "oklch(0.150 0.0030 270)", + "oklch(0.260 0.0040 270)", + "oklch(0.380 0.0040 270)", + "oklch(0.500 0.0040 270)", + "oklch(0.620 0.0040 270)", + "oklch(0.740 0.0040 270)", + "oklch(0.860 0.0028 270)", + "oklch(0.950 0.0010 270)" + ] + }, + "muted-dark": { + "role": "neutral", + "displayName": "Muted Dark", + "canonical": "oklch(0.245 0.008 270)", + "tonalRamp": [ + "oklch(0.150 0.0060 270)", + "oklch(0.260 0.0080 270)", + "oklch(0.380 0.0080 270)", + "oklch(0.500 0.0080 270)", + "oklch(0.620 0.0080 270)", + "oklch(0.740 0.0080 270)", + "oklch(0.860 0.0056 270)", + "oklch(0.950 0.0020 270)" + ] + }, + "danger-light": { + "role": "accent", + "displayName": "Danger Light", + "canonical": "oklch(0.54 0.2 27)", + "tonalRamp": [ + "oklch(0.150 0.1500 27)", + "oklch(0.260 0.2000 27)", + "oklch(0.380 0.2000 27)", + "oklch(0.500 0.2000 27)", + "oklch(0.620 0.2000 27)", + "oklch(0.740 0.2000 27)", + "oklch(0.860 0.1400 27)", + "oklch(0.950 0.0500 27)" + ] + }, + "danger-dark": { + "role": "accent", + "displayName": "Danger Dark", + "canonical": "oklch(0.72 0.17 25)", + "tonalRamp": [ + "oklch(0.150 0.1275 25)", + "oklch(0.260 0.1700 25)", + "oklch(0.380 0.1700 25)", + "oklch(0.500 0.1700 25)", + "oklch(0.620 0.1700 25)", + "oklch(0.740 0.1700 25)", + "oklch(0.860 0.1190 25)", + "oklch(0.950 0.0425 25)" + ] + }, + "primary-foreground-dark": { + "role": "neutral", + "displayName": "Primary Foreground Dark", + "canonical": "oklch(0.2 0.01 270)", + "tonalRamp": [ + "oklch(0.15 0.01 270)", + "oklch(0.26 0.01 270)", + "oklch(0.38 0.01 270)", + "oklch(0.5 0.01 270)", + "oklch(0.62 0.01 270)", + "oklch(0.74 0.01 270)", + "oklch(0.86 0.01 270)", + "oklch(0.95 0.01 270)" + ] + } + }, + "shadows": [ + { + "name": "elevation-xs", + "value": "var(--elevation-xs)", + "purpose": "Existing small surface elevation; resolves to no shadow in dark mode." + } + ], + "motion": [ + { + "name": "ease-out", + "value": "cubic-bezier(0.23, 1, 0.32, 1)", + "purpose": "Existing shared easing." + } + ], + "breakpoints": [ + { + "name": "md", + "value": "768px" + } + ] + }, + "components": [ + { + "name": "Default button", + "kind": "button", + "refersTo": "button-primary", + "description": "Default neutral primary action.", + "html": "", + "css": ".ds-button{font-family:\"Geist Variable\",system-ui,sans-serif;font-size:15px;line-height:24px;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid transparent;border-radius:10px;background:var(--primary);color:var(--primary-foreground);font-weight:500;transition:background-color 150ms cubic-bezier(.23,1,.32,1)}.ds-button:hover{background:color-mix(in oklch,var(--primary) 88%,transparent)}.ds-button:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.ds-button:active{transform:scale(.97)}.ds-button:disabled{opacity:.5}" + }, + { + "name": "Outline button", + "kind": "button", + "description": "Secondary action using existing semantic tokens.", + "html": "", + "css": ".ds-button{font-family:\"Geist Variable\",system-ui,sans-serif;font-size:15px;line-height:24px;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid transparent;border-radius:10px;background:var(--primary);color:var(--primary-foreground);font-weight:500;transition:background-color 150ms cubic-bezier(.23,1,.32,1)}.ds-button:hover{background:color-mix(in oklch,var(--primary) 88%,transparent)}.ds-button:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.ds-button:active{transform:scale(.97)}.ds-button:disabled{opacity:.5}.ds-outline{background:var(--background);color:var(--foreground);border-color:var(--border)}.ds-outline:hover{background:var(--muted)}" + }, + { + "name": "Ghost button", + "kind": "button", + "description": "Secondary action using existing semantic tokens.", + "html": "", + "css": ".ds-button{font-family:\"Geist Variable\",system-ui,sans-serif;font-size:15px;line-height:24px;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid transparent;border-radius:10px;background:var(--primary);color:var(--primary-foreground);font-weight:500;transition:background-color 150ms cubic-bezier(.23,1,.32,1)}.ds-button:hover{background:color-mix(in oklch,var(--primary) 88%,transparent)}.ds-button:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.ds-button:active{transform:scale(.97)}.ds-button:disabled{opacity:.5}.ds-ghost{background:transparent;color:var(--foreground);border-color:transparent}.ds-ghost:hover{background:var(--muted)}" + }, + { + "name": "Input", + "kind": "input", + "description": "Single-line field.", + "html": "", + "css": ".ds-input{font-family:\"Geist Variable\",system-ui,sans-serif;font-size:15px;line-height:24px;min-height:36px;padding:4px 12px;border:1px solid var(--input);border-radius:10px;background:transparent;color:var(--foreground)}.ds-input::placeholder{color:var(--muted-foreground)}.ds-input:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.ds-input:disabled{opacity:.5}" + }, + { + "name": "Navigation row", + "kind": "nav", + "description": "Workspace navigation row.", + "html": "", + "css": ".ds-nav{font-family:\"Geist Variable\",system-ui,sans-serif;font-size:15px;line-height:24px;display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:8px;color:var(--foreground);text-decoration:none}.ds-nav[aria-current=page],.ds-nav:hover,.ds-nav:active{background:var(--muted)}.ds-nav:focus-visible{outline:2px solid var(--ring)}" + }, + { + "name": "List group", + "kind": "card", + "refersTo": "card", + "description": "Grouped settings rows; avoid nested cards.", + "html": "
设备设置
", + "css": ".ds-card{font-family:\"Geist Variable\",system-ui,sans-serif;font-size:15px;line-height:24px;border:1px solid var(--border);border-radius:14px;padding:16px;background:var(--card);color:var(--foreground)}" + }, + { + "name": "Status chip", + "kind": "chip", + "description": "Labeled status; color supplements the words.", + "html": "等待确认", + "css": ".ds-chip{display:inline-flex;padding:2px 8px;border-radius:8px;background:var(--warning-soft);color:var(--warning);font-size:13px;line-height:20px}" + } + ], + "narrative": { + "northStar": "Quiet personal workspace", + "overview": "**Creative North Star: \"Quiet personal workspace\"**\n\nThis description records the incumbent interface; the source tokens below define the system.\n\nThe web app is an Operate surface. It keeps attention on the current conversation or task while the sidebar provides stable orientation. Geist, cool neutral surfaces, and a restrained violet brand accent make state changes legible without turning the workspace into a dashboard of competing signals.\n\n**Key Characteristics:** calm, task-first, state-explicit, keyboard-friendly, responsive.", + "keyCharacteristics": [ + "calm", + "task-first", + "state-explicit", + "keyboard-friendly", + "responsive" + ], + "rules": [], + "dos": [ + "Do keep the primary task visible in the middle column.", + "Do make recovery, waiting, and offline states explicit in words.", + "Do reuse `packages/theme/theme.css` and the existing UI primitives.", + "Do preserve keyboard order and 44px mobile hit areas.", + "Do keep task metrics contextual to the task overview; the existing 28px metric masthead is not a conversation pattern.", + "Do retain the existing Bot identity halo and task overview gradient as incumbent patterns; additions require a surface-specific reason." + ], + "donts": [ + "Don't use color alone for status.", + "Don't create one-off spacing or component variants when an existing primitive fits." + ] + } +} diff --git a/apps/app/.impeccable/surfaces/workspace.md b/apps/app/.impeccable/surfaces/workspace.md new file mode 100644 index 000000000..c40bc17c5 --- /dev/null +++ b/apps/app/.impeccable/surfaces/workspace.md @@ -0,0 +1,38 @@ +# Web 工作区 + +## Mode + +Operate + +## Job + +让个人快速看懂当前 Bot/任务状态,并完成下一步操作。 + +## Reading order + +1. 当前上下文(Bot、任务或频道) +2. 需要注意的等待、错误或恢复状态 +3. 对话/任务内容 +4. 一个明确的下一步动作 + +## Preserve + +- 侧栏导航、键盘顺序、消息与任务的独立上下文 +- 未知写入结果先对账的文案和状态 +- 现有主题、Bot face、焦点环和响应式断点 + +## Quieting and layout decisions + +- 让标题、上下文和动作共享同一中列对齐线。 +- 使用邻近关系和分隔线表达列表分组,避免增加嵌套卡片。 +- 保留等待、恢复、离线的颜色,但始终配合文字或图标。 +- 页面只保留一个主任务路径;辅助动作进入现有 header action slot。 +- 宽屏使用侧栏,窄屏使用返回和抽屉;不引入新的导航模式。 + +## Required states + +loading, empty, offline, waiting, recovery, failed, keyboard focus, narrow viewport, long text. + +## Acceptance evidence + +浏览器渲染检查需覆盖宽屏、窄屏、深色模式、键盘焦点、长文本和待处理状态。 diff --git a/apps/app/DESIGN.md b/apps/app/DESIGN.md new file mode 100644 index 000000000..a631505b0 --- /dev/null +++ b/apps/app/DESIGN.md @@ -0,0 +1,108 @@ +--- +name: Vibeface Web App +description: A focused workspace for conversations, tasks, devices, and recovery. +colors: + background-light: "oklch(1 0 0)" + background-dark: "oklch(0.175 0.006 270)" + foreground-light: "oklch(0.21 0.012 270)" + foreground-dark: "oklch(0.955 0.004 270)" + primary-light: "oklch(0.24 0.016 270)" + primary-foreground-light: "oklch(0.985 0.002 270)" + primary-dark: "oklch(0.94 0.005 270)" + primary-foreground-dark: "oklch(0.2 0.01 270)" + brand-light: "oklch(0.53 0.2 280)" + brand-dark: "oklch(0.72 0.15 280)" + muted-light: "oklch(0.965 0.004 270)" + muted-dark: "oklch(0.245 0.008 270)" + danger-light: "oklch(0.54 0.2 27)" + danger-dark: "oklch(0.72 0.17 25)" +typography: + title: + fontSize: "20px" + fontWeight: 600 + lineHeight: "28px" + heading: + fontSize: "16px" + lineHeight: "24px" + task-metric: + fontSize: "28px" + badge: + fontSize: "11px" + body: + fontFamily: "Geist Variable, -apple-system, BlinkMacSystemFont, PingFang SC, Hiragino Sans GB, Microsoft YaHei, system-ui, sans-serif" + fontSize: "15px" + lineHeight: "24px" + meta: + fontFamily: "Geist Variable, -apple-system, BlinkMacSystemFont, PingFang SC, Hiragino Sans GB, Microsoft YaHei, system-ui, sans-serif" + fontSize: "13px" + lineHeight: "20px" +rounded: + base: "0.625rem" + control: "0.625rem" + inline-code: "4px" + xl: "0.875rem" +spacing: + unit: "4px" + page: "16px" +components: + button-primary: + backgroundColor: "{colors.primary-light}" + textColor: "{colors.primary-foreground-light}" + rounded: "{rounded.control}" + card: + backgroundColor: "{colors.background-light}" + rounded: "{rounded.xl}" +--- + +# Design System: Vibeface Web App + +## Overview + +**Creative North Star: "Quiet personal workspace"** + +This description records the incumbent interface; the source tokens below define the system. + +The web app is an Operate surface. It keeps attention on the current conversation or task while the sidebar provides stable orientation. Geist, cool neutral surfaces, and a restrained violet brand accent make state changes legible without turning the workspace into a dashboard of competing signals. + +**Key Characteristics:** calm, task-first, state-explicit, keyboard-friendly, responsive. + +## Colors + +The shared source of truth is `packages/theme/theme.css`. Light mode uses white surfaces and cool near-black text; dark mode separates page, card, popover, and sidebar by tonal steps. Default buttons use the neutral `primary`/`primary-foreground` pair. Violet marks focus, selection, and brand identity; conversation send controls may use the current Bot tint. Success, warning, danger, and info colors communicate state and must be paired with text or icon labels. + +## Typography + +Geist Variable is the UI voice. The 15/24 body scale supports dense task reading; 13/20 metadata recedes without becoming inaccessible. Headings use tight tracking and balanced wrapping. Geist Mono is reserved for code, IDs, logs, and measurements. + +## Layout + +The workspace uses a persistent sidebar at wide widths and a single content column capped by `--page-width` (48rem). Header, page content, and task panels share the same alignment. Mobile collapses navigation and preserves 44px touch targets. Use `gap` and the existing 4px rhythm; keep generous separation between sections and tighter spacing within a control group. + +## Elevation & Depth + +Depth is tonal first. Light mode uses subtle `elevation-xs`/`elevation-sm` on interactive cards; dark mode uses surface contrast and outlines, reserving a larger shadow for floating layers. Do not stack a border and a broad shadow on ordinary cards. + +## Shapes + +The base radius is 10px, with 14px cards and 20px sheets where the component already establishes that language. Pills appear on compact status controls and the existing conversation starter suggestions. Focus is an inset or 2px ring derived from `--ring`. + +## Components + +- **Sidebar and navigation rows:** stable 40px desktop rows, 44px mobile rows, active state plus icon/label. +- **Interactive rows:** shared `interactive-row` utility for hover, focus, and pressed feedback. +- **Cards and list groups:** `bg-card`, border, and small elevation; list groups use dividers rather than nested cards. +- **Buttons and fields:** existing UI primitives provide variants, focus treatment, and mobile sizing. +- **EmptyState:** icon, concise heading, optional explanation, and one recovery action. +- **Task overview:** the existing masthead uses three metrics, a gradient, and soft blur. Review its populated and empty states before changing or extending it. +- **BotFace and status marks:** identity and state are reinforced by text or icons; color is never the only signal. + +## Do's and Don'ts + +- Do keep the primary task visible in the middle column. +- Do make recovery, waiting, and offline states explicit in words. +- Do reuse `packages/theme/theme.css` and the existing UI primitives. +- Do preserve keyboard order and 44px mobile hit areas. +- Do keep task metrics contextual to the task overview; the existing 28px metric masthead is not a conversation pattern. +- Do retain the existing Bot identity halo and task overview gradient as incumbent patterns; additions require a surface-specific reason. +- Don't use color alone for status. +- Don't create one-off spacing or component variants when an existing primitive fits. diff --git a/apps/app/PRODUCT.md b/apps/app/PRODUCT.md new file mode 100644 index 000000000..3a685ac6c --- /dev/null +++ b/apps/app/PRODUCT.md @@ -0,0 +1,46 @@ +# Product + + + +## Platform + +web + +## Users + +Individuals managing their own Bot conversations, tasks, devices, and recovery state. + +## Product Purpose + +Vibeface gives one person a safe workspace for directing Bot work, reviewing outcomes, and keeping connected devices under personal control. Success means the person can understand what is waiting, act on it, and recover from uncertain delivery without repeating a side effect. + +## Positioning + +The workspace separates Bot conversations from device identity and delivery state while keeping their causal context visible. + +## Operating Context + +People use the web app as a desktop or mobile browser workspace. The sidebar, inbox, task views, device views, and conversation screens are the primary operating surfaces. + +## Capabilities and Constraints + +The app supports Bot conversations, tasks, channels, inbox decisions, device joining, recovery, settings, and local/offline state. Account, device, event, attachment, route, and command data stays within the person's network. Unknown write results must be reconciled before retrying. + +## Brand Commitments + +The product name is Vibeface. Existing Bot faces and the shared cool-neutral/violet theme are retained. + +## Evidence on Hand + +Routes and components under `apps/app/src/`, shared semantic tokens in `packages/theme/theme.css`, and existing accessibility and reduced-motion handling. + +## Product Principles + +- Make the current task and its state easy to understand. +- Keep personal network and device boundaries explicit. +- Never imply a write succeeded when its result is unknown. +- Prefer one clear recovery action over decorative complexity. + +## Accessibility & Inclusion + +Keyboard focus, reduced motion, safe areas, readable metadata, visible labels, and touch-sized controls are product requirements. diff --git a/apps/app/src/features/chat/conversation-screen.tsx b/apps/app/src/features/chat/conversation-screen.tsx index dc00d8777..caadebde9 100644 --- a/apps/app/src/features/chat/conversation-screen.tsx +++ b/apps/app/src/features/chat/conversation-screen.tsx @@ -444,19 +444,20 @@ function JobLine({ job, retry, refresh }: { job: ManagerJob; retry?: () => Promi } const intents = [ - { value: 'continue', label: '发送', icon: Send }, + { value: 'continue', label: '普通消息', icon: Send }, { value: 'new_task', label: '新任务', icon: ListPlus }, { value: 'defer', label: '稍后处理', icon: Clock }, ] as const -/** How the next message goes, folded into one icon inside the box; the icon turns to the choice while it is not a plain send. */ +/** Keep the current sending mode visible beside its menu. */ function IntentMenu({ intent, busy, onChange }: { intent: InputIntent; busy: boolean; onChange: (intent: InputIntent) => void }) { const current = intents.find((item) => item.value === intent) ?? intents[0] const label = (item: (typeof intents)[number]) => item.value === 'continue' && busy ? '补充当前工作' : item.label return - diff --git a/apps/app/src/features/workspace/conversation-list.tsx b/apps/app/src/features/workspace/conversation-list.tsx index f8c661050..f46fce0ef 100644 --- a/apps/app/src/features/workspace/conversation-list.tsx +++ b/apps/app/src/features/workspace/conversation-list.tsx @@ -1,5 +1,5 @@ import { Link } from "@tanstack/react-router" -import { Bot, MessagesSquare, Plus, WifiOff, type LucideIcon } from "lucide-react" +import { Bot, MessagesSquare, Plus, WifiOff } from "lucide-react" import type { ReactNode } from "react" import { CountBadge, EmptyState, PrimaryMark, Skeleton } from "@/components/app/kit" import { BotFace, botMood } from "@/components/app/bot-face" @@ -11,6 +11,7 @@ import { byRecent, listTime } from "@vibeface/client/workspace/home.ts" import { awaitsAnswer } from "@vibeface/client/workspace/questions.ts" import { unreadCounts } from "@vibeface/client/chat/timeline.ts" import { ConnectionCapsule, MoodTag, useCreateBot } from "./workspace-shell" +import { cn } from "@/lib/utils" /** The phone's home: channels, then every bot by its newest message; 任务 and 待处理 are tabs. */ export function ConversationList() { @@ -26,7 +27,7 @@ export function ConversationList() { const last = bot.last_message, mood = botMood(bot, workspace) const preview = notes.at(-1)?.text.trim() || (last ? `${last.role === "user" ? "你:" : ""}${last.text}` : "还没有消息") return
  • - } unread={unread[bot.conversation_id] ?? 0} time={last ? listTime(last.created_at_ms, now) : undefined} preview={preview} + } unread={unread[bot.conversation_id] ?? 0} time={last ? listTime(last.created_at_ms, now) : undefined} preview={preview} name={bot.name} mark={<>{workspace.primary === bot.conversation_id ? : null}} />
  • })} @@ -34,7 +35,10 @@ export function ConversationList() { else if (!workspace.synced) list = else list =