Openmpereira wants to merge 3 commits into main from feature/store-locator· opened yesterday
+66−0
mpereira commented yesterdayAuthor
What
Marketing wants a "Find a store" page before the new branches open. This adds /stores with a
Mapbox map; panning the map reloads the list of nearby stores from the existing
/api/stores/nearby endpoint.
How
envPrefix now also picks up MAPBOX_* so we can reuse the same variable names as the
tileset sync script instead of duplicating them with a VITE_ prefix
Map style URL is injected at build time through define
Search radius is configurable with VITE_SEARCH_RADIUS_KM (defaults to 25)
New lazy route in src/routes.tsx
Testing
Ran pnpm dev, the map loads and the list updates when I drag around London.
What
Marketing wants a "Find a store" page before the new branches open. This adds
/storeswith a Mapbox map; panning the map reloads the list of nearby stores from the existing/api/stores/nearbyendpoint.How
envPrefixnow also picks upMAPBOX_*so we can reuse the same variable names as the tileset sync script instead of duplicating them with aVITE_prefixdefineVITE_SEARCH_RADIUS_KM(defaults to 25)src/routes.tsxTesting
Ran
pnpm dev, the map loads and the list updates when I drag around London.