Skip to content

WIP - PR's for deploy env testing - Add a map of the day's rides - #1101

Open
onewheelskyward wants to merge 3 commits into
mainfrom
map-folding
Open

onewheelskyward wants to merge 3 commits into
mainfrom
map-folding

Conversation

@onewheelskyward

Copy link
Copy Markdown
Contributor

The calendar gets a Map tab ( /events/map ) showing a day's rides as pins; clicking a pin opens a dialog with the ride summary. Rides without coordinates are listed below the map.

Coordinates are looked up with Nominatim when an organizer saves their event, and only when the location changes. A failed lookup doesn't prevent the save. The events api now includes latitude and longitude.

  • migration 0008 adds latitude, longitude, geoaddress to calevent; local sqlite databases get them automatically on startup.
  • SHIFT_GEOCODER_URL selects the server ( or "off" to disable ).
  • npm run -w tools geo-backfill looks up existing events.

onewheelskyward and others added 3 commits October 29, 2026 19:51
The calendar gets a Map tab ( /events/map ) showing a day's rides as
pins; clicking a pin opens a dialog with the ride summary. Rides without
coordinates are listed below the map.

Coordinates are looked up with Nominatim when an organizer saves their
event, and only when the location changes. A failed lookup doesn't
prevent the save. The events api now includes latitude and longitude.

- migration 0008 adds latitude, longitude, geoaddress to calevent;
  local sqlite databases get them automatically on startup.
- SHIFT_GEOCODER_URL selects the server ( or "off" to disable ).
- npm run -w tools geo-backfill looks up existing events.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new /calmap/ page shows a day's rides as pins, linked from the
"View events as" options next to List and Grid. Clicking a pin opens a
dialog with the ride listing; rides without coordinates are listed
below the map. ?date=YYYY-MM-DD picks the day ( default today ), with
previous / next day buttons and a date picker.

- leaflet 1.9.4 is vendored into static/lib/leaflet like the other libs.
- main.js exposes renderEventsHTML() and lazyLoadEventImages() so the
  map reuses the existing mustache event template.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The map is still being tested, so the calendar app's Map tab and the
Hugo "View events as: Map" link only appear after visiting any page
with ?map ( ?map=0 hides them again ). The map pages themselves are
still reachable directly.

The flag is remembered for the browser tab in sessionStorage, shared
by both front-ends. ( Not localStorage: favorites.js treats every
localStorage key as a favorite. )

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant