From 583bcb2b0b7c497445bd30c6a576c4937cdc5b00 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Tue, 31 Mar 2026 16:49:30 -0500 Subject: [PATCH] Hide forecast timeline when time spread is under 1 hour --- assets/js/propagation_map_hook.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/assets/js/propagation_map_hook.js b/assets/js/propagation_map_hook.js index f8118768..dc8c9923 100644 --- a/assets/js/propagation_map_hook.js +++ b/assets/js/propagation_map_hook.js @@ -680,6 +680,14 @@ export const PropagationMap = { return } + // Hide timeline if all times are within 1 hour (no real forecast spread) + const firstDt = new Date(this.timelineData[0].time) + const lastDt = new Date(this.timelineData[this.timelineData.length - 1].time) + if (lastDt - firstDt < 3600000) { + this.timelineEl.style.display = "none" + return + } + const now = new Date() const items = this.timelineData.map((t, idx) => { const dt = new Date(t.time)