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': 'Đặt chỗ',
'files.sourceTransport': 'Chuyên chở',
'files.attach': 'Gắn',
'files.pasteHint': 'Bạn cũng có thể dán hình ảnh từ clipboard (Ctrl+V)',
'files.trash': 'Rác',
'files.trashEmpty': 'Thùng rác trống rỗng',
'files.emptyTrash': 'Dọn sạch thùng rác',
+18
View File
@@ -102,6 +102,7 @@ const places: TranslationStrings = {
'places.formEmail': 'Email',
'places.hoursAdd': 'Thêm giờ mở cửa',
'places.hoursClosed': 'Đóng cửa',
'places.hoursAllDay': 'Mở cửa 24 giờ',
'places.hoursOpens': 'mở cửa',
'places.hoursCloses': 'đóng cửa',
'places.hoursCopyFirst': 'Dùng giờ của {day} cho mọi ngày',
@@ -114,6 +115,17 @@ const places: TranslationStrings = {
'places.formNotesPlaceholder': 'Ghi chú cá nhân...',
'places.assignmentNotes': 'Ghi chú cho ngày này',
'places.assignmentNotesPlaceholder': 'Ghi chú cho địa điểm này chỉ trong ngày này...',
'places.textsLabel': 'Mô tả và ghi chú',
'places.notesKind': 'Văn bản cần sửa',
'places.notesTabAbout': 'Về địa điểm',
'places.notesTabDay': 'Chỉ ngày này',
'places.notesTabDayN': 'Chỉ ngày {day}',
'places.notesHintDescription':
'Hiển thị dưới tên trong danh sách địa điểm và kế hoạch ngày, ở đầu phần chi tiết và trong PDF. Tìm kiếm và Wikipedia thường tự điền.',
'places.notesHintNotes':
'Văn bản của riêng bạn về địa điểm, như mẹo hoặc chi tiết đặt chỗ. Chỉ hiển thị trong phần chi tiết và PDF, vào mọi ngày. Mọi người trong chuyến đi đều thấy.',
'places.notesHintDay':
'Chỉ cho lần ghé thăm này. Hiển thị ở dòng của nó trong kế hoạch ngày; các ngày khác không hiển thị.',
'places.formReservation': 'Sự đặt chỗ',
'places.reservationNotesPlaceholder': 'Phiếu đặt chỗ, số xác nhận...',
'places.mapsSearchPlaceholder': 'Tìm kiếm địa điểm...',
@@ -155,6 +167,12 @@ const places: TranslationStrings = {
'places.newTag': 'Thẻ mới',
'places.addTag': 'Thêm thẻ',
'places.tagCreateError': 'Không tạo được thẻ',
'places.tagColor': 'Màu của {name}',
'places.newTagColor': 'Màu của thẻ mới',
'places.tagColorCustom': 'Màu tùy chỉnh',
'places.tagColorHue': 'Sắc độ',
'places.tagColorHex': 'Mã màu',
'places.tagColorError': 'Không đổi được màu',
'places.nameRequired': 'Vui lòng nhập tên',
'places.saveError': 'Không lưu được',
'places.createExpenseHint': 'Lưu địa điểm rồi mở trình sửa chi phí.',