From 59451ce9f61f1b9ddfc003a4ab0a553641aa526d Mon Sep 17 00:00:00 2001 From: Marc Shade Date: Tue, 24 Feb 2026 10:51:13 -0500 Subject: [PATCH] fix: header bar fire count shows cluster count instead of raw 74k detections MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Matches the sidebar fix — computes cluster count from fires_by_region top_clusters rather than displaying total_fires (raw FIRMS detections). Co-Authored-By: Claude Opus 4.6 --- src/world_intel_mcp/dashboard/index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/world_intel_mcp/dashboard/index.html b/src/world_intel_mcp/dashboard/index.html index 658d156..cef2c31 100644 --- a/src/world_intel_mcp/dashboard/index.html +++ b/src/world_intel_mcp/dashboard/index.html @@ -1275,8 +1275,10 @@ function updateHudStats(data) { pills.push('
' + ((data.cyber_threats.threats || []).length) + 'Cyber IOC
'); } if (data.wildfires && !data.wildfires.error) { - var fc = data.wildfires.total_fires || 0; - pills.push('
' + fc + 'Fires
'); + var fbr = data.wildfires.fires_by_region || {}; + var fireClusterCount = 0; + for (var rr in fbr) { if (fbr.hasOwnProperty(rr)) fireClusterCount += (fbr[rr].top_clusters || []).length; } + pills.push('
' + fireClusterCount + 'Fires
'); } if (data.displacement && !data.displacement.error && data.displacement.global_totals) { pills.push('
' + fmtBigPlain(data.displacement.global_totals.grand_total || 0) + 'Displaced
');