From 90c3af00e32b05c5501d147ed8302f94ff8a7543 Mon Sep 17 00:00:00 2001 From: JF-Cozy Date: Mon, 3 Apr 2023 15:29:13 +0200 Subject: [PATCH] feat(ExpandedAttributes): Add support for residence_permit... expirationDate, phone, email and birthday --- .../ListItem/ExpandedAttributes/helpers.js | 13 +++++++++++-- react/MuiCozyTheme/ListItem/locales/en.json | 3 ++- react/MuiCozyTheme/ListItem/locales/fr.json | 3 ++- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/react/MuiCozyTheme/ListItem/ExpandedAttributes/helpers.js b/react/MuiCozyTheme/ListItem/ExpandedAttributes/helpers.js index 4ccdc4b511..72f5f2c2ec 100644 --- a/react/MuiCozyTheme/ListItem/ExpandedAttributes/helpers.js +++ b/react/MuiCozyTheme/ListItem/ExpandedAttributes/helpers.js @@ -10,7 +10,14 @@ export const normalizeExpandedAttribute = attr => // attributes not considered as expanded attributes export const notExpandedAttributes = { - 'io.cozy.contacts': ['fullname', 'civility', 'note'], + 'io.cozy.contacts': [ + 'fullname', + 'civility', + 'note', + 'flexsearchProps:translated:phone', + 'flexsearchProps:translated:email', + 'flexsearchProps:translated:birthday' + ], 'io.cozy.files': [ 'name', 'flexsearchProps:translated:qualificationLabel', @@ -21,7 +28,9 @@ export const notExpandedAttributes = { 'flexsearchProps:translated:vehicleRegistration', 'flexsearchProps:translated:nationalIdCard', 'flexsearchProps:translated:bankDetails', - 'flexsearchProps:translated:passport' + 'flexsearchProps:translated:passport', + 'flexsearchProps:translated:residencePermit', + 'flexsearchProps:translated:expirationDate' ] } diff --git a/react/MuiCozyTheme/ListItem/locales/en.json b/react/MuiCozyTheme/ListItem/locales/en.json index 0c18057394..06f0e54046 100644 --- a/react/MuiCozyTheme/ListItem/locales/en.json +++ b/react/MuiCozyTheme/ListItem/locales/en.json @@ -32,7 +32,8 @@ "vehicle_registration": "Vehicle registration number (VIN)", "national_id_card": "National ID card number", "bank_details": "IBAN number", - "passport": "Passport number" + "passport": "Passport number", + "residence_permit": "License number" } } }, diff --git a/react/MuiCozyTheme/ListItem/locales/fr.json b/react/MuiCozyTheme/ListItem/locales/fr.json index 7b94840393..d8ed674886 100644 --- a/react/MuiCozyTheme/ListItem/locales/fr.json +++ b/react/MuiCozyTheme/ListItem/locales/fr.json @@ -32,7 +32,8 @@ "vehicle_registration": "Numéro de la carte grise (VIN)", "national_id_card": "Numéro de la carte d'identité", "bank_details": "Numéro d'IBAN", - "passport": "Numéro du passeport" + "passport": "Numéro du passeport", + "residence_permit": "Numéro du permis" } } },