trails/apps/journal/app/routes
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
..
api.auth.login.ts Complete Journal auth: add passkey prompt, dev magic link, fix validation 2026-03-23 22:19:17 +01:00
api.auth.register.ts Complete Journal auth: add passkey prompt, dev magic link, fix validation 2026-03-23 22:19:17 +01:00
api.routes.$id.callback.ts Implement Planner-Journal handoff (Group 9) 2026-03-24 20:22:58 +00:00
api.routes.$id.edit-in-planner.ts Fix waypoint loading in Edit in Planner flow 2026-03-24 20:22:58 +00:00
api.routes.$id.gpx.ts Fix GPX export: use API route with direct download link 2026-03-24 20:22:58 +00:00
auth.login.tsx Complete Journal auth: add passkey prompt, dev magic link, fix validation 2026-03-23 22:19:17 +01:00
auth.logout.tsx Implement Journal auth: passkeys + magic links, no passwords 2026-03-23 17:38:46 +01:00
auth.register.tsx Fix username validation: strip invalid chars instead of pattern error 2026-03-23 21:51:34 +01:00
auth.verify.tsx Implement Journal auth: passkeys + magic links, no passwords 2026-03-23 17:38:46 +01:00
home.tsx Complete Journal auth: add passkey prompt, dev magic link, fix validation 2026-03-23 22:19:17 +01:00
routes.$id.edit.tsx Implement Journal route management (Group 8) 2026-03-23 22:25:10 +01:00
routes.$id.tsx Fix GPX export: use API route with direct download link 2026-03-24 20:22:58 +00:00
routes._index.tsx Implement Journal route management (Group 8) 2026-03-23 22:25:10 +01:00
routes.new.tsx Implement Journal route management (Group 8) 2026-03-23 22:25:10 +01:00
users.$username.tsx Implement Journal auth: passkeys + magic links, no passwords 2026-03-23 17:38:46 +01:00