feat: cockpit

This commit is contained in:
OpenSquared
2026-07-27 08:29:55 +02:00
parent a08e8e1b11
commit ce09159bfb
4 changed files with 48 additions and 12 deletions

View File

@@ -109,7 +109,11 @@ export default function Dashboard() {
const navigate = useNavigate()
const { data: riskScore, isLoading: riskLoading } = useGeoRiskScore()
const { data: allQuotes } = useAllQuotes()
const { data: ecoCalendarData } = useEcoCalendar({ period: 'recent', limit: 150, impacts: 'high,medium,low' })
// limit must comfortably cover the full ±(7d past, 14d future) "recent" window across all
// currencies/impacts — ORDER BY event_date ASC means a too-small limit gets entirely
// consumed by the past-week + very-near-term events, silently truncating this week's
// later days (e.g. Tue-Thu) out of the response before the frontend ever sees them.
const { data: ecoCalendarData } = useEcoCalendar({ period: 'recent', limit: 400, impacts: 'high,medium,low' })
const { data: portfolio } = usePortfolioSummary()
const { data: lastScoresData } = useLastScores()
const { data: allPatternsData } = useAllPatterns()