feat: 增加人物关系图谱#29
Merged
Merged
Conversation
added 3 commits
June 7, 2026 12:42
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.
功能描述
完成 Sprint 8.3:把 React 角色视图里的
characters[].relationships从角色卡静态标签升级为“人物关系图谱”。顶部展示全局同场网络、角色数和关系数,关系卡显示双方人物、关系类型和可见说明;角色卡仍保留局部关系标签。实现思路
不新增后端字段,直接消费主线 YAML 中的关系数组。前端会过滤未知目标、按无向边去重双向
co_appears,并提供空关系降级状态。组件测试覆盖图谱标题、关系计数、双向去重、关系说明可见和空状态。测试方式
cd webapp/frontend && npm run testcd webapp/frontend && npm run buildpython -m pytest -q