trails/apps/journal/app/routes
Ullrich Schäfer 40e541fcce Implement Planner-Journal handoff (Group 9)
JWT-based handoff between Journal and Planner:

Journal side:
- JWT token generation scoped to route_id with 7-day expiry (jose)
- "Edit in Planner" button on route detail page — generates JWT,
  redirects to Planner /new with callback URL, token, and GPX
- Callback endpoint (POST /api/routes/:id/callback) validates JWT
  and creates new route version from received GPX

Planner side:
- /new route accepts callback, token, returnUrl, gpx params
- Creates session with callback metadata, initializes with GPX
- "Save to Journal" button POSTs GPX with Bearer token to callback
- "Return to Journal" link shown after successful save

All 6 Group 9 tasks complete.

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
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 Implement Planner-Journal handoff (Group 9) 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