From c18885f2b022f4a8116809aa893929f2c278b319 Mon Sep 17 00:00:00 2001 From: yyamashita Date: Wed, 6 May 2026 22:09:41 +0900 Subject: Limit scrape window and default event list to ~1 month Scraper runner now filters events to today + 35 days before upserting, so the DB only holds the upcoming month of events. Event list loader defaults date_from/date_to to the same window when no query params are set, and passes the values down to FilterBar so the date inputs are pre-filled on first load. Co-Authored-By: Claude Sonnet 4.6 --- app/components/FilterBar.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'app/components') diff --git a/app/components/FilterBar.tsx b/app/components/FilterBar.tsx index 97a3c02..266865d 100644 --- a/app/components/FilterBar.tsx +++ b/app/components/FilterBar.tsx @@ -3,9 +3,11 @@ import type { Venue } from "~/lib/db.server"; interface Props { venues: Venue[]; + defaultDateFrom?: string; + defaultDateTo?: string; } -export default function FilterBar({ venues }: Props) { +export default function FilterBar({ venues, defaultDateFrom, defaultDateTo }: Props) { const [searchParams] = useSearchParams(); return ( @@ -45,7 +47,7 @@ export default function FilterBar({ venues }: Props) { @@ -56,7 +58,7 @@ export default function FilterBar({ venues }: Props) { -- cgit v1.2.3