mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 00:20:07 +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:
@@ -41,7 +41,6 @@ const files: TranslationStrings = {
|
||||
'files.sourceBooking': 'Bokning',
|
||||
'files.sourceTransport': 'Transport', // same-as-en
|
||||
'files.attach': 'Bifoga',
|
||||
'files.pasteHint': 'Du kan också klistra in foton från urklipp (Ctrl+V)',
|
||||
'files.trash': 'Papperskorgen',
|
||||
'files.trashEmpty': 'papperskorgen är tom',
|
||||
'files.emptyTrash': 'Töm papperskorgen',
|
||||
|
||||
@@ -110,6 +110,7 @@ const places: TranslationStrings = {
|
||||
'places.formEmail': 'E-post',
|
||||
'places.hoursAdd': 'Lägg till öppettider',
|
||||
'places.hoursClosed': 'Stängt',
|
||||
'places.hoursAllDay': 'Öppet dygnet runt',
|
||||
'places.hoursOpens': 'öppnar',
|
||||
'places.hoursCloses': 'stänger',
|
||||
'places.hoursCopyFirst': 'Använd tiderna för {day} alla dagar',
|
||||
@@ -122,6 +123,16 @@ const places: TranslationStrings = {
|
||||
'places.formNotesPlaceholder': 'Personliga anteckningar...',
|
||||
'places.assignmentNotes': 'Anteckningar för denna dag',
|
||||
'places.assignmentNotesPlaceholder': 'Anteckningar för denna plats endast denna dag...',
|
||||
'places.textsLabel': 'Beskrivning och anteckningar',
|
||||
'places.notesKind': 'Text att redigera',
|
||||
'places.notesTabAbout': 'Om platsen',
|
||||
'places.notesTabDay': 'Bara den här dagen',
|
||||
'places.notesTabDayN': 'Bara dag {day}',
|
||||
'places.notesHintDescription':
|
||||
'Visas under namnet i platslistan och dagsplanen, överst i detaljerna och i PDF:en. Sökningen och Wikipedia fyller ofta i den.',
|
||||
'places.notesHintNotes':
|
||||
'Din egen text om platsen, till exempel tips eller bokningsuppgifter. Visas bara i detaljerna och i PDF:en, varje dag. Alla i resan ser den.',
|
||||
'places.notesHintDay': 'Bara för det här besöket. Visas på dess rad i dagsplanen; andra dagar visar den inte.',
|
||||
'places.formReservation': 'Bokning',
|
||||
'places.reservationNotesPlaceholder': 'Bokningsinformation, bekräftelsenummer...',
|
||||
'places.mapsSearchPlaceholder': 'Sök efter platser...',
|
||||
@@ -163,6 +174,12 @@ const places: TranslationStrings = {
|
||||
'places.newTag': 'Ny tagg',
|
||||
'places.addTag': 'Lägg till tagg',
|
||||
'places.tagCreateError': 'Det gick inte att skapa taggen',
|
||||
'places.tagColor': 'Färg för {name}',
|
||||
'places.newTagColor': 'Färg för den nya taggen',
|
||||
'places.tagColorCustom': 'Egen färg',
|
||||
'places.tagColorHue': 'Nyans',
|
||||
'places.tagColorHex': 'Färgkod',
|
||||
'places.tagColorError': 'Det gick inte att ändra färgen',
|
||||
'places.nameRequired': 'Ange ett namn',
|
||||
'places.saveError': 'Det gick inte att spara',
|
||||
'places.createExpenseHint': 'Sparar platsen och öppnar sedan kostnadsredigeraren.',
|
||||
|
||||
Reference in New Issue
Block a user