mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 08:00:06 +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:
@@ -1315,5 +1315,11 @@ const tours: TranslationStrings = {
|
||||
'tours.estimate.basisDin':
|
||||
'Vypočteno ze vzdálenosti, stoupání a klesání podle pravidla turistických rozcestníků (DIN 33466), bez přestávek.',
|
||||
'tours.estimate.basisPace': 'Vypočteno ze vzdálenosti při zadaném tempu.',
|
||||
'tours.dayTime.workedOut': 'Končí v {time}, vypočteno ze začátku a doby túry {total}',
|
||||
'tours.dayTime.workedOutNextDay': 'Končí další den v {time}, vypočteno ze začátku a doby túry {total}',
|
||||
'tours.dayTime.overrun': 'Končí v {end}, až po začátku {name} v {time}',
|
||||
'tours.dayTime.nextItem': 'další položka',
|
||||
'tours.dayTime.formHint': 'Když zůstane prázdný, konec se vypočte: {time}, začátek plus doba túry {total}.',
|
||||
'tours.dayTime.formNoStart': 'Se začátkem se konec vypočte z doby túry {total}.',
|
||||
};
|
||||
export default tours;
|
||||
|
||||
Reference in New Issue
Block a user