fix(firms): label a snapshot that ends at a set time with that time, not LIVE

A FIRMS source may answer the 24 hours to a set time, naming its end as
`at` (epoch ms). The layer row then reads "24 h to MM-DD HH:MM UTC"
instead of "LIVE · updated ...", and getStats() reports `at`. A
snapshot without `at` (the trailing 24 hours to now, as the dev proxy
serves) keeps the LIVE label. Translated in every catalog.
This commit is contained in:
Sameh Khamis committed 2026-11-10 08:11:58 -08:00
1 parent 9cfac35e38
commit 43706b8dd0
17 files changed
+73 -3

No files matched your search

+4
View File
@@ -145,6 +145,10 @@ export async function fetchFirms(
*
* Routes:
* GET /api/firms → {fetchedAt, stale, ttlMs, sources, count, fires}
*
* The trailing 24 hours to now. A source may instead answer the 24 hours to
* a set time, naming its end as `at` (epoch ms); the layer's row then shows
* that time rather than LIVE. This proxy never sets `at`.
* GET /api/firms/status → {hasKey, lastFetch, count, stale, ttlMs, transactions}
*
* Keyless (no FIRMS_MAP_KEY): /api/firms → 503 {error:'no_key'}; status →