From d7f046a4d6dfde3d12ce7271bce678aad1586851 Mon Sep 17 00:00:00 2001 From: Josh Wright Date: Sun, 5 Apr 2026 11:07:14 -0400 Subject: [PATCH] =?UTF-8?q?feat:=20double-tap=20refresh=20at=20park=20open?= =?UTF-8?q?ing=20=E2=80=94=20mark=20open,=20then=20fetch=20ride=20counts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fire two refreshes per park: one at opening time to flip the open indicator, and one 30s later to pick up queue-times ride counts once the API updates. Co-Authored-By: Claude Sonnet 4.6 --- components/HomePageClient.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/HomePageClient.tsx b/components/HomePageClient.tsx index 3f40343..12f55b6 100644 --- a/components/HomePageClient.tsx +++ b/components/HomePageClient.tsx @@ -97,7 +97,8 @@ export function HomePageClient({ const ms = msUntilLocalTime(openTime.hour, openTime.minute, park.timezone); // Only schedule if opening is still in the future (within the next 24h) if (ms > 0 && ms < 24 * 60 * 60 * 1000) { - timeouts.push(setTimeout(() => router.refresh(), ms + OPEN_REFRESH_BUFFER_MS)); + timeouts.push(setTimeout(() => router.refresh(), ms)); // mark as open + timeouts.push(setTimeout(() => router.refresh(), ms + OPEN_REFRESH_BUFFER_MS)); // pick up ride counts } }