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
+18
View File
@@ -1222,5 +1222,23 @@ const tours: TranslationStrings = {
'tours.stats.excludeFailed': 'ツアーを変更できませんでした',
'tours.stats.unavailable': 'ツアー実績を読み込めませんでした',
'tours.stats.openTrip': '旅行を開く',
// MDT-01: a multi-day tour, one route split into stages.
'tours.stages.mode': '日数',
'tours.stages.mode.single': '日帰り',
'tours.stages.mode.multi': '複数日',
'tours.stages.emptyHint': 'ルートを分けるには、立ち寄り地点のメニューで「ここでステージを終える」を選びます。',
'tours.stages.endHere': 'ここでステージを終える',
'tours.stages.removeEnd': 'ステージの終点を外す',
'tours.stages.stage': 'ステージ {number}',
'tours.stages.endOf': 'ステージ {number} の終点',
'tours.stages.title': 'ステージ',
'tours.stages.count': '{count} ステージ',
'tours.stages.overDay': '移動だけで1日を超えます',
'tours.stages.timeInfo': 'ステージごとの移動時間で、休憩は含みません。自転車ツアーと街歩きでは、ルート計算の時間を距離で按分します。',
'tours.stages.lost': '{count} 件のステージ終点が地点とともに消えたため、それらのステージは結合されました。',
'tours.stages.toDayTitle': '日帰りツアーにしますか?',
'tours.stages.toDayBody': '{count} 件のステージ終点を外します。ルートはそのままで、元に戻すで復元できます。',
'tours.stages.toDayConfirm': 'ステージの終点をすべて外す',
'tours.stages.show': 'このステージの終点を表示',
};
export default tours;