diff --git a/src/renderer/src/mock/mocks/v32-room-context.tsx b/src/renderer/src/mock/mocks/v32-room-context.tsx new file mode 100644 index 0000000..040ceec --- /dev/null +++ b/src/renderer/src/mock/mocks/v32-room-context.tsx @@ -0,0 +1,170 @@ +import type { ReactNode } from 'react' +import { BookmarkPlus, Copy, CornerDownRight, MessageSquarePlus, Plus, Trash2 } from 'lucide-react' +import { BotAvatar } from '@/components/ui/Avatar' +import { Button } from '@/components/ui/Button' +import { SwitchPill } from '@/components/ui/Controls' +import { TextInput } from '@/components/ui/Field' +import { IconButton } from '@/components/ui/IconButton' +import { MENU_SURFACE } from '@/components/ui/Menu' +import { cn } from '@/lib/cn' + +/** + * v32:群聊共享背景(PR goxf/feat-room-context)。 + * 左 = 群设置新分区「背景」:群背景文字、成员视角、群共享技能。 + * 右 = 群聊:顶部「新话题」,消息菜单「沉淀为群背景」,新话题分界线。 + * 背景/技能/视角只在变了、或成员换新会话时整段发给成员一次。 + */ +const noop = () => {} +const NEW_TAG = 'inline-flex h-5 items-center rounded-full bg-accent-50 px-2 text-[11px] font-medium text-accent-700 dark:text-accent-400' + +function Section({ title, hint, action, children }: { title: string; hint?: string; action?: ReactNode; children: ReactNode }) { + return ( +
+
+
+

{title}

+ {hint &&

{hint}

} +
+ {action} +
+ {children} +
+ ) +} + +const CONTEXT = `项目:BotArk 自用版,Electron + TypeScript。 +目标用户只有自己,Windows 便携版。 + +[本轮结论 · 2026-12-03 10:40] +- @Claude: 本地存储用 SQLite,不上云。 +- @GPT: 更新包走 GitHub Release。` + +function SettingsPanel() { + return ( +
+
+

群设置

+ 背景 +
+
+