feat(tours): plan a multi-day tour as one route split into stages

A hut-to-hut hike or a paddle trip over several days is now planned in the
Tours planner as one tour: the whole route is planned as before, and stops
along it are marked as stage ends (MDT-01). The stages are read off that one
route in its order, never kept as copies, so a change inside a stage changes
the whole tour and every figure on it.

- A Day tour / Multi-day tour switch beside the tour type; a stop's menu
  ends a stage there or lets it go on. Back to a day tour removes every stage
  end after a confirmation, as one step undo brings back.
- The list of points is headed per stage with its distance and moving time;
  a stop that ends a stage carries a moon at its number, on the map too.
- The overview lists the stages from stop to stop with distance, climb,
  descent and time (hiking rule per stage, paddle estimate per stage, the
  router's time shared by distance otherwise), marks where each ends across
  the elevation profile, and a stage of more than a day on the move warns.
- A stage end a change cannot keep (its stop removed, moved to an end or
  made a shaping point) is dropped and said so, with undo, never moved
  to another point.
- A multi-day tour may take a day a stage, so its time limit grows with its
  stages; the tour keeps its one type, portages included.
- The list and the MCP tools show the stage count and where stages end.

Stage ends are a flag on the waypoint (migration 046000); a tour without one
is a day tour, as every tour saved before.
This commit is contained in:
Maurice
2026-10-20 12:39:08 +02:00
parent acc294dd8e
commit 2449616ee9
76 changed files with 2669 additions and 55 deletions
+23
View File
@@ -1279,5 +1279,28 @@ const tours: TranslationStrings = {
'tours.stats.excludeFailed': 'No s’ha pogut canviar l’excursió',
'tours.stats.unavailable': 'No s’han pogut carregar les excursions fetes',
'tours.stats.openTrip': 'Obre el viatge',
// MDT-01: a multi-day tour, one route split into stages.
'tours.stages.mode': 'Dies',
'tours.stages.mode.single': 'Un dia',
'tours.stages.mode.multi': 'Diversos dies',
'tours.stages.emptyHint': 'Al menú d’una parada, tria «Acaba l’etapa aquí» per dividir la ruta.',
'tours.stages.endHere': 'Acaba l’etapa aquí',
'tours.stages.removeEnd': 'Treu el final d’etapa',
'tours.stages.stage': 'Etapa {number}',
'tours.stages.endOf': 'Final de l’etapa {number}',
'tours.stages.title': 'Etapes',
'tours.stages.count': '{count} etapes',
'tours.stages.count.one': '{count} etapa',
'tours.stages.overDay': 'Més d’un dia en moviment',
'tours.stages.timeInfo':
'Temps en moviment per etapa, sense pauses. En bici i en passejades per la ciutat, el temps del planificador de rutes es reparteix per distància.',
'tours.stages.lost': '{count} finals d’etapa s’han perdut amb les seves parades; aquestes etapes ara estan unides.',
'tours.stages.lost.one':
'{count} final d’etapa s’ha perdut amb la seva parada; les seves dues etapes ara estan unides.',
'tours.stages.toDayTitle': 'Convertir-la en una ruta d’un dia?',
'tours.stages.toDayBody': 'Es treuen els {count} finals d’etapa. La ruta queda com està i Desfés els recupera.',
'tours.stages.toDayBody.one': 'Es treu {count} final d’etapa. La ruta queda com està i Desfés el recupera.',
'tours.stages.toDayConfirm': 'Treu els finals d’etapa',
'tours.stages.show': 'Mostra on acaba aquesta etapa',
};
export default tours;