fix(bookings): show where an imported stay lands on the map before it is saved

An imported hotel was looked up once, by its name and its address together.
A booking site's romanized address (Agoda for a stay in Japan) often matches
nothing and sank the hotel's name with it, so the place was created without
coordinates and silently never showed on the map.

The review now finds the stay right away (name and address, then the name,
then the address) and says under the address whether it is on the map and
where, or that it is not yet, with a way to search again. Picking an address
suggestion sets the spot by hand. The save uses that spot, falls back the same
way when there is none, and a stay saved without a spot says so in a toast.
Desktop dialog and phone sheet share the lookup through useReservationForm.
This commit is contained in:
Maurice
2026-10-25 18:14:29 +01:00
parent a0b7b4d196
commit b80fdf27f2
41 changed files with 668 additions and 26 deletions
+8
View File
@@ -140,6 +140,14 @@ const reservations: TranslationStrings = {
'reservations.import.cta': 'Dosyadan içe aktar',
'reservations.import.dropHere': 'Rezervasyon onay dosyalarını buraya sürükleyin veya seçmek için tıklayın',
'reservations.import.dropActive': 'İçe aktarmak için dosyaları bırakın',
'reservations.import.pinSearching': 'Haritada aranıyor…',
'reservations.import.pinFound': 'Haritada',
'reservations.import.pinMissingTitle': 'Henüz haritada değil',
'reservations.import.pinMissingBody':
'TREK bu konaklamayı haritada bulamadı. Yukarıdaki adı ve adresi kontrol edip yeniden arayın ya da raptiye olmadan kaydedin.',
'reservations.import.pinRetry': 'Yeniden ara',
'reservations.import.savedWithoutPin':
'Harita raptiyesi olmadan kaydedildi. Haritada görmek için yeri düzenleyip konumunu ayarlayın.',
'reservations.import.acceptedFormats':
'Kabul edilenler: EML, PDF, PKPass, HTML, TXT (her biri maks. 10 MB, en fazla 5 dosya)',
'reservations.import.acceptedPhotos': 'Fotoğrafları (JPG, PNG, WEBP) yapay zekâ modeli okur.',