Add a store locator page with a Mapbox map #601

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.

mpereira added 3 commits yesterday
Add StoreLocator page and routeb449ab7
Expose Mapbox env vars to the clientb349a9e
Make search radius configurableb249a85

Review required

Review the changes, then submit to get graded.

Some checks haven’t completed yet

1 check: dojo / review-grader

Keyboard shortcuts

Site-wide

Focus the search bar
/
Show this dialog
?

Pull request

Move to the next file
j
Move to the previous file
k
Filter changed files
t
Comment on the selected lines
c
Select a range of lines
Shiftclick