From e2d90b3c5bf606cf2086ed541d9f12b07d663683 Mon Sep 17 00:00:00 2001 From: josh Date: Sat, 4 Apr 2026 11:00:53 -0400 Subject: [PATCH] feat: hide parks with no open days in the current week Header subtitle now shows "X of 24 parks open" for context. Co-Authored-By: Claude Sonnet 4.6 --- app/page.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 7be40d6..a3cf134 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -45,6 +45,11 @@ export default async function HomePage({ searchParams }: PageProps) { 0 ); + // Only show parks that have at least one open day this week + const visibleParks = PARKS.filter((park) => + weekDates.some((date) => data[park.id]?.[date]?.isOpen) + ); + return (
{/* Header */} @@ -65,7 +70,7 @@ export default async function HomePage({ searchParams }: PageProps) { Six Flags Calendar - {PARKS.length} parks + {visibleParks.length} of {PARKS.length} parks open
@@ -79,7 +84,7 @@ export default async function HomePage({ searchParams }: PageProps) { {scrapedCount === 0 ? ( ) : ( - + )}