Page - News

abstract

Economic calendar viewer — shows upcoming and past high-impact events (NFP, CPI, Fed decisions), their actual vs. forecast vs. previous values, and LLM impact verdicts that guide the news filter.

Route

PropertyValue
Path/news
Filefrontend/src/app/news/page.tsx
Auth RequiredNo
LayoutRoot layout with sidebar
Dynamic SegmentNone

Component Tree

NewsPage (page.tsx)
├── AppHeader (title="Economic Calendar")
├── Toolbar: date range filter + impact filter + "Fetch Latest" button
├── Event List / Table
│   └── EconomicEventRow × N
│       ├── Time (colored: upcoming=blue, passed=gray)
│       ├── Impact badge (HIGH=red, MEDIUM=orange, LOW=green)
│       ├── Title + currency flag
│       ├── Actual / Forecast / Previous values
│       ├── LLM verdict badge (bullish_usd / bearish_usd / neutral)
│       └── Actions: "Analyze" button → POST /news/{id}/analyze
└── Empty state (no events in selected range)

Data Layer

Server State — Direct fetch

CallAPITriggered When
Fetch eventsGET /api/v1/newsOn mount + filter changes
Fetch latestPOST /api/v1/news/fetch"Fetch Latest" button
Analyze eventPOST /api/v1/news/{id}/analyzePer-row "Analyze" button
RoleLink
Backend APIAPI-News