fix(roadtrip): the hotel at the edge of a day stands, drives and reads right

A hotel row now takes its position and name from the trip's place instead of the stay
row, which the planner fetches again only when a stay is edited. A moved pin no longer
seats the hotel at its old spot while the server plans from the new one. The drive out
of the morning hotel goes the way the first place is reached from it, the mode Days
draws that leg in, and it is set in the shared rule so the browser and
calculate_roadtrip agree.

On the rail, a hotel row that took in the morning marker starts the line. A day that
only drives from one stay to the next shows no stop count and takes a dropped stop as
its first. The hotel keeps its pin on the desktop map, and the switch explains itself
under its label and to screen readers. On the phone, the note about figures set on the
desktop now sits above the switch it does not cover. The hint and the refusal on the
hotel's drive say what they mean in all 23 languages. The via tools and the wiki say
that a via into a booked night is kept but not used, the wiki states the overlap rule
Days applies, and the arrived-from branch of the via anchor has tests.
This commit is contained in:
Maurice
2026-09-23 15:29:44 +02:00
parent 05651eed1a
commit e6e520b78f
46 changed files with 547 additions and 111 deletions
+3 -2
View File
@@ -117,7 +117,8 @@ const roadtrip: TranslationStrings = {
'roadtrip.line.dayColors': '日ごとに色を分ける',
'roadtrip.line.hint': '日と日の間の区間も計算し、到着した日に加えます。',
'roadtrip.line.hotelBookends': '毎日を宿泊先で始めて宿泊先で終える',
'roadtrip.line.hotelBookendsHint': '予約した夜の翌日は泊まった宿から始まり、予約した夜の日はその宿で終わります。',
'roadtrip.line.hotelBookendsHint':
'予約した夜の翌日はその宿から始まり、予約した夜の日はその夜に予約した宿で終わります。',
'roadtrip.avoid.section': 'できるだけ避ける',
'roadtrip.avoid.toll': '有料道路',
'roadtrip.avoid.motorway': '高速道路',
@@ -291,6 +292,6 @@ const roadtrip: TranslationStrings = {
'roadtrip.bookend.from': '{name}から',
'roadtrip.bookend.back': '{name}へ戻る',
'roadtrip.bookend.checkIn': 'チェックイン · {name}',
'roadtrip.bookend.noVia': '宿泊先との間の区間は、今のルートのままになります。',
'roadtrip.bookend.noVia': '宿泊先との間の区間には経由地を置けません。代わりにそこへ立ち寄り先を追加してください。',
};
export default roadtrip;