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
@@ -38,7 +38,6 @@ const files: TranslationStrings = {
'files.sourceBooking': '予約',
'files.sourceTransport': '移動',
'files.attach': '添付',
'files.pasteHint': 'クリップボードから画像を貼り付けることもできます(Ctrl+V)',
'files.trash': 'ゴミ箱',
'files.trashEmpty': 'ゴミ箱は空です',
'files.emptyTrash': 'ゴミ箱を空にする',
+17
View File
@@ -102,6 +102,7 @@ const places: TranslationStrings = {
'places.formEmail': 'メール',
'places.hoursAdd': '営業時間を追加',
'places.hoursClosed': '定休日',
'places.hoursAllDay': '24時間営業',
'places.hoursOpens': '開店',
'places.hoursCloses': '閉店',
'places.hoursCopyFirst': '{day}の時間を全曜日に適用',
@@ -114,6 +115,16 @@ const places: TranslationStrings = {
'places.formNotesPlaceholder': '個人的なメモ…',
'places.assignmentNotes': 'この日のメモ',
'places.assignmentNotesPlaceholder': 'この日だけのこの場所に関するメモ…',
'places.textsLabel': '説明とメモ',
'places.notesKind': '編集するテキスト',
'places.notesTabAbout': '場所について',
'places.notesTabDay': 'この日だけ',
'places.notesTabDayN': '{day}日目だけ',
'places.notesHintDescription':
'場所リストと日程の名前の下、詳細の上部、PDF に表示されます。検索や Wikipedia で自動入力されることがよくあります。',
'places.notesHintNotes':
'この場所についての自分のテキスト(ヒントや予約の詳細など)。詳細と PDF にだけ、すべての日に表示されます。旅行のメンバー全員が見られます。',
'places.notesHintDay': 'この訪問だけのメモです。日程のこの行に表示され、ほかの日には表示されません。',
'places.formReservation': '予約',
'places.reservationNotesPlaceholder': '予約メモ、確認番号など…',
'places.mapsSearchPlaceholder': '場所を検索…',
@@ -155,6 +166,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': '場所を保存してから費用エディタを開きます。',