Repository navigation
feat(news): freeze Home news panel as demo snapshot - #630
Merged
Merged
Conversation
FinSearch's news pipeline is paused. /api/news/signals now serves the last live payload (2026-10-11 11:20 UTC) from dashboard/config/news_demo_snapshot.json behind NEWS_FEED_FROZEN, and the panel labels it "Demo news" instead of a frozen "Updated 0.2h ago". Also read signals' sentiment_score (the live field) in the Home Signals tab; it read the mock's `score` and rendered every live signal as 0.00. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- NEWS_FEED_FROZEN is now an env var read per request (unset = frozen; junk reads frozen and warns once), so the feed resumes from Render with no deploy. Tests set it explicitly instead of pinning the code default. - Snapshot loader caches only a successful load, returns a deep copy, and fails closed on valid-but-non-object JSON instead of 500ing. - The loader owns `demo` and the null `staleness_hours`; `demo` dropped from the committed JSON. - home-news-signals.js (second /api/news/signals consumer) labels the snapshot "Demo news"; both consumers show fixed dates, not ever-growing relative times. - Node tests for both renderers (demo line, dates, sentiment_score). - CLAUDE.md: freeze note moved out of the fail-closed section into an env bullet. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch was successfully deployed
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.
FinSearch's news feed is paused, so
/api/news/signalsserves the last live payload (2026-10-11 11:20 UTC, 50 stories / 13 signals) fromdashboard/config/news_demo_snapshot.json. No call to FinSearch while frozen.NEWS_FEED_FROZENenv var, read per request: unset = frozen; junk reads frozen and warns once.home-page.js,home-news-signals.js) show Demo news and fixed dates, not a frozen "Updated 0.2h ago" or ever-growing "3w ago". The loader ownsdemo: true/staleness_hours: null.unavailable) on unreadable or non-object JSON.s.score(mock field), but live signals carrysentiment_score, so every one rendered 0.00.NEWS_FEED_FROZEN=0in Render. No deploy needed.Verified: full backend suite green apart from
test_report_pdf(reportlab is not installed locally). New router and node tests were mutation-checked.🤖 Generated with Claude Code