From d64e502908739b4aa6c1ae32f9f4b31db9920dc9 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 18 Apr 2026 13:25:38 -0500 Subject: [PATCH] fix(maps): same reconnect/visibility fix for rover and weather hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rover_map_hook and weather_map_hook share the same viewport-scoped data flow as the propagation map — they hit the same blank-tile bug after tab hide or socket reconnect. Add reconnected() + visibilitychange handlers and document the requirement in CLAUDE.md so future hooks that push map_bounds don't regress. --- CLAUDE.md | 1 + assets/js/rover_map_hook.ts | 33 +++++++++++++++++++++++++++++++-- assets/js/weather_map_hook.ts | 24 ++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 3e8c8950..1ef99346 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -179,6 +179,7 @@ User submits QSO → enqueue_for_qso() → weather/hrrr/terrain/iemre workers - Never use `@apply` in CSS - No inline `