mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 09:22:15 +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:
@@ -1210,5 +1210,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