mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 10:44:23 +00:00
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:
@@ -141,6 +141,14 @@ const reservations: TranslationStrings = {
|
||||
'reservations.import.cta': 'Importar desde archivo',
|
||||
'reservations.import.dropHere': 'Suelta los archivos de confirmación de reserva aquí o haz clic para seleccionar',
|
||||
'reservations.import.dropActive': 'Suelta los archivos para importar',
|
||||
'reservations.import.pinSearching': 'Buscando en el mapa…',
|
||||
'reservations.import.pinFound': 'En el mapa',
|
||||
'reservations.import.pinMissingTitle': 'Todavía no está en el mapa',
|
||||
'reservations.import.pinMissingBody':
|
||||
'TREK no ha encontrado este alojamiento en el mapa. Revisa el nombre y la dirección de arriba y vuelve a buscar, o guárdalo sin chincheta.',
|
||||
'reservations.import.pinRetry': 'Buscar de nuevo',
|
||||
'reservations.import.savedWithoutPin':
|
||||
'Guardado sin chincheta en el mapa. Edita el lugar y fija su ubicación para verlo en el mapa.',
|
||||
'reservations.import.acceptedFormats':
|
||||
'Aceptados: EML, PDF, PKPass, HTML, TXT (máx. 10 MB por archivo, hasta 5 archivos)',
|
||||
'reservations.import.acceptedPhotos': 'El modelo de IA lee las fotos (JPG, PNG, WEBP).',
|
||||
|
||||
Reference in New Issue
Block a user