Agent-Market-Arena / src /lib /dataService.js

Commit History

Fix error handling in dataService: throw error when first page fetch fails
cbdf812
Running

lfqian commited on

try to fix data fetching issue
d31b817

vincentjim1025 commited on

Optimize data fetching: remove date range query and per-agent DB queries for better performance
4050e19

lfqian commited on

Fix agent end_date: query DB for latest date per agent to ensure accuracy
4258b89

lfqian commited on

Fix dateBounds: always read dates directly from Supabase using UTC to avoid timezone issues
65ab199

lfqian commited on

Fix dateBounds update: remove early pagination stop and add periodic dateBounds refresh
2447a78

lfqian commited on

Fix end_date calculation: ensure dateBounds.max uses latest DB date and fix allDates generation with UTC
a69c83a

lfqian commited on

Improve data fetching: track max date and auto-fetch missing pages
9addaf2

lfqian commited on

Fix cache staleness: auto-refresh when DB has newer data than cache
46cdc7a

lfqian commited on

Add comprehensive debug logs to trace data flow and find where last trading day is lost
33cd679

lfqian commited on

Fix date normalization and add debug logs for missing last trading day issue
b978dde

lfqian commited on

Fix data fetching: order by date instead of updated_at to ensure latest dates are included
a6e26a7

lfqian commited on

add: Feature
5fa7a59

Jimin Huang commited on