trails/apps/planner/app/components
Ullrich Schäfer 34529a9432
Split ElevationChart + PlannerMap into deep modules; add visual regression testing
ElevationChart (1013 lines) split into:
- elevation-chart-draw.ts — pure drawElevationChart(ctx, w, h, params) function
- use-elevation-data.ts — useElevationData(routeData) hook
- ElevationChart.tsx — ~300 lines, interaction + render only

PlannerMap (869 lines) split into:
- MapHelpers.tsx — 7 Leaflet sub-components (MapExposer, RouteFitter, MapClickHandler,
  CursorTracker, NoGoAreaButton, OverlaySync, PoiRefresher)
- use-waypoint-manager.ts — all waypoint CRUD + route data sync
- use-gpx-drop.ts — GPX drag-and-drop hook
- PlannerMap.tsx — ~200 lines, orchestration only

Add Vitest browser visual regression tests for drawElevationChart via
@vitest/browser + Playwright (toMatchScreenshot). Tests cover plain, grade,
elevation, surface color modes plus hover and drag-select states.

Add update-visual-snapshots.yml workflow: triggered by workflow_dispatch or
the `update-snapshots` PR label; commits snapshots back to the branch.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-10 16:41:23 +02:00
..
ClientOnly.tsx Fix SSR and automerge timing 2026-03-23 00:49:54 +01:00
ColoredRoute.tsx Extract @trails-cool/map-core package from Planner 2026-04-12 22:28:14 +02:00
DayBreakdown.tsx Fix i18n: use planner namespace in sidebar components 2026-04-10 23:59:27 +02:00
ElevationChart.tsx Split ElevationChart + PlannerMap into deep modules; add visual regression testing 2026-05-10 16:41:23 +02:00
ExportButton.tsx Sync notes through GPX, Journal, and Planner roundtrip 2026-04-11 03:35:40 +02:00
MapHelpers.tsx Split ElevationChart + PlannerMap into deep modules; add visual regression testing 2026-05-10 16:41:23 +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 Fix mobile header layout: hide secondary items on small screens 2026-04-12 19:39:19 +02:00
PlannerMap.tsx Split ElevationChart + PlannerMap into deep modules; add visual regression testing 2026-05-10 16:41:23 +02:00
PoiPanel.tsx Extract @trails-cool/map-core package from Planner 2026-04-12 22:28:14 +02:00
ProfileSelector.tsx Change default routing profile to fastbike, move hiking to end 2026-04-11 02:17:46 +02:00
RouteInteraction.tsx Extract @trails-cool/map-core package from Planner 2026-04-12 22:28:14 +02:00
SaveToJournalButton.tsx Sync notes through GPX, Journal, and Planner roundtrip 2026-04-11 03:35:40 +02:00
SessionView.tsx Session-bind /api/route and /api/overpass 2026-04-21 22:18:45 +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 Session-bind /api/route and /api/overpass 2026-04-21 22:18:45 +02:00