mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 16:10: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': 'Buchung',
|
||||
'files.sourceTransport': 'Transport', // same-as-en
|
||||
'files.attach': 'Anhängen',
|
||||
'files.pasteHint': 'Du kannst auch Bilder aus der Zwischenablage einfügen (Strg+V)',
|
||||
'files.trash': 'Papierkorb',
|
||||
'files.trashEmpty': 'Papierkorb ist leer',
|
||||
'files.emptyTrash': 'Papierkorb leeren',
|
||||
|
||||
@@ -111,6 +111,7 @@ const places: TranslationStrings = {
|
||||
'places.formEmail': 'E-Mail',
|
||||
'places.hoursAdd': 'Öffnungszeiten hinzufügen',
|
||||
'places.hoursClosed': 'Geschlossen',
|
||||
'places.hoursAllDay': 'Ganztägig geöffnet',
|
||||
'places.hoursOpens': 'öffnet',
|
||||
'places.hoursCloses': 'schließt',
|
||||
'places.hoursCopyFirst': 'Zeiten vom {day} für alle Tage übernehmen',
|
||||
@@ -123,6 +124,17 @@ const places: TranslationStrings = {
|
||||
'places.formNotesPlaceholder': 'Persönliche Notizen...',
|
||||
'places.assignmentNotes': 'Notizen für diesen Tag',
|
||||
'places.assignmentNotesPlaceholder': 'Notizen für diesen Ort nur an diesem Tag...',
|
||||
'places.textsLabel': 'Beschreibung & Notizen',
|
||||
'places.notesKind': 'Welcher Text',
|
||||
'places.notesTabAbout': 'Über den Ort',
|
||||
'places.notesTabDay': 'Nur dieser Tag',
|
||||
'places.notesTabDayN': 'Nur Tag {day}',
|
||||
'places.notesHintDescription':
|
||||
'Steht als Unterzeile unter dem Namen in Ortsliste und Tagesplan, oben in den Details und im PDF. Suche und Wikipedia füllen sie oft schon aus.',
|
||||
'places.notesHintNotes':
|
||||
'Eigener Text zum Ort, zum Beispiel Tipps oder Buchungsdetails. Steht nur in den Details und im PDF, an jedem Tag. Alle im Trip sehen ihn.',
|
||||
'places.notesHintDay':
|
||||
'Nur für diesen einen Besuch. Steht in seiner Zeile im Tagesplan, andere Tage zeigen ihn nicht.',
|
||||
'places.formReservation': 'Reservierung',
|
||||
'places.reservationNotesPlaceholder': 'Reservierungsnotizen, Bestätigungsnummer...',
|
||||
'places.mapsSearchPlaceholder': 'Ortssuche...',
|
||||
@@ -164,6 +176,12 @@ const places: TranslationStrings = {
|
||||
'places.newTag': 'Neuer Tag',
|
||||
'places.addTag': 'Tag hinzufügen',
|
||||
'places.tagCreateError': 'Fehler beim Erstellen des Tags',
|
||||
'places.tagColor': 'Farbe von {name}',
|
||||
'places.newTagColor': 'Farbe des neuen Tags',
|
||||
'places.tagColorCustom': 'Eigene Farbe',
|
||||
'places.tagColorHue': 'Farbton',
|
||||
'places.tagColorHex': 'Farbcode',
|
||||
'places.tagColorError': 'Farbe konnte nicht geändert werden',
|
||||
'places.nameRequired': 'Bitte einen Namen eingeben',
|
||||
'places.saveError': 'Fehler beim Speichern',
|
||||
'places.createExpenseHint': 'Speichert den Ort und öffnet dann den Kosten-Editor.',
|
||||
|
||||
Reference in New Issue
Block a user