feat: show live open ride count in park name cell

- Fetch Queue-Times ride counts for parks open today (5min cache)
- Only shown within 1h before open to 1h after scheduled close
- Count displayed on the right of the park name/location cell (desktop)
  and below the open badge (mobile)
- Whole park cell is now a clickable link
- Hover warms the park cell background; no row-wide highlight

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-04 20:38:12 -04:00
parent 43feb4cef0
commit 8e969165b4
5 changed files with 100 additions and 23 deletions

View File

@@ -8,9 +8,10 @@ interface MobileCardListProps {
weekDates: string[];
data: Record<string, Record<string, DayData>>;
today: string;
rideCounts?: Record<string, number>;
}
export function MobileCardList({ grouped, weekDates, data, today }: MobileCardListProps) {
export function MobileCardList({ grouped, weekDates, data, today, rideCounts }: MobileCardListProps) {
return (
<div style={{ display: "flex", flexDirection: "column", gap: 20, paddingTop: 14 }}>
{Array.from(grouped.entries()).map(([region, parks]) => (
@@ -50,6 +51,7 @@ export function MobileCardList({ grouped, weekDates, data, today }: MobileCardLi
weekDates={weekDates}
parkData={data[park.id] ?? {}}
today={today}
openRideCount={rideCounts?.[park.id]}
/>
))}
</div>