feat(dashboard): wire deterministic news sentiment snapshot into Dashboard - #6
Open
ningyuan7 wants to merge 2 commits into
Hidden character warning
The head ref may contain hidden characters: "feat\u2011dashboard\u2011news\u2011sentiment"
Open
feat(dashboard): wire deterministic news sentiment snapshot into Dashboard#6ningyuan7 wants to merge 2 commits into
ningyuan7 wants to merge 2 commits into
Conversation
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.
What
backend/dashboard/news_sentiment.py:从 Dashboard 新闻列表确定性聚合sentiment_bias/sentiment_trend/heat/catalyst_events,零额外 API 调用/api/dashboard新闻 payload 增加sentiment_snapshot字段,且不改动缓存对象NewsSentimentOverview优先展示后端快照的趋势、催化事件与价格传导状态,保留客户端兜底price_transmission=status=todo时不推断共振/背离,保持数据真实性防线Why
Dashboard 之前只用新闻列表做客户端估算,NewsAgent 已经聚合好的舆情快照没有暴露给看板。本 PR 打通这条链路。
Tests
test_dashboard_news_sentiment_snapshot.py6 条 + dashboard 回归 23 条通过NewsSentimentOverview.test.tsx6 条通过npm run build通过