feat: show open dot based on hours, Weather Delay when queue-times shows 0 rides
All checks were successful
Build and Deploy / Build & Push (push) Successful in 49s

Park open indicator now derives from scheduled hours, not ride counts.
Parks with queue-times coverage but 0 open rides (e.g. storm) show a
"⛈ Weather Delay" notice instead of a ride count on both desktop and mobile.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Josh Wright
2026-04-05 14:56:54 -04:00
parent d84a15ad64
commit 32f0d05038
5 changed files with 61 additions and 10 deletions

View File

@@ -50,7 +50,9 @@ interface HomePageClientProps {
data: Record<string, Record<string, DayData>>;
rideCounts: Record<string, number>;
coasterCounts: Record<string, number>;
openParkIds: string[];
closingParkIds: string[];
weatherDelayParkIds: string[];
hasCoasterData: boolean;
scrapedCount: number;
}
@@ -63,7 +65,9 @@ export function HomePageClient({
data,
rideCounts,
coasterCounts,
openParkIds,
closingParkIds,
weatherDelayParkIds,
hasCoasterData,
scrapedCount,
}: HomePageClientProps) {
@@ -231,7 +235,9 @@ export function HomePageClient({
today={today}
rideCounts={activeCounts}
coastersOnly={coastersOnly}
openParkIds={openParkIds}
closingParkIds={closingParkIds}
weatherDelayParkIds={weatherDelayParkIds}
/>
</div>
@@ -244,7 +250,9 @@ export function HomePageClient({
grouped={grouped}
rideCounts={activeCounts}
coastersOnly={coastersOnly}
openParkIds={openParkIds}
closingParkIds={closingParkIds}
weatherDelayParkIds={weatherDelayParkIds}
/>
</div>
</>