trails/packages
Ullrich Schäfer 14b179bb0c Fix waypoint loading in Edit in Planner flow
Three issues fixed:

1. GPX parser used browser DOMParser which doesn't exist in Node/Vite SSR.
   Added async parseGpxAsync() using linkedom for server-side parsing.

2. Server-side session initialization stored waypoints in a Yjs doc
   instance separate from the Vite WebSocket plugin's doc store.
   Moved waypoint initialization to client-side: API returns parsed
   waypoints, client adds them to Yjs after sync.

3. GPX was encoded in URL params causing HTTP 431. Now the Journal
   creates a Planner session via API (POST body), and only passes
   compact waypoint coordinates in URL params.

Verified: Journal route → Edit in Planner → 4 waypoints loaded,
route computed (79.3km), elevation profile, Save to Journal ready.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 20:22:58 +00:00
..
db Update auth spec: passkeys + magic links, no passwords 2026-03-23 17:24:27 +01:00
gpx Fix waypoint loading in Edit in Planner flow 2026-03-24 20:22:58 +00:00
i18n Implement shared packages (tasks 2.1-2.6) 2026-03-22 13:09:35 +01:00
map Implement shared packages (tasks 2.1-2.6) 2026-03-22 13:09:35 +01:00
types Add testing strategy: Vitest for unit tests, Playwright for E2E 2026-03-22 12:36:09 +01:00
ui Add animated progress bar during route computation 2026-03-23 08:34:34 +01:00