feat(places): colour tags, tabs for the texts and opening hours on the phone

Tags on the place form are pills in their own colour, with a palette under
the dot that recolours a tag for the whole trip (PUT /trips/:id/tags/:id was
there already, the client now reaches it through repo and store) and a
custom colour field of its own instead of the system picker. A new tag is
made in a colour picked the same way.

Description, notes and the note for one day's visit sit in one card under a
switch, each with a line on where the text shows up; the day tab is named
after its day and is only there with one visit in context. Nothing about the
three fields changes underneath.

Opening hours get a switch for open around the clock next to closed. Google
writes a place open all week as one period on Sunday that never closes; it
read as Sunday open and every other day closed, and now opens every day.

The phone form follows the desktop: category as one field with a list, tags
in one field, the texts switch, and phone, e-mail and opening hours, which it
did not have. The hours and the text tabs are shared hooks (usePlaceHours,
usePlaceTextTabs). Files and costs on the phone sheets are drawn as fields
like the rest, and the paste hint, a keyboard shortcut a phone has no use
for, is gone with its key.
This commit is contained in:
Maurice
2026-11-17 08:44:05 +01:00
parent 33d074c786
commit a3f6635633
100 changed files with 2538 additions and 510 deletions
-1
View File
@@ -41,7 +41,6 @@ const files: TranslationStrings = {
'files.sourceBooking': 'Reserva',
'files.sourceTransport': 'Transporte',
'files.attach': 'Adjuntar',
'files.pasteHint': 'También puedes pegar imágenes desde el portapapeles (Ctrl+V)',
'files.trash': 'Papelera',
'files.trashEmpty': 'La papelera está vacía',
'files.emptyTrash': 'Vaciar papelera',
+18
View File
@@ -111,6 +111,7 @@ const places: TranslationStrings = {
'places.formEmail': 'Correo electrónico',
'places.hoursAdd': 'Añadir horario',
'places.hoursClosed': 'Cerrado',
'places.hoursAllDay': 'Abierto 24 horas',
'places.hoursOpens': 'abre',
'places.hoursCloses': 'cierra',
'places.hoursCopyFirst': 'Usar el horario del {day} para todos los días',
@@ -123,6 +124,17 @@ const places: TranslationStrings = {
'places.formNotesPlaceholder': 'Notas personales...',
'places.assignmentNotes': 'Notas para este día',
'places.assignmentNotesPlaceholder': 'Notas para este lugar solo en este día...',
'places.textsLabel': 'Descripción y notas',
'places.notesKind': 'Texto a editar',
'places.notesTabAbout': 'Sobre el lugar',
'places.notesTabDay': 'Solo este día',
'places.notesTabDayN': 'Solo el día {day}',
'places.notesHintDescription':
'Se muestra bajo el nombre en la lista de lugares y en el plan del día, arriba en los detalles y en el PDF. La búsqueda y Wikipedia suelen rellenarla.',
'places.notesHintNotes':
'Tu propio texto sobre el lugar, como consejos o detalles de la reserva. Solo se muestra en los detalles y en el PDF, cada día. Todos en el viaje lo ven.',
'places.notesHintDay':
'Solo para esta visita. Se muestra en su fila del plan del día; los demás días no lo muestran.',
'places.formReservation': 'Reserva',
'places.reservationNotesPlaceholder': 'Notas de reserva, número de confirmación...',
'places.mapsSearchPlaceholder': 'Buscar lugares...',
@@ -164,6 +176,12 @@ const places: TranslationStrings = {
'places.newTag': 'Nueva etiqueta',
'places.addTag': 'Añadir etiqueta',
'places.tagCreateError': 'No se pudo crear la etiqueta',
'places.tagColor': 'Color de {name}',
'places.newTagColor': 'Color de la nueva etiqueta',
'places.tagColorCustom': 'Color personalizado',
'places.tagColorHue': 'Tono',
'places.tagColorHex': 'Código de color',
'places.tagColorError': 'No se pudo cambiar el color',
'places.nameRequired': 'Introduce un nombre',
'places.saveError': 'No se pudo guardar',
'places.createExpenseHint': 'Guarda el lugar y luego abre el editor de gastos.',