refactor(web): 组织树合一(真 reports_to + 可交互) — #370#389
Merged
Conversation
之前分工面板有两棵组织树:我的 OrgTree(按 channel_roles.reports_to)+ 早先的 OrgTreePreview(#281,按 lineage.parent_agent spawn 血缘)。#281 注释已写明「真正 的管理层级需要后端支持,是后续项」——#370 正是补上了那个后端(reports_to)。合一: - OrgTreePreview 数据源改为**优先 channel_roles.reports_to**(#370 正式管理层级, 可跨 owner),无显式设置回落 lineage → 这棵更完善的树从此显示真汇报线 - 把「就地设向谁汇报」交互加到 OrgTreePreview 节点(moderator 才显下拉),复用 已有 setReportsTo;办公软件式组织图既能看也能改 - 删除我冗余的 OrgTree 组件/测试/strings 及其 render + 死 CSS 一棵树、真数据、可交互、无重复。验证:web 650 全过、tsc/build 干净。 Refs #370 Claude-Session: https://claude.ai/code/session_01PgxkZeqJmDge3dYe9W2tPZ
leeguooooo
added a commit
that referenced
this pull request
Jul 12, 2026
owner 定 #370 方案A:把重叠的三个工具栏面板合成一个「团队」入口——组织架构、 分工、在线状态、协调一处看,解决「同一批信息拆到三个面板、来回跳」的认知负荷 (也是「协调很多用户用不明白」的根因)。 - 工具栏:分工/协调/Agent 三个按钮 → 单一「团队」按钮(分工数 + 在线数 + 协调 活跃徽标) - 团队面板:DivisionBoard(顶部 OrgTreePreview 组织树 + 分工编辑)+ Agent 状态板 + 协调区,用分区标题让大信息量可扫读 - ChannelPanel 类型收敛 charter/team/tasks/search/settings;loadTaskLedger 覆盖 team (Agent 板需 task 数据);面板头 title/subtitle 走 team - i18n en+zh + 分区 CSS 组织树核心(#385/#389)+ 本合并 = #370 方案A 落地。验证:web 661 全过(i18n 源 测试更新为团队按钮的在线态断言)、tsc/build 干净。 Refs #370 Claude-Session: https://claude.ai/code/session_01PgxkZeqJmDge3dYe9W2tPZ
leeguooooo
added a commit
that referenced
this pull request
Jul 12, 2026
#370 第 1 点:分工应在公告里单独一块展示、和其他内容分开。公告面板在 CharterBanner 下方加一条只读分工摘要(host=X · N worker · N reviewer),点「查看团队 →」跳到合并后 的团队面板看组织树/全貌。分工数据来自 channelRoles,不新造模型。 至此 #370 方案A 全部要点落地:①分工在公告单列(本 PR)②协调并入团队面板(#395) ③任务详情/检索(#271 + 附件 #369)④分工/协调/Agent/组织架构合并为团队面板(#385/#389/#395)。 验证:web 661 全过(i18n en/zh 对齐)、tsc/build 干净。 Refs #370 Claude-Session: https://claude.ai/code/session_01PgxkZeqJmDge3dYe9W2tPZ
Closed
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.
分工面板之前有两棵组织树:我的 OrgTree(按 reports_to)+ 早先 #281 的 OrgTreePreview(按 lineage spawn 血缘)。#281 注释已写明「真正的管理层级需后端支持,是后续项」——#370 补上了那个后端。本 PR 合一:
一棵树、真数据、可交互、无重复。web 650 全过、tsc/build 干净。
Refs #370
https://claude.ai/code/session_01PgxkZeqJmDge3dYe9W2tPZ