feat(tours): plan ski and winter tours, snowshoeing and winter hiking among them

Ski becomes "Ski & winter", a type the planner plans with six disciplines
(alpine, snowboard, cross-country, ski touring, snowshoeing, winter hiking),
nothing preselected; saving needs a discipline, and a technique for
cross-country. Every leg is drawn straight between the points through
planner/skiRouting.ts, the one place the piste router will plug in, with its
heights from the elevation source and no ski time worked out.

The hike's winter label goes entirely: its migration, column, field, marks,
GPX rule, MCP field and strings. A hike is summer only; a ski tour with the
snowshoe discipline exports as snowshoeing. The unreleased ski migration takes
the six disciplines and the collection migration loses the winter column.

The pistes are offered for a ski tour, shown until switched off, and with no
tour open, never for a hike. Export, copy, collections, stages (untimed),
actual tracks, the atlas, list and day marks (one glyph per discipline), 3D,
planning over a ski import and list_tours/get_tour_plan know the planned ski
tour.
This commit is contained in:
Maurice
2026-10-20 18:27:53 +02:00
parent 204ee2ef86
commit 164a3633ac
116 changed files with 1675 additions and 1576 deletions
+5 -4
View File
@@ -14,10 +14,10 @@ export function hikePlannerDefaults() {
isHorse: false,
bikeProfile: 'touring' as const,
setBikeProfile: vi.fn(),
// HIK-01: a hike without a winter label, as every hike starts.
winterActivity: null,
setWinterActivity: vi.fn(),
winterActivityChoice: 'winter_hike' as const,
// SKI-02: no ski tour, so no discipline chosen nor asked for.
isSki: false,
ski: { choice: { discipline: null, technique: null }, change: vi.fn(), load: vi.fn() },
skiMissing: null,
// RUN-01: no run, so no pace asked for.
isRun: false,
runProfile: 'running' as const,
@@ -62,6 +62,7 @@ export function hikePlannerDefaults() {
routeCurrent: false,
routeParts: null,
mapOverlays: new Set<string>(),
mapOverlaysOff: new Set<string>(),
toggleMapOverlay: vi.fn(),
tripId: 1,
editWaypoints: vi.fn(),