trails/apps/planner/app/components
Ullrich Schäfer c6ae08676b
fix(planner): waypoint drag no longer snaps back on release
Extract the waypoint marker into a React.memo'd component. The marker's
position/icon were new references every render, so any unrelated
PlannerMap re-render during a drag (e.g. the route-hover chart-sync
state update) re-applied the stale saved position mid-drag — orphaning
the drag so it never committed and the pin jumped back on release.
Memoizing means unrelated re-renders no longer touch the marker, so the
drag commits and the moved position persists.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-16 08:12:06 +02:00
..
ClientOnly.tsx Fix SSR and automerge timing 2026-03-23 00:49:54 +01:00
ColoredRoute.tsx feat(planner): restyle map markers + route on tokens 2026-07-16 07:20:17 +02:00
DayBreakdown.tsx feat(planner): restyle sidebar on tokens (waypoints, notes, days) 2026-07-16 00:39:12 +02:00
ElevationChart.tsx feat(planner): collapsible elevation chart with summary bar 2026-07-16 01:39:01 +02:00
ExportButton.tsx fix(planner): distinct aria-label for export dropdown toggle 2026-07-16 00:43:30 +02:00
MapHelpers.tsx remove the map and ui shim packages 2026-06-10 07:47:59 +02:00
MidpointHandles.tsx Add route interactions: click-to-split, drag-to-reshape, colored route rendering 2026-03-26 21:15:55 +01:00
NearbyPoiMarkers.tsx poi-index: map-core selectors, planner.pois schema, /api/pois route + client, metrics 2026-07-12 22:38:03 +02:00
NoGoAreaLayer.tsx feat(planner): restyle map markers + route on tokens 2026-07-16 07:20:17 +02:00
NotesPanel.tsx feat(planner): restyle sidebar on tokens (waypoints, notes, days) 2026-07-16 00:39:12 +02:00
ParticipantAvatars.tsx feat(planner): redesign topbar with tokens + primitives, presentational 2026-07-15 23:51:27 +02:00
PlannerMap.tsx fix(planner): waypoint drag no longer snaps back on release 2026-07-16 08:12:06 +02:00
PoiPanel.tsx chore(ts): replace 7 \as unknown as\ shims with proper types 2026-05-26 01:02:25 +02:00
ProfileSelector.tsx feat(ui): Select primitive; restyle ProfileSelector on tokens 2026-07-16 00:12:23 +02:00
RouteInteraction.tsx feat(planner): restyle map markers + route on tokens 2026-07-16 07:20:17 +02:00
SaveToJournalButton.tsx feat(planner): restyle Export + SaveToJournal buttons on tokens 2026-07-16 00:42:37 +02:00
SessionView.tsx feat(planner): collapsible elevation chart with summary bar 2026-07-16 01:39:01 +02:00
Topbar.tsx feat(planner): move "computing route" from topbar to a map overlay 2026-07-16 01:01:08 +02:00
WaypointContextMenu.tsx Replace right-click behavior with context menu on waypoints 2026-04-11 02:42:43 +02:00
WaypointSidebar.tsx feat(planner): restyle sidebar on tokens (waypoints, notes, days) 2026-07-16 00:39:12 +02:00
YjsDebugPanel.tsx planner: give the Yjs document a typed schema seam 2026-06-10 01:35:04 +02:00