mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 01:44:13 +00:00
feat(tours): give a tour its start and end in the day plan
A tour on a day had no place in the day's timeline: its time was not tied to the slot it was planned in, so several hikes on one day could not be lined up. A tour now sits there the way a place does, on the times of its day entry, one model for every tour type. With a start and a known time (the planned total, else the estimate of an import) its end follows as the start plus that time; it is shown fainter, marked with an approximate sign where it comes from an estimate, and says in its tooltip how it was worked out. An end typed by hand wins. A day that holds one stage of a multi-day tour gets no end from the whole route. When the end runs past the start of the day's next timed item, the row says so in one quiet line, as a late connection between two city walks does; nothing is moved. The existing time fields of the day entry, on the desktop form and the phone sheet, say what the end works out to while none is typed. City walks keep their arrivals per station. The logic lives in one module both day plans run on.
This commit is contained in:
@@ -1271,5 +1271,11 @@ const tours: TranslationStrings = {
|
||||
'tours.estimate.noHeights': 'トラックに標高データがないため、時間を推定できません。',
|
||||
'tours.estimate.basisDin': '距離・登り・下りから登山道標識の基準(DIN 33466)で算出、休憩は含みません。',
|
||||
'tours.estimate.basisPace': '距離と入力したペースから算出。',
|
||||
'tours.dayTime.workedOut': '{time}に終了(開始時刻とツアー時間{total}から算出)',
|
||||
'tours.dayTime.workedOutNextDay': '翌日{time}に終了(開始時刻とツアー時間{total}から算出)',
|
||||
'tours.dayTime.overrun': '{end}に終了、{name}の開始{time}より後です',
|
||||
'tours.dayTime.nextItem': '次の項目',
|
||||
'tours.dayTime.formHint': '空欄のままなら終了時刻を算出します:{time}(開始時刻+ツアー時間{total})。',
|
||||
'tours.dayTime.formNoStart': '開始時刻を入れると、ツアー時間{total}から終了時刻を算出します。',
|
||||
};
|
||||
export default tours;
|
||||
|
||||
Reference in New Issue
Block a user