mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-21 14:21:46 +00:00
feat: optimize routes around accommodation, confirm note deletions (#1123)
Optimize day routes around the accommodation
When a day has an accommodation set, the route optimizer now treats it as
the day's home base: it optimizes a loop that leaves the hotel and returns
to it, so the stop nearest the hotel comes first. On a transfer day -
checking out of one hotel and into another - the route runs from the first
hotel to the second instead.
The optimizer also gained a 2-opt pass on top of the nearest-neighbor
ordering, which removes the crossings the greedy pass used to leave behind.
A new display setting ("optimize route from accommodation", on by default)
lets you turn the anchoring off.
Confirm before deleting notes
Deleting a plan note or a collab note now asks for confirmation first. On
phones and tablets the edit and delete icons sit close together and were
easy to mis-tap, which deleted notes with no way back.
This commit is contained in:
@@ -41,6 +41,8 @@ const collab: TranslationStrings = {
|
||||
'collab.notes.cancel': 'Abbrechen',
|
||||
'collab.notes.edit': 'Bearbeiten',
|
||||
'collab.notes.delete': 'Löschen',
|
||||
'collab.notes.confirmDeleteTitle': 'Notiz löschen?',
|
||||
'collab.notes.confirmDeleteBody': 'Diese Notiz wird dauerhaft gelöscht.',
|
||||
'collab.notes.pin': 'Anheften',
|
||||
'collab.notes.unpin': 'Loslösen',
|
||||
'collab.notes.daysAgo': 'vor {n} T.',
|
||||
|
||||
@@ -9,6 +9,8 @@ const dayplan: TranslationStrings = {
|
||||
'dayplan.confirmRemoveTimeBody':
|
||||
'Dieser Ort hat eine feste Uhrzeit ({time}). Durch das Verschieben wird die Uhrzeit entfernt und der Ort kann frei sortiert werden.',
|
||||
'dayplan.confirmRemoveTimeAction': 'Uhrzeit entfernen & verschieben',
|
||||
'dayplan.confirmDeleteNoteTitle': 'Notiz löschen?',
|
||||
'dayplan.confirmDeleteNoteBody': 'Diese Notiz wird dauerhaft gelöscht.',
|
||||
'dayplan.cannotDropOnTimed':
|
||||
'Orte können nicht zwischen zeitgebundene Einträge geschoben werden',
|
||||
'dayplan.cannotBreakChronology':
|
||||
@@ -32,6 +34,7 @@ const dayplan: TranslationStrings = {
|
||||
'dayplan.toast.needTwoPlaces':
|
||||
'Mindestens zwei Orte für Routenoptimierung nötig',
|
||||
'dayplan.toast.routeOptimized': 'Route optimiert',
|
||||
'dayplan.toast.routeOptimizedFromHotel': 'Route ab deiner Unterkunft optimiert',
|
||||
'dayplan.toast.noGeoPlaces':
|
||||
'Keine Orte mit Koordinaten für Routenberechnung gefunden',
|
||||
'dayplan.confirmed': 'Bestätigt',
|
||||
|
||||
@@ -65,6 +65,9 @@ const settings: TranslationStrings = {
|
||||
'settings.bookingLabelsHint':
|
||||
'Zeigt Bahnhofs-/Flughafennamen auf der Karte. Wenn aus, wird nur das Icon angezeigt.',
|
||||
'settings.blurBookingCodes': 'Buchungscodes verbergen',
|
||||
'settings.optimizeFromAccommodation': 'Route ab der Unterkunft optimieren',
|
||||
'settings.optimizeFromAccommodationHint':
|
||||
'Beim Optimieren eines Tages startet die Route an der Unterkunft, in der du aufwachst, und endet an der, in die du am Abend eincheckst.',
|
||||
'settings.notifications': 'Mitteilungen',
|
||||
'settings.notifyTripInvite': 'Trip-Einladungen',
|
||||
'settings.notifyBookingChange': 'Buchungsänderungen',
|
||||
|
||||
Reference in New Issue
Block a user