mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 10:24:05 +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:
@@ -1324,5 +1324,12 @@ const tours: TranslationStrings = {
|
||||
'tours.estimate.basisDin':
|
||||
'Calculado pela distância, subida e descida segundo a regra das placas de trilha (DIN 33466), sem pausas.',
|
||||
'tours.estimate.basisPace': 'Calculado pela distância no ritmo informado.',
|
||||
'tours.dayTime.workedOut': 'Termina às {time}, calculado pelo início e pela duração de {total}',
|
||||
'tours.dayTime.workedOutNextDay':
|
||||
'Termina no dia seguinte às {time}, calculado pelo início e pela duração de {total}',
|
||||
'tours.dayTime.overrun': 'Termina às {end}, depois que {name} começa às {time}',
|
||||
'tours.dayTime.nextItem': 'o próximo item',
|
||||
'tours.dayTime.formHint': 'Se ficar vazio, o fim é calculado: {time}, o início mais a duração de {total}.',
|
||||
'tours.dayTime.formNoStart': 'Com um horário de início, o fim é calculado pela duração de {total}.',
|
||||
};
|
||||
export default tours;
|
||||
|
||||
Reference in New Issue
Block a user