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': 'Anexar',
'files.pasteHint': 'Você também pode colar imagens da área de transferência (Ctrl+V)',
'files.trash': 'Lixeira',
'files.trashEmpty': 'A lixeira está vazia',
'files.emptyTrash': 'Esvaziar lixeira',
+17
View File
@@ -110,6 +110,7 @@ const places: TranslationStrings = {
'places.formEmail': 'E-mail', // same-as-en
'places.hoursAdd': 'Adicionar horário de funcionamento',
'places.hoursClosed': 'Fechado',
'places.hoursAllDay': 'Aberto 24 horas',
'places.hoursOpens': 'abre',
'places.hoursCloses': 'fecha',
'places.hoursCopyFirst': 'Usar o horário de {day} em todos os dias',
@@ -122,6 +123,16 @@ const places: TranslationStrings = {
'places.formNotesPlaceholder': 'Notas pessoais...',
'places.assignmentNotes': 'Notas para este dia',
'places.assignmentNotesPlaceholder': 'Notas para este lugar apenas neste dia...',
'places.textsLabel': 'Descrição e notas',
'places.notesKind': 'Texto para editar',
'places.notesTabAbout': 'Sobre o lugar',
'places.notesTabDay': 'Só este dia',
'places.notesTabDayN': 'Só o dia {day}',
'places.notesHintDescription':
'Aparece sob o nome na lista de lugares e no plano do dia, no topo dos detalhes e no PDF. A busca e a Wikipédia costumam preenchê-la.',
'places.notesHintNotes':
'Seu próprio texto sobre o lugar, como dicas ou detalhes da reserva. Aparece só nos detalhes e no PDF, em todos os dias. Todos da viagem veem.',
'places.notesHintDay': 'Só para esta visita. Aparece na linha dela no plano do dia; os outros dias não mostram.',
'places.formReservation': 'Reserva',
'places.reservationNotesPlaceholder': 'Notas da reserva, código de confirmação...',
'places.mapsSearchPlaceholder': 'Buscar lugares...',
@@ -163,6 +174,12 @@ const places: TranslationStrings = {
'places.newTag': 'Nova etiqueta',
'places.addTag': 'Adicionar etiqueta',
'places.tagCreateError': 'Falha ao criar etiqueta',
'places.tagColor': 'Cor de {name}',
'places.newTagColor': 'Cor da nova etiqueta',
'places.tagColorCustom': 'Cor personalizada',
'places.tagColorHue': 'Matiz',
'places.tagColorHex': 'Código da cor',
'places.tagColorError': 'Não foi possível alterar a cor',
'places.nameRequired': 'Digite um nome',
'places.saveError': 'Falha ao salvar',
'places.createExpenseHint': 'Salva o local e depois abre o editor de despesas.',