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
@@ -44,7 +44,6 @@ const files: TranslationStrings = {
'files.sourceBooking': 'Rezervácia',
'files.sourceTransport': 'Doprava',
'files.attach': 'Priložiť',
'files.pasteHint': 'Môžete tiež vložiť obrázky zo schránky (Ctrl+V)',
'files.trash': 'Kôš',
'files.trashEmpty': 'Kôš je prázdny',
'files.emptyTrash': 'Vyprázdniť kôš',
+17
View File
@@ -119,6 +119,7 @@ const places: TranslationStrings = {
'places.formEmail': 'E-mail', // same-as-en
'places.hoursAdd': 'Pridať otváracie hodiny',
'places.hoursClosed': 'Zatvorené',
'places.hoursAllDay': 'Otvorené nonstop',
'places.hoursOpens': 'otvára',
'places.hoursCloses': 'zatvára',
'places.hoursCopyFirst': 'Použiť časy z {day} pre všetky dni',
@@ -131,6 +132,16 @@ const places: TranslationStrings = {
'places.formNotesPlaceholder': 'Osobné poznámky...',
'places.assignmentNotes': 'Poznámky pre tento deň',
'places.assignmentNotesPlaceholder': 'Poznámky k tomuto miestu len pre tento deň...',
'places.textsLabel': 'Popis a poznámky',
'places.notesKind': 'Text na úpravu',
'places.notesTabAbout': 'O mieste',
'places.notesTabDay': 'Len tento deň',
'places.notesTabDayN': 'Len deň {day}',
'places.notesHintDescription':
'Zobrazí sa pod názvom v zozname miest a v pláne dňa, hore v podrobnostiach a v PDF. Vyhľadávanie a Wikipédia ho často vyplnia.',
'places.notesHintNotes':
'Vlastný text k miestu, napríklad tipy alebo podrobnosti rezervácie. Zobrazí sa len v podrobnostiach a v PDF, v každom dni. Vidia ho všetci z výletu.',
'places.notesHintDay': 'Len pre túto jednu návštevu. Zobrazí sa v jej riadku plánu dňa, ostatné dni ho nezobrazujú.',
'places.formReservation': 'Rezervácia',
'places.reservationNotesPlaceholder': 'Poznámky k rezervácii, potvrdzovacie číslo...',
'places.mapsSearchPlaceholder': 'Hľadať miesta...',
@@ -172,6 +183,12 @@ const places: TranslationStrings = {
'places.newTag': 'Nový štítok',
'places.addTag': 'Pridať štítok',
'places.tagCreateError': 'Nepodarilo sa vytvoriť štítok',
'places.tagColor': 'Farba štítka {name}',
'places.newTagColor': 'Farba nového štítka',
'places.tagColorCustom': 'Vlastná farba',
'places.tagColorHue': 'Odtieň',
'places.tagColorHex': 'Kód farby',
'places.tagColorError': 'Farbu sa nepodarilo zmeniť',
'places.nameRequired': 'Zadajte prosím názov',
'places.saveError': 'Uloženie zlyhalo',
'places.createExpenseHint': 'Uloží miesto a potom otvorí editor nákladov.',