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:
@@ -41,7 +41,6 @@ const files: TranslationStrings = {
|
||||
'files.sourceBooking': 'Réservation',
|
||||
'files.sourceTransport': 'Transport', // same-as-en
|
||||
'files.attach': 'Joindre',
|
||||
'files.pasteHint': 'Vous pouvez aussi coller des images depuis le presse-papiers (Ctrl+V)',
|
||||
'files.trash': 'Corbeille',
|
||||
'files.trashEmpty': 'La corbeille est vide',
|
||||
'files.emptyTrash': 'Vider la corbeille',
|
||||
|
||||
@@ -111,6 +111,7 @@ const places: TranslationStrings = {
|
||||
'places.formEmail': 'E-mail', // same-as-en
|
||||
'places.hoursAdd': 'Ajouter les horaires',
|
||||
'places.hoursClosed': 'Fermé',
|
||||
'places.hoursAllDay': 'Ouvert 24 h/24',
|
||||
'places.hoursOpens': 'ouvre',
|
||||
'places.hoursCloses': 'ferme',
|
||||
'places.hoursCopyFirst': 'Appliquer les horaires du {day} à tous les jours',
|
||||
@@ -123,6 +124,17 @@ const places: TranslationStrings = {
|
||||
'places.formNotesPlaceholder': 'Notes personnelles…',
|
||||
'places.assignmentNotes': 'Notes pour ce jour',
|
||||
'places.assignmentNotesPlaceholder': 'Notes pour ce lieu uniquement ce jour-là...',
|
||||
'places.textsLabel': 'Description et notes',
|
||||
'places.notesKind': 'Texte à modifier',
|
||||
'places.notesTabAbout': 'À propos du lieu',
|
||||
'places.notesTabDay': 'Ce jour seulement',
|
||||
'places.notesTabDayN': 'Jour {day} seulement',
|
||||
'places.notesHintDescription':
|
||||
'Affiché sous le nom dans la liste des lieux et le plan du jour, en haut des détails et dans le PDF. La recherche et Wikipédia la remplissent souvent.',
|
||||
'places.notesHintNotes':
|
||||
'Votre propre texte sur le lieu, comme des conseils ou des détails de réservation. Affiché seulement dans les détails et le PDF, chaque jour. Tous les membres du voyage le voient.',
|
||||
'places.notesHintDay':
|
||||
"Uniquement pour cette visite. Affiché dans sa ligne du plan du jour ; les autres jours ne l'affichent pas.",
|
||||
'places.formReservation': 'Réservation',
|
||||
'places.reservationNotesPlaceholder': 'Notes de réservation, numéro de confirmation…',
|
||||
'places.mapsSearchPlaceholder': 'Rechercher des lieux…',
|
||||
@@ -164,6 +176,12 @@ const places: TranslationStrings = {
|
||||
'places.newTag': 'Nouvelle étiquette',
|
||||
'places.addTag': 'Ajouter une étiquette',
|
||||
'places.tagCreateError': "Impossible de créer l'étiquette",
|
||||
'places.tagColor': 'Couleur de {name}',
|
||||
'places.newTagColor': 'Couleur de la nouvelle étiquette',
|
||||
'places.tagColorCustom': 'Couleur personnalisée',
|
||||
'places.tagColorHue': 'Teinte',
|
||||
'places.tagColorHex': 'Code couleur',
|
||||
'places.tagColorError': 'Impossible de changer la couleur',
|
||||
'places.nameRequired': 'Veuillez saisir un nom',
|
||||
'places.saveError': "Échec de l'enregistrement",
|
||||
'places.createExpenseHint': 'Enregistre le lieu, puis ouvre l’éditeur de dépenses.',
|
||||
|
||||
Reference in New Issue
Block a user