mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-22 11:12:18 +00:00
Regional News showed "REGIONAL NEWS UNAVAILABLE" above populated rows and a
static "RECENT" footer over months-old articles. The status banner kept
`display: grid` when hidden, every non-empty answer carried the unavailable
text, and nothing limited or sorted articles by age.
- One window (regionalNewsWindow.js, 24 h): the local proxy asks Google News
with `when:1d` and GDELT for 24 h, drops undated, older or future-dated
articles, sorts newest first, and reports newsWindowHours/newsFetchedAt.
- The Cockpit labels four states: fresh (banner hidden, "LAST 24 H"),
kept after a failed refresh ("CACHED · REFRESH FAILED"), no news in the
window, and unavailable. The footer lives in the news state, so it
survives page and tab changes, and the client drops out-of-window rows.
- `.cockpit-brief-status[hidden]` now hides the banner.
8 lines
472 B
Markdown
8 lines
472 B
Markdown
- Cockpit Regional News holds its list to the last 24 hours, newest first, on
|
|
the server and in the client, and labels its four states apart: fresh
|
|
results with no banner and a `LAST 24 H` footer, earlier results kept after
|
|
a failed refresh as `CACHED · REFRESH FAILED`, `NO NEWS IN THE LAST 24 H`,
|
|
and `REGIONAL NEWS UNAVAILABLE`. The banner is now really hidden over a
|
|
populated list, and the footer no longer reverts to a static `RECENT` on a
|
|
page change.
|