Hold Cockpit regional news to the last 24 hours, and tell its states apart

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.
This commit is contained in:
Denis Groshev committed 2026-11-06 00:45:19 +01:00
1 parent 2470b39f88
commit dd83812a21
24 files changed
+637 -85

No files matched your search

+4 -3
View File
@@ -1601,14 +1601,15 @@
"Cycle briefing pages automatically every 9 seconds (Signals → News → Local). Pauses while you hover or focus the panel. Live signal data refreshes continuously either way.": "9秒ごとにブリーフィングページを自動で切り替えます(シグナル → ニュース → ローカル)。パネルにカーソルを合わせるかフォーカスしている間は一時停止します。ライブシグナルのデータは、どちらの場合も継続的に更新されます。",
"ACQUIRING REGIONAL NEWS": "地域ニュースを取得中",
"REGIONAL NEWS UNAVAILABLE": "地域ニュースを取得できません",
"CACHED · REFRESH FAILED": "キャッシュ · 更新失敗",
"RESOLVING REGION": "地域を特定中",
"REGION UNAVAILABLE": "地域を取得できません",
"NO RECENT LOCATION MATCHES": "この地域の最近のニュースなし",
"NO NEWS IN THE LAST {hours} H": "過去{hours}時間のニュースなし",
"{domain} · {age}": "{domain} · {age}",
"{value} KM/H": "{value} km/h",
"CLOUD {pct}%": "雲量 {pct}%",
"CLOUD UNKNOWN": "雲量不明",
"{source} · LOCATION QUERY": "{source} · 位置クエリ",
"{source} · CACHED {age}": "{source} · キャッシュ {age}",
"REGIONAL NEWS": "地域ニュース",
"{label} · {radius} AIR/SEA WINDOW": "{label} · 航空機/船舶の範囲 {radius}",
"{scope} · INSTALLATIONS {coverage}": "{scope} · 施設 {coverage}",
@@ -1666,7 +1667,7 @@
"OBSERVED / MAPPED PINGS": "観測 / マップ済みピング",
"SOURCE-BACKED EVENTS · NO SYNTHETIC NEWS": "出典付きイベントのみ · 合成ニュースなし",
"LATEST LOCATION-MATCHED REPORTING": "位置に一致する最新の報道",
"{source} · LOCATION QUERY · RECENT": "{source} · 位置クエリ · 最近",
"{source} · LAST {hours} H": "{source} · 過去{hours}時間",
"LOCAL INFO": "ローカル情報",
"PLACE / CONDITIONS / POSITION": "場所 / 天候 / 位置",
"TIME UNKNOWN": "時刻不明",