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
@@ -101,6 +101,7 @@ const places: TranslationStrings = {
'places.formEmail': '电子邮件',
'places.hoursAdd': '添加营业时间',
'places.hoursClosed': '休息',
'places.hoursAllDay': '24 小时营业',
'places.hoursOpens': '开门',
'places.hoursCloses': '关门',
'places.hoursCopyFirst': '将{day}的时间用于每一天',
@@ -113,6 +114,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': '搜索地点...',
@@ -153,6 +164,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': '先保存地点,然后打开费用编辑器。',