From 4b08dda62af2c7bc0da98e4118f6122485009ecf Mon Sep 17 00:00:00 2001 From: Marc Shade Date: Sun, 8 Mar 2026 13:51:01 -0400 Subject: [PATCH] fix: add missing _withinTimeWindow function (broke earthquakes + news layers) --- src/world_intel_mcp/dashboard/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/src/world_intel_mcp/dashboard/index.html b/src/world_intel_mcp/dashboard/index.html index 3122735..d718312 100644 --- a/src/world_intel_mcp/dashboard/index.html +++ b/src/world_intel_mcp/dashboard/index.html @@ -813,6 +813,7 @@ function cls(n) { return n == null ? '' : n >= 0 ? 'up' : 'down'; } function esc(s) { var d = document.createElement('div'); d.textContent = s || ''; return d.innerHTML; } function trunc(s, n) { n = n || 50; s = s || ''; return s.length > n ? s.slice(0, n) + '\u2026' : s; } function ago(ts) { if (!ts) return '\u2014'; var s = Math.floor((Date.now() - new Date(ts).getTime()) / 1000); if (s < 60) return s + 's'; if (s < 3600) return Math.floor(s/60) + 'm'; if (s < 86400) return Math.floor(s/3600) + 'h'; return Math.floor(s/86400) + 'd'; } +function _withinTimeWindow(ts) { if (!ts) return true; var age = Date.now() - new Date(ts).getTime(); return age < 7 * 86400000; } // ════════════ STATE ════════════ var latestData = null;