feat: cockpit
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user