Repository navigation
fix(dashboard): 看板单会话卡片补回群头像 - #3077
Merged
Merged
Conversation
会话控制页精简为看板后,只有同群多会话的群簇在簇头显示群头像, 单会话卡片没有任何群标识。不在群簇里的单张卡片在勾选框后显示群头像, 悬停显示群名;簇内成员仍由簇头统一显示,不重复。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
November 7, 2026 16:13
This was referenced Nov 7, 2026
|
🚀 Released in v3.59.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.
现象
会话控制页精简为看板后(#2552,v3.56.0 起),只有同一个群里有多个会话时才会聚成群簇、在簇头显示群头像;一个群只有一个会话时单独渲染成卡片,卡片上没有任何群标识。用户反馈旧版卡片左上角有群头像,升级后看不出单会话属于哪个群;维护者确认单会话的头像需要加回来。
改动
KanbanCard加可选属性chatAvatar,为真时在勾选框和 CLI 标签之间显示群头像(复用群簇头的chatAvatarHtml,悬停显示群名)。chatAvatar;群簇内的成员卡片不传,头像由簇头统一显示,不重复。.kanban-card-avatar,20×20,和群簇头头像同一写法。memo比较函数把chatAvatar纳入,保持比较器覆盖所有影响输出的属性。卡片在单张和簇内之间切换时,key 和根元素都会变,实际靠 React 重新挂载刷新,这一处属于完备性防御(评审指出,已更正描述)。没有
chatId的行不显示头像;表格视图不变。截图
合成数据、浅色主题,同一组会话:两张单会话卡片 + 一个折叠的两会话群簇。
浏览器内量得:头像 20×20,在勾选框与 CLI 标签之间垂直居中;群簇头头像不变。
测试
test/sessions-kanban-chat-avatar.test.ts:kanban-card-avatar,title为群名,内含orb-avatar,顺序为勾选框 → 头像 → CLI 标签;chatAvatar→ 第一条红;簇内成员也传chatAvatar→ 第二条红。bun run build通过;相关的sessions-kanban-chat-avatar/sessions-kanban-card-click/session-kanban/dashboard-sessions-ui共 77 条全绿。🤖 Generated with Claude Code