Skip to content

feat: 增加人物关系图谱#29

Merged
xyh202131 merged 3 commits into
mainfrom
feature/character-relationship-map
Jun 7, 2026
Merged

feat: 增加人物关系图谱#29
xyh202131 merged 3 commits into
mainfrom
feature/character-relationship-map

Conversation

@xyh202131

Copy link
Copy Markdown
Collaborator

功能描述

完成 Sprint 8.3:把 React 角色视图里的 characters[].relationships 从角色卡静态标签升级为“人物关系图谱”。顶部展示全局同场网络、角色数和关系数,关系卡显示双方人物、关系类型和可见说明;角色卡仍保留局部关系标签。

实现思路

不新增后端字段,直接消费主线 YAML 中的关系数组。前端会过滤未知目标、按无向边去重双向 co_appears,并提供空关系降级状态。组件测试覆盖图谱标题、关系计数、双向去重、关系说明可见和空状态。

测试方式

  1. cd webapp/frontend && npm run test
  2. cd webapp/frontend && npm run build
  3. python -m pytest -q

@xyh202131 xyh202131 merged commit e5f4140 into main Jun 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant