From 43a466f7e8ed28b58f3896b414d231b3ddf296af Mon Sep 17 00:00:00 2001 From: Christopher Mayor Date: Wed, 29 Apr 2026 22:16:47 -0700 Subject: [PATCH] feat: map tab with Leaflet + seed-data.js refactor + Yelp proxy - Add Leaflet map tab in public/index.html with CARTO dark tiles, category toggles, vote-count markers, and external venue search - Extract seed data to seed-data.js with CATEGORY_META, buildSeedData(), mergeSeedData() helpers - Refactor server.js: approvedOptionsWithVoteSummary(), buildRealtimeSnapshot(), createUserOption() helpers; Yelp API proxy at /api/yelp; /api/budgets endpoint - Extract inline seed data from server.js to seed-data.js module - Add budgetScenarios and priceUpdatedAt to realtime snapshot --- public/index.html | 1009 ++++++++++++++++++++++++++++++++++++++++++++- seed-data.js | 586 ++++++++++++++++++++++++++ server.js | 351 +++++++++------- 3 files changed, 1793 insertions(+), 153 deletions(-) create mode 100644 seed-data.js diff --git a/public/index.html b/public/index.html index bd5ae40..1c2423e 100644 --- a/public/index.html +++ b/public/index.html @@ -3,8 +3,319 @@ - Cabo Bachelor Party — Vote + Cabo Bachelor Party — Vote & Map + +