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
@@ -46,7 +46,6 @@ const files: TranslationStrings = {
'files.sourcePlan': 'План дня',
'files.sourceBooking': 'Бронювання',
'files.attach': 'Прикріпити',
'files.pasteHint': 'Також можна вставити зображення з буфера обміну (Ctrl+V)',
'files.trash': 'Кошик',
'files.trashEmpty': 'Кошик порожній',
'files.emptyTrash': 'Очистити кошик',
+17
View File
@@ -126,6 +126,7 @@ const places: TranslationStrings = {
'places.formEmail': 'Ел. пошта',
'places.hoursAdd': 'Додати години роботи',
'places.hoursClosed': 'Зачинено',
'places.hoursAllDay': 'Відчинено цілодобово',
'places.hoursOpens': 'відкривається',
'places.hoursCloses': 'зачиняється',
'places.hoursCopyFirst': 'Застосувати години дня «{day}» до всіх днів',
@@ -138,6 +139,16 @@ const places: TranslationStrings = {
'places.formNotesPlaceholder': 'Особисті нотатки...',
'places.assignmentNotes': 'Нотатки на цей день',
'places.assignmentNotesPlaceholder': 'Нотатки для цього місця лише на цей день...',
'places.textsLabel': 'Опис і нотатки',
'places.notesKind': 'Текст для редагування',
'places.notesTabAbout': 'Про місце',
'places.notesTabDay': 'Лише цей день',
'places.notesTabDayN': 'Лише день {day}',
'places.notesHintDescription':
'Показується під назвою у списку місць і в плані дня, угорі подробиць і в PDF. Пошук і Вікіпедія часто заповнюють його самі.',
'places.notesHintNotes':
'Ваш власний текст про місце, наприклад поради чи деталі бронювання. Показується лише в подробицях і в PDF, у кожен день. Його бачать усі учасники подорожі.',
'places.notesHintDay': 'Лише для цих відвідин. Показується в їхньому рядку плану дня, інші дні цього не показують.',
'places.formReservation': 'Бронювання',
'places.reservationNotesPlaceholder': 'Нотатки про бронювання, номер підтвердження...',
'places.mapsSearchPlaceholder': 'Пошук місць...',
@@ -179,6 +190,12 @@ const places: TranslationStrings = {
'places.newTag': 'Новий тег',
'places.addTag': 'Додати тег',
'places.tagCreateError': 'Не вдалося створити тег',
'places.tagColor': 'Колір мітки {name}',
'places.newTagColor': 'Колір нової мітки',
'places.tagColorCustom': 'Власний колір',
'places.tagColorHue': 'Відтінок',
'places.tagColorHex': 'Код кольору',
'places.tagColorError': 'Не вдалося змінити колір',
'places.nameRequired': 'Введіть назву',
'places.saveError': 'Помилка збереження',
'places.createExpenseHint': 'Зберігає місце й відкриває редактор витрат.',