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': 'ถังขยะเปล่า',
+16
View File
@@ -94,6 +94,7 @@ const places: TranslationStrings = {
'places.formEmail': 'อีเมล',
'places.hoursAdd': 'เพิ่มเวลาทำการ',
'places.hoursClosed': 'ปิด',
'places.hoursAllDay': 'เปิด 24 ชั่วโมง',
'places.hoursOpens': 'เปิด',
'places.hoursCloses': 'ปิด',
'places.hoursCopyFirst': 'ใช้เวลาของวัน{day}กับทุกวัน',
@@ -106,6 +107,15 @@ 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': 'ค้นหาสถานที่...',
@@ -146,6 +156,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': 'บันทึกสถานที่ จากนั้นเปิดตัวแก้ไขต้นทุน',