mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 01:28:55 +00:00
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:
@@ -53,7 +53,6 @@ const files: TranslationStrings = {
|
||||
'files.sourceBooking': 'الحجز',
|
||||
'files.sourceTransport': 'النقل',
|
||||
'files.attach': 'إرفاق',
|
||||
'files.pasteHint': 'يمكنك أيضًا لصق الصور من الحافظة (Ctrl+V)',
|
||||
'files.trash': 'سلة المهملات',
|
||||
'files.trashEmpty': 'سلة المهملات فارغة',
|
||||
'files.emptyTrash': 'إفراغ السلة',
|
||||
|
||||
@@ -142,6 +142,7 @@ const places: TranslationStrings = {
|
||||
'places.formEmail': 'البريد الإلكتروني',
|
||||
'places.hoursAdd': 'إضافة ساعات العمل',
|
||||
'places.hoursClosed': 'مغلق',
|
||||
'places.hoursAllDay': 'مفتوح على مدار 24 ساعة',
|
||||
'places.hoursOpens': 'يفتح',
|
||||
'places.hoursCloses': 'يغلق',
|
||||
'places.hoursCopyFirst': 'استخدم ساعات {day} لكل الأيام',
|
||||
@@ -154,6 +155,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': 'ابحث عن أماكن...',
|
||||
@@ -195,6 +206,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': 'يحفظ المكان ثم يفتح محرر التكاليف.',
|
||||
|
||||
Reference in New Issue
Block a user