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': 'Broneering',
|
||||
'files.sourceTransport': 'Transport', // same-as-en
|
||||
'files.attach': 'Lisa',
|
||||
'files.pasteHint': 'Pilte saab kleepida ka lõikelaualt (Ctrl+V)',
|
||||
'files.trash': 'Prügikast',
|
||||
'files.trashEmpty': 'Prügikast on tühi',
|
||||
'files.emptyTrash': 'Tühjenda prügikast',
|
||||
|
||||
@@ -111,6 +111,7 @@ const places: TranslationStrings = {
|
||||
'places.formEmail': 'E-post',
|
||||
'places.hoursAdd': 'Lisa lahtiolekuajad',
|
||||
'places.hoursClosed': 'Suletud',
|
||||
'places.hoursAllDay': 'Avatud ööpäev läbi',
|
||||
'places.hoursOpens': 'avatakse',
|
||||
'places.hoursCloses': 'suletakse',
|
||||
'places.hoursCopyFirst': 'Kasuta päeva {day} aegu kõigil päevadel',
|
||||
@@ -123,6 +124,17 @@ const places: TranslationStrings = {
|
||||
'places.formNotesPlaceholder': 'Isiklikud märkmed...',
|
||||
'places.assignmentNotes': 'Selle päeva märkmed',
|
||||
'places.assignmentNotesPlaceholder': 'Märkmed selle koha kohta ainult selleks päevaks...',
|
||||
'places.textsLabel': 'Kirjeldus ja märkmed',
|
||||
'places.notesKind': 'Muudetav tekst',
|
||||
'places.notesTabAbout': 'Kohast',
|
||||
'places.notesTabDay': 'Ainult see päev',
|
||||
'places.notesTabDayN': 'Ainult päev {day}',
|
||||
'places.notesHintDescription':
|
||||
'Kuvatakse nime all kohtade loendis ja päevaplaanis, üksikasjade ülaosas ja PDF-is. Otsing ja Vikipeedia täidavad selle sageli ise.',
|
||||
'places.notesHintNotes':
|
||||
'Sinu enda tekst koha kohta, näiteks näpunäited või broneeringu üksikasjad. Kuvatakse ainult üksikasjades ja PDF-is, igal päeval. Kõik reisil osalejad näevad seda.',
|
||||
'places.notesHintDay':
|
||||
'Ainult selle ühe külastuse jaoks. Kuvatakse selle real päevaplaanis, teised päevad seda ei näita.',
|
||||
'places.formReservation': 'Broneering',
|
||||
'places.reservationNotesPlaceholder': 'Broneeringu märkmed, kinnitusnumber...',
|
||||
'places.mapsSearchPlaceholder': 'Otsi kohti...',
|
||||
@@ -164,6 +176,12 @@ const places: TranslationStrings = {
|
||||
'places.newTag': 'Uus silt',
|
||||
'places.addTag': 'Lisa silt',
|
||||
'places.tagCreateError': 'Sildi loomine ebaõnnestus',
|
||||
'places.tagColor': 'Sildi {name} värv',
|
||||
'places.newTagColor': 'Uue sildi värv',
|
||||
'places.tagColorCustom': 'Oma värv',
|
||||
'places.tagColorHue': 'Toon',
|
||||
'places.tagColorHex': 'Värvikood',
|
||||
'places.tagColorError': 'Värvi muutmine ebaõnnestus',
|
||||
'places.nameRequired': 'Sisesta nimi',
|
||||
'places.saveError': 'Salvestamine ebaõnnestus',
|
||||
'places.createExpenseHint': 'Salvestab koha ja avab seejärel kulude muutmise vaate.',
|
||||
|
||||
Reference in New Issue
Block a user