trails/apps/planner/app/components
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
..
ClientOnly.tsx Fix SSR and automerge timing 2026-03-23 00:49:54 +01:00
ElevationChart.tsx Fix waypoint icons and add elevation chart scrubbing 2026-03-23 07:04:04 +01:00
ExportButton.tsx Complete Planner UI: profile selector, elevation chart, GPX export 2026-03-23 00:57:39 +01:00
PlannerMap.tsx Fix waypoint drag, host election, segment routing, debug panel 2026-03-23 08:52:52 +01:00
ProfileSelector.tsx Complete Planner UI: profile selector, elevation chart, GPX export 2026-03-23 00:57:39 +01:00
SaveToJournalButton.tsx Allow repeated saves to Journal from Planner 2026-03-24 20:22:58 +00:00
SessionView.tsx Fix waypoint loading in Edit in Planner flow 2026-03-24 20:22:58 +00:00
WaypointSidebar.tsx Fix waypoint drag, host election, segment routing, debug panel 2026-03-23 08:52:52 +01:00
YjsDebugPanel.tsx Fix waypoint drag, host election, segment routing, debug panel 2026-03-23 08:52:52 +01:00