trails/apps/planner/app/components
Ullrich Schäfer 3345ef127e
Add bidirectional elevation chart ↔ map interaction
Three new interactions:

1. Route hover → chart: Invisible interactive polyline (weight 20,
   opacity 0) detects mouse hover on the route, computes cumulative
   distance, and highlights the corresponding position on the chart.

2. Chart click → map pan: Clicking the elevation chart pans the map
   to center on that point along the route. Uses 5px threshold to
   distinguish from drag.

3. Chart drag-select → map zoom: Dragging a range on the chart shows
   a blue selection overlay, then zooms the map to fit the route
   coordinates in that range. "Reset zoom" button appears to restore
   the full route view.

State flow avoids feedback loops: external highlights (from map hover)
set the chart crosshair without re-emitting onHover back to the map.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 19:23:37 +02:00
..
ClientOnly.tsx Fix SSR and automerge timing 2026-03-23 00:49:54 +01:00
ColoredRoute.tsx Improve bike route legend: human-readable names, non-judgmental colors 2026-04-11 11:13:44 +02:00
DayBreakdown.tsx Fix i18n: use planner namespace in sidebar components 2026-04-10 23:59:27 +02:00
ElevationChart.tsx Add bidirectional elevation chart ↔ map interaction 2026-04-12 19:23:37 +02:00
ExportButton.tsx Sync notes through GPX, Journal, and Planner roundtrip 2026-04-11 03:35:40 +02:00
MidpointHandles.tsx Add route interactions: click-to-split, drag-to-reshape, colored route rendering 2026-03-26 21:15:55 +01:00
NoGoAreaLayer.tsx Add undo/redo to planner 2026-04-04 10:04:01 +01:00
NotesPanel.tsx Fix notes not loading on session reload 2026-04-11 03:00:51 +02:00
ParticipantList.tsx Add multiplayer awareness: participant list, name editing, cursor styling, join/leave toasts 2026-03-25 08:40:35 +01:00
PlannerMap.tsx Add bidirectional elevation chart ↔ map interaction 2026-04-12 19:23:37 +02:00
PoiPanel.tsx Add markercluster for POIs and sync base layer via Yjs 2026-04-11 02:35:32 +02:00
ProfileSelector.tsx Change default routing profile to fastbike, move hiking to end 2026-04-11 02:17:46 +02:00
RouteInteraction.tsx Fix marker z-ordering: waypoints and highlight above POIs and route 2026-04-11 01:46:55 +02:00
SaveToJournalButton.tsx Sync notes through GPX, Journal, and Planner roundtrip 2026-04-11 03:35:40 +02:00
SessionView.tsx Add bidirectional elevation chart ↔ map interaction 2026-04-12 19:23:37 +02:00
WaypointContextMenu.tsx Replace right-click behavior with context menu on waypoints 2026-04-11 02:42:43 +02:00
WaypointSidebar.tsx Highlight waypoint marker on sidebar hover instead of red dot 2026-04-11 00:35:42 +02:00
YjsDebugPanel.tsx Fix waypoint drag, host election, segment routing, debug panel 2026-03-23 08:52:52 +01:00