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
@@ -34,7 +34,6 @@ const files: TranslationStrings = {
'files.sourceBooking': 'Reserva',
'files.sourceTransport': 'Transport', // same-as-en
'files.attach': 'Adjunta',
'files.pasteHint': 'També pots enganxar imatges des del porta-retalls (Ctrl+V)',
'files.trash': 'Paperera',
'files.trashEmpty': 'La paperera és buida',
'files.emptyTrash': 'Buida la paperera',
+18
View File
@@ -108,6 +108,7 @@ const places: TranslationStrings = {
'places.formEmail': 'Correu electrònic',
'places.hoursAdd': "Afegeix l'horari",
'places.hoursClosed': 'Tancat',
'places.hoursAllDay': 'Obert 24 hores',
'places.hoursOpens': 'obre',
'places.hoursCloses': 'tanca',
'places.hoursCopyFirst': "Fes servir l'horari de {day} per a tots els dies",
@@ -120,6 +121,17 @@ const places: TranslationStrings = {
'places.formNotesPlaceholder': 'Notes personals...',
'places.assignmentNotes': 'Notes per a aquest dia',
'places.assignmentNotesPlaceholder': 'Notes per a aquest lloc només aquest dia...',
'places.textsLabel': 'Descripció i notes',
'places.notesKind': 'Text a editar',
'places.notesTabAbout': 'Sobre el lloc',
'places.notesTabDay': 'Només aquest dia',
'places.notesTabDayN': 'Només el dia {day}',
'places.notesHintDescription':
"Es mostra sota el nom a la llista de llocs i al pla del dia, a dalt dels detalls i al PDF. La cerca i la Viquipèdia sovint l'omplen.",
'places.notesHintNotes':
'Text propi sobre el lloc, com consells o detalls de la reserva. Només es mostra als detalls i al PDF, cada dia. Tothom del viatge el veu.',
'places.notesHintDay':
'Només per a aquesta visita. Es mostra a la seva fila del pla del dia; els altres dies no el mostren.',
'places.formReservation': 'Reserva',
'places.reservationNotesPlaceholder': 'Notes de reserva, número de confirmació...',
'places.mapsSearchPlaceholder': 'Cerca llocs...',
@@ -161,6 +173,12 @@ const places: TranslationStrings = {
'places.newTag': 'Etiqueta nova',
'places.addTag': 'Afegeix etiqueta',
'places.tagCreateError': "No s'ha pogut crear l'etiqueta",
'places.tagColor': 'Color de {name}',
'places.newTagColor': "Color de l'etiqueta nova",
'places.tagColorCustom': 'Color personalitzat',
'places.tagColorHue': 'To',
'places.tagColorHex': 'Codi de color',
'places.tagColorError': "No s'ha pogut canviar el color",
'places.nameRequired': 'Introdueix un nom',
'places.saveError': "No s'ha pogut desar",
'places.createExpenseHint': 'Desa el lloc i després obre l’editor de despeses.',