feat(store): show catalog health & evaluation on item detail#517
Merged
Conversation
Add a Health radar chart (popularity/freshness/source_trust signals) and an Evaluation panel (6 rubric dimensions + final score + evaluator) to the store item-detail page, rendered in the left main column. Both panels are conditionally shown only when the item carries the data, so user-authored items without upstream scoring render unchanged. - health-radar.tsx: pure-SVG 3-axis radar, theme-aware, native design tokens - item-detail-content.tsx: two conditional panels (hasHealthSignals/hasEvaluation) - api.ts: optional health/evaluation fields on CapabilityItem - i18n: health.* / eval.* panel strings (zh/en)
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.
改动内容
在 store 详情页(左侧主内容列)新增健康度雷达图和评估详情面板,仅当 item 携带上游评分数据时渲染。
具体变更
health-radar.tsx:纯 SVG 三轴雷达图(popularity / freshness / source_trust),跟随主题、使用项目设计 token,无图表库依赖item-detail-content.tsx:两块条件渲染面板(hasHealthSignals/hasEvaluation)api.ts:CapabilityItem新增可选health/evaluation字段store.detail.health.*/store.detail.eval.*(中英)说明
{}视为无数据)。