Repository navigation
feat(dashboard): 重构群组管理页,以复制为新群替代 Profile - #2553
Merged
Merged
Conversation
- 列表行只列在群 bot(带头像,点 bot 直达其本群设置),整行可点进管理;
「仅缺 bot」开关换成按机器人筛选
- 去掉「保存 Profile」与建群弹窗的 Profile 下拉,新增「复制为新群」:
预选源群 bot 与绑定目录,建群后复制源群的群级角色及其注入/私聊设置
- 管理弹窗改为右侧抽屉 + 概览/机器人设置/协作模式/成员权限/退群解散五个标签;
概览用 bot × 设置矩阵一屏看全,机器人设置按 bot 一屏展示全部设置
- 群内 bot 头像改从 roster 取(memberBots 不带头像 URL)
- 同步改写 verify-group-{card-mode,idle-close,reply-mode} 浏览器验证脚本
Co-Authored-By: Claude Opus 5.5 <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
October 29, 2026 20:07
- copyChatRoles:hasRole 为非 true(即使回包畸形地带了 content)也必须跳过, 钉住 hasRole 门独立于 content.trim() 的双重防御 - CreateDialog:建群回包 invalidBotIds 里的 bot 不发角色 PUT,钉住剔除逻辑 - 搜索框实际仍匹配 ownerId,placeholder 补回「群主」,文案与行为一致 两例经删除式变异验证:摘掉对应守卫后仅目标用例咬红,其余用例不受影响。 Co-Authored-By: Claude Code <[email protected]>
deepcoldy
pushed a commit
that referenced
this pull request
Oct 30, 2026
deepcoldy
pushed a commit
to uestcwangci/botmux
that referenced
this pull request
Oct 30, 2026
…ity-recovery-2473-final 四次同步 master(0345cc5f1..eb43116,14 提交,含 deepcoldy#2514/deepcoldy#2534/deepcoldy#2535/deepcoldy#2541/ deepcoldy#2467/deepcoldy#2550/deepcoldy#2553/deepcoldy#2554/deepcoldy#2557/deepcoldy#2561/deepcoldy#2562 等)。与本 PR 仅 worker-pool.ts / worker.ts 文件交集,git 自动合并干净、无冲突标记;PR 关键接线(codexApp TurnFailureCode 四处、!turn.error 守卫、pool 恢复落账、worker 签名 final 失败字段、Pi boot 20s 预算)逐处 grep 仍在原位。合并树 build 过、 codex 集成/容量/engine/deployment/schedule 共 276 项 vitest 绿、 容量+Pi argv 46 项 bun 绿。 Co-Authored-By: Claude Code <[email protected]>
This was referenced Oct 30, 2026
|
🚀 Released in v3.56.0 |
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.
改了什么
Dashboard「群组管理」页的产品重构,解决三个问题:列表信息密度低、Profile 功能没人用、管理弹窗难查看。
列表
+N;不再把整个 roster 逐个标「缺失」。几十个 bot 时,行高从一屏缩到 64–128px。用「复制为新群」替代 Profile
/role profile命令和角色页的 Profile 管理不动。管理弹窗改为右侧抽屉 + 5 个标签
label属性用来换显示标题;所有标签页常驻挂载、只切hidden,切标签不丢未保存的输入。顺带修复
/api/groups的memberBots不带头像 URL,现改从顶层 roster 按 appId 取。影响面
src/dashboard/web/)。daemon、IPC 接口、存储均未改动;「复制为新群」复用现有的POST /api/groups/create、GET/PUT /api/roles/:app/:chat。SaveProfileDialog、群行 Profile 匹配状态,以及相关 helper / 文案 / 样式。角色页仍使用的GroupProfileStatus、role-profile-match保留不动。scripts/verify-group-{card-mode,idle-close,reply-mode}.mjs按新结构改写(先切到对应 bot 再断言),三个脚本均通过。测试验证
test/dashboard-groups-redesign.test.ts(15 例):按 bot 筛选、复制预填(剔除已不在 roster 的 bot、目录取多数)、只复制群级角色并带上设置、复制失败如实上报、概览矩阵三态、点 bot / 点矩阵行直达设置、行点击不与行内按钮重复触发、roster 头像回填。bun run test全量另有 23 个文件失败(root 权限、Linux 隔离、Bun SQLite 等环境项),在未改动的HEAD上同样失败,与本 PR 无关。截图
列表(在群 bot + 头像)

按机器人筛选

管理抽屉 · 概览矩阵

管理抽屉 · 单个 bot 的全部设置

管理抽屉 · 退群 / 解散

复制为新群

手机宽度(420px)

🤖 Generated with Claude Code