Skip to content

feat(news): freeze Home news panel as demo snapshot - #630

Merged
FlyM1ss merged 2 commits into
mainfrom
feat/news-demo-freeze
Oct 11, 2026
Merged

FlyM1ss merged 2 commits into
mainfrom
feat/news-demo-freeze

Conversation

@FlyM1ss

@FlyM1ss FlyM1ss commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

FinSearch's news feed is paused, so /api/news/signals serves the last live payload (2026-10-11 11:20 UTC, 50 stories / 13 signals) from dashboard/config/news_demo_snapshot.json. No call to FinSearch while frozen.

  • NEWS_FEED_FROZEN env var, read per request: unset = frozen; junk reads frozen and warns once.
  • Both Home news consumers (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 owns demo: true / staleness_hours: null.
  • The loader caches only a successful load, returns a deep copy, and fails closed (unavailable) on unreadable or non-object JSON.
  • Fix: the Signals tab read s.score (mock field), but live signals carry sentiment_score, so every one rendered 0.00.
  • Resume: re-enable the FinSearch timers, then set NEWS_FEED_FROZEN=0 in 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

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]>
@vercel

vercel Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
agentic-trading-lab Ready Ready Preview Oct 11, 2026 1:12pm UTC

- 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]>
@FlyM1ss
FlyM1ss merged commit 06e4b7e into main Oct 11, 2026
8 checks passed

This branch was successfully deployed

1 active deployment
Preview — 12ee320e Deployed Oct 11, 2026 by vercel[bot]
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