Skip to content

Commit

Permalink
chore: [IOPID-2405] Delete isNewPaymentSectionEnabledSelector and isS…
Browse files Browse the repository at this point in the history
…ettingsVisibleAndHideProfileSelector (#6498)

## Short description
delete isNewPaymentSectionEnabledSelector and
isSettingsVisibleAndHideProfileSelector and all references and related
logic in app

## List of changes proposed in this pull request
- delete isNewPaymentSectionEnabledSelector and all references
- delete isSettingsVisibleAndHideProfileSelector
- delete useContentWithFF (custom hook used to assign "Profile" or
"Settings" value into a string using `PageName` as placeholder) and all
references and change values in the translation files
  - delete all legacy copy from code and from the translation files
  - delete all reference about `ROUTES.PROFILE_MAIN`
- Update test and snapshots

> [!Note]
> The **German texts** were modified by inserting the value that was
managed before using `useContentWithFF`. So compared to what is in
production now there are no regressions

## Demo

| Android - local env (first onboarding) | Android - prod env (user
logged) | iOS - local env (first onboarding) | iOS - prod env (user
logged) |
| - | - | - | - |
| <video
src="https://github.com/user-attachments/assets/f3d9e3ce-7d39-49ab-8225-2c9b46475a77"/>
| <video
src="https://github.com/user-attachments/assets/a396930c-9ca7-44d7-aad2-404ce140d9b6"/>
| <video
src="https://github.com/user-attachments/assets/1c097bd4-e410-4d37-bd41-c455be7cfe46"/>
| <video
src="https://github.com/user-attachments/assets/f8bdd3e2-66f3-42d5-b5de-c64269387c67"/>
|

## How to test
- Run the application (use local and prod environment) and check
  - if the build works on Android and iOS
  - check that all screens work as expected
- run `yarn tsc -noemit` and check if everything works
- check if all tests works
  • Loading branch information
Ladirico authored Dec 5, 2024
1 parent a94ca59 commit b420196
Show file tree
Hide file tree
Showing 35 changed files with 393 additions and 701 deletions.
10 changes: 4 additions & 6 deletions locales/de/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,7 @@ startup:
profileEnabled: "Benutzerprofil aktiviert"
userDeletePendingAlert:
title: "Profil wird gelöscht"
messageLegacy: "Wenn du deine Meinung geändert hast, kannst du deine Anfrage im Abschnitt Datenschutz deines Profils löschen."
message: "Wenn du deine Meinung geändert hast, kannst du deine Anfrage im Abschnitt Datenschutz in den Einstellungen löschen."
cta_1_legacy: "Geh zum Profil"
cta_1: "Geh zu den Einstellungen"
cta_2: "Ignorieren"
contextualHelp:
Expand Down Expand Up @@ -423,7 +421,7 @@ profile:
additionalInformation:
description: "Für weitere Informationen lies bitte die "
cta: "Datenschutzerklärung und die Nutzungsbedingungen"
profileSettings: "Du kannst deine Wahl jederzeit unter {{pageName}} > Datenschutz und Nutzungsbedingungen ändern"
profileSettings: "Du kannst deine Wahl jederzeit unter Einstellungen > Datenschutz und Nutzungsbedingungen ändern"
cta:
shareData: "Daten freigeben"
dontShareData: "Daten nicht freigeben"
Expand Down Expand Up @@ -968,7 +966,7 @@ onboarding:
headerTitle: "IO einrichten"
available:
title: "Biometrische Erkennung aktiveren"
settings: "Du kannst deine Wahl jederzeit unter {{pageName}} > Sicherheit ändern"
settings: "Du kannst deine Wahl jederzeit unter Einstellungen > Sicherheit ändern"
body:
text: "Du kannst dein Gesicht oder deinen Fingerabdruck anstelle des Entsperrcodes verwenden. Damit kannst du schneller und sicherer auf die App zugreifen und Transaktionen und Zahlungen autorisieren."
infoStart: "Du kannst die biometrische Erkennung anstelle des Entsperrcodes verwenden. Sie ermöglicht dir den Zugriff auf die App und die Bestätigung von Transaktionen und Zahlungen"
Expand All @@ -986,7 +984,7 @@ onboarding:
value: "Konfiguriere dein Gesicht oder deinen Fingerabdruck"
step3:
label: "Schritt 3"
value: "Aktiviere sie in IO unter {{pageName}} > Sicherheit"
value: "Aktiviere sie in IO unter Einstellungen > Sicherheit"
unavailable:
title: "Schütze dein Gerät"
subtitle: "IO sendet dir Mitteilungen, die dich persönlich betreffen. Stelle sicher, dass nur du auf die App zugreifen kannst, indem du einen Code oder ein Zeichen zum Entsperren des Geräts festlegst."
Expand Down Expand Up @@ -2060,7 +2058,7 @@ services:
title: "Einstellungen gespeichert!"
body: "Du kannst die Liste der verfügbaren Dienste jederzeit im Abschnitt Dienste einsehen."
cta: "Verfügbare Dienste anzeigen"
banner: "Du kannst deine Wahl jederzeit unter {{pageName}} > Einstellungen ändern"
banner: "Du kannst deine Wahl jederzeit unter Einstellungen > Einstellungen ändern"
oldUsersBadge: "Aktuelle Einstellungen"
choiceLabel: "Deine Wahl:"
unavailable: "Nicht ausgewählt"
Expand Down
23 changes: 8 additions & 15 deletions locales/en/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,7 @@ startup:
profileEnabled: User profile activated
userDeletePendingAlert:
title: Profile deletion in progress
messageLegacy: If you have changed your mind, you can cancel the deletion request within the Privacy section of your Profile.
message: If you have changed your mind, you can cancel the deletion request within the Privacy section in Settings.
cta_1_legacy: Go to Profile
cta_1: Go to Settings
cta_2: Discard
contextualHelp:
Expand Down Expand Up @@ -317,8 +315,7 @@ profile:
dumpAsyncStorage: Dump AsyncStorage content to console
sentryTestEvent: Send Exception to Sentry
storeReview: Request a store review
contextualHelpTitle: What you can do in {{pageName}} section
legacyContextualHelpContent: !include profile/legacy_profile_account_main.md
contextualHelpTitle: What you can do in Settings section
contextualHelpContent: !include profile/profile_account_main.md
developerModeOn: Developer mode enabled
cache:
Expand Down Expand Up @@ -441,7 +438,7 @@ profile:
additionalInformation:
description: "For more information, please read "
cta: "the Privacy Policy and Terms and Conditions"
profileSettings: "You can change this choice anytime in {{pageName}} > Privacy Policy and Terms of Service"
profileSettings: "You can change this choice anytime in Settings > Privacy Policy and Terms of Service"
cta:
shareData: "Share"
dontShareData: Please don't share data
Expand Down Expand Up @@ -993,7 +990,6 @@ email:
subtitle: You will receive IO's communications at
onboarding:
contextualHelpTitle: How does the biometric recognition work
legacyContextualHelpContent: !include onboarding/legacy_onboarding_fingerprint.md
contextualHelpContent: !include onboarding/onboarding_fingerprint.md
tos:
headerTitle: Configure IO
Expand Down Expand Up @@ -1042,7 +1038,7 @@ onboarding:
headerTitle: Configure IO
available:
title: Enable biometric recognition
settings: You can always change your choice in {{pageName}} > Security
settings: You can always change your choice in Settings > Security
body:
text: You can use your face or fingerprint to enter instead of the unlock code. This will let you access the app and authorise operation and payments more easily and safely.
infoStart: You can use biometric recognition in place of the unlock code. This will let you access the app and authorize operations and payments with your
Expand All @@ -1060,7 +1056,7 @@ onboarding:
value: Set up face or fingerprint
step3:
label: Step 3
value: Enable it in IO under {{pageName}} > Security
value: Enable it in IO under Settings > Security
unavailable:
title: Protect your device
subtitle: IO sends you messages that are relevant to you. Make sure that only you can access the app by setting a code or sign to unlock the device.
Expand Down Expand Up @@ -2230,7 +2226,7 @@ services:
title: "Preferences saved!"
body: "You can always see the list of available services by visiting the Services section."
cta: "Check available services"
banner: You can change this choice anytime in {{pageName}} > Preferences
banner: You can change this choice anytime in Settings > Preferences
oldUsersBadge: "Current setup"
choiceLabel: "You chose the"
unavailable: "Not defined"
Expand Down Expand Up @@ -3634,7 +3630,7 @@ idpay:
bodyCta: "Come funziona?"
banner:
header: E se lo dimentichi?
body: You can reset the code anytime from {{pageName}} > Security.
body: You can reset the code anytime from Settings > Security.
title: Paga con la tua carta d'identità elettronica
description: Spendi il denaro delle iniziative a te previste usando la tua carta d’identità elettronica.
buttons:
Expand Down Expand Up @@ -3737,7 +3733,7 @@ idpay:
GENERIC: In questo momento non è possibile generare un codice
successScreen:
header: Ora puoi utilizzare la tua carta d’identità per pagare!
body: If you forget the code, reset it under {{pageName}} > Security.
body: If you forget the code, reset it under Settings > Security.
cta: Ok, chiudi
beneficiaryDetails:
infobox:
Expand Down Expand Up @@ -3816,7 +3812,7 @@ idpay:
title: "Come funziona?"
featureOne: "Puoi pagare presso tutti gli esercenti convenzionati: ti basterà appoggiare sul POS la tua carta d’identità elettronica."
featureTwo: "Per autorizzare il pagamento, inserisci sul POS il tuo codice di sicurezza. Lo crei in app una volta sola e vale per qualsiasi iniziativa welfare compatibile."
featureThree: "If you forget the code, you can generate another one from {{pageName}} > Security."
featureThree: "If you forget the code, you can generate another one from Settings > Security."
onboarding:
success:
pleaseWait: Un attimo di pazienza...
Expand Down Expand Up @@ -3972,20 +3968,17 @@ idpay:
bodyLink: Scopri di più
modal:
title: Cosa significa?
legacyContent: "Aggiungendo il tuo IBAN al Profilo dell’app IO, potrai aderire più facilmente alle iniziative, ed evitare d’inserire ogni volta i dati del tuo conto.\n\nIl tuo IBAN verrà conservato da PagoPA S.p.A. e, con il tuo consenso, potrà essere utilizzato dagli Enti promotori delle iniziative che prevedono un rimborso.\n\nL’IBAN non verrà utilizzato per altre finalità e potrai modificarlo in ogni momento, o rimuoverlo se non hai iniziative in corso.\nPer farlo, visita la sezione Profilo."
content: "Aggiungendo il tuo IBAN al Profilo dell’app IO, potrai aderire più facilmente alle iniziative, ed evitare d’inserire ogni volta i dati del tuo conto.\n\nIl tuo IBAN verrà conservato da PagoPA S.p.A. e, con il tuo consenso, potrà essere utilizzato dagli Enti promotori delle iniziative che prevedono un rimborso.\n\nL’IBAN non verrà utilizzato per altre finalità e potrai modificarlo in ogni momento, o rimuoverlo se non hai iniziative in corso.\nPuoi farlo dalle impostazioni dell'app"
button: Ok, ho capito
onboarding:
header: Qual è il tuo IBAN?
body: Aggiungi un conto corrente a te intestato. L’autodichiarazione è resa ai sensi del
bodyLink: Dpr 28 dicembre 2000 n. 445 art 46 e 47
nameAssignInput: Assegna un nome
legacyBottomLabel: Puoi aggiungere o modificare i tuoi IBAN in qualsiasi momento visitando la sezione Profilo
bottomLabel: Puoi aggiungere o modificare i tuoi IBAN in qualsiasi momento dalle impostazioni dell'app
enrollment:
header: Scegli quale IBAN associare all’iniziativa
subTitle: Associa un IBAN salvato nel tuo profilo per poter ricevere i rimborsi legati all’iniziativa.
legacyFooter: Puoi aggiungere o modificare i tuoi IBAN in qualsiasi momento visitando la sezione Profilo
footer: Puoi aggiungere o modificare i tuoi IBAN in qualsiasi momento dalle impostazioni dell'app
button:
addNew: Aggiungi nuovo
Expand Down
1 change: 0 additions & 1 deletion locales/en/onboarding/legacy_onboarding_fingerprint.md

This file was deleted.

2 changes: 0 additions & 2 deletions locales/en/profile/legacy_profile_account_main.md

This file was deleted.

23 changes: 8 additions & 15 deletions locales/it/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,7 @@ startup:
profileEnabled: Profilo utente abilitato
userDeletePendingAlert:
title: Eliminazione profilo in corso
messageLegacy: Se hai cambiato idea, puoi annullare la richiesta nella sezione Privacy del tuo Profilo.
message: Se hai cambiato idea, puoi annullare la richiesta dalla sezione Privacy all'interno delle Impostazioni.
cta_1_legacy: Vai al Profilo
cta_1: Vai alle Impostazioni
cta_2: Ignora
contextualHelp:
Expand Down Expand Up @@ -317,8 +315,7 @@ profile:
dumpAsyncStorage: Scarica contenuto di AsyncStorage
sentryTestEvent: Invia Exception a Sentry
storeReview: Richiedi una recensione sullo store
contextualHelpTitle: Cosa puoi fare nella sezione {{pageName}}
legacyContextualHelpContent: !include profile/legacy_profile_account_main.md
contextualHelpTitle: Cosa puoi fare nella sezione Impostazioni
contextualHelpContent: !include profile/profile_account_main.md
developerModeOn: Modalità sviluppatore attivata
cache:
Expand Down Expand Up @@ -441,7 +438,7 @@ profile:
additionalInformation:
description: "Per maggiori informazioni, leggi l'"
cta: "Informativa Privacy e i Termini e Condizioni d’uso"
profileSettings: "Puoi modificare la tua scelta in ogni momento da {{pageName}} > Privacy e Condizioni d’uso"
profileSettings: "Puoi modificare la tua scelta in ogni momento da Impostazioni > Privacy e Condizioni d’uso"
cta:
shareData: "Condividi"
dontShareData: Non condividere i dati
Expand Down Expand Up @@ -993,7 +990,6 @@ email:
subtitle: Riceverai le comunicazioni di IO all’indirizzo
onboarding:
contextualHelpTitle: Come funziona il riconoscimento biometrico
legacyContextualHelpContent: !include onboarding/legacy_onboarding_fingerprint.md
contextualHelpContent: !include onboarding/onboarding_fingerprint.md
tos:
headerTitle: Configura IO
Expand Down Expand Up @@ -1042,7 +1038,7 @@ onboarding:
headerTitle: Configura IO
available:
title: Attiva il riconoscimento biometrico
settings: Puoi modificare la tua scelta in ogni momento da {{pageName}} > Sicurezza
settings: Puoi modificare la tua scelta in ogni momento da Impostazioni > Sicurezza
body:
text: Potrai usare il tuo volto o impronta digitale al posto del codice di sblocco. Ti permetterà di accedere all’app e autorizzare operazioni e pagamenti in modo più rapido e sicuro.
infoStart: Potrai usare il riconoscimento biometrico al posto del codice di sblocco. Ti permetterà di accedere all’app e autorizzare operazioni e pagamenti, con il tuo
Expand All @@ -1060,7 +1056,7 @@ onboarding:
value: Configura il volto o l’impronta
step3:
label: Step 3
value: Attivalo su IO in {{pageName}} > Sicurezza
value: Attivalo su IO in Impostazioni > Sicurezza
unavailable:
title: Proteggi il tuo dispositivo
subtitle: IO ti invia comunicazioni che ti riguardano personalmente. Assicurati che solo tu possa accedere all’app impostando un codice o un segno per sbloccare il dispositivo.
Expand Down Expand Up @@ -2230,7 +2226,7 @@ services:
title: "Preferenze salvate!"
body: "Potrai sempre vedere la lista dei servizi disponibili visitando la sezione Servizi."
cta: "Vedi i servizi disponibili"
banner: Puoi modificare la tua scelta in ogni momento da {{pageName}} > Preferenze
banner: Puoi modificare la tua scelta in ogni momento da Impostazioni > Preferenze
oldUsersBadge: "Impostazione attuale"
choiceLabel: "Hai scelto la"
unavailable: "Non selezionato"
Expand Down Expand Up @@ -3634,7 +3630,7 @@ idpay:
bodyCta: "Come funziona?"
banner:
header: E se lo dimentichi?
body: Puoi reimpostare il codice in ogni momento da {{pageName}} > Sicurezza.
body: Puoi reimpostare il codice in ogni momento da Impostazioni > Sicurezza.
title: Paga con la tua carta d'identità elettronica
description: Spendi il denaro delle iniziative a te previste usando la tua carta d’identità elettronica.
buttons:
Expand Down Expand Up @@ -3737,7 +3733,7 @@ idpay:
GENERIC: In questo momento non è possibile generare un codice
successScreen:
header: Ora puoi utilizzare la tua carta d’identità per pagare!
body: Se non ricordi il codice, puoi reimpostarlo in ogni momento da {{pageName}} > Sicurezza.
body: Se non ricordi il codice, puoi reimpostarlo in ogni momento da Impostazioni > Sicurezza.
cta: Ok, chiudi
beneficiaryDetails:
infobox:
Expand Down Expand Up @@ -3816,7 +3812,7 @@ idpay:
title: "Come funziona?"
featureOne: "Puoi pagare presso tutti gli esercenti convenzionati: ti basterà appoggiare sul POS la tua carta d’identità elettronica."
featureTwo: "Per autorizzare il pagamento, inserisci sul POS il tuo codice di sicurezza. Lo crei in app una volta sola e vale per qualsiasi iniziativa welfare compatibile."
featureThree: "Se dimentichi il codice, puoi generarne un altro in ogni momento da {{pageName}} > Sicurezza."
featureThree: "Se dimentichi il codice, puoi generarne un altro in ogni momento da Impostazioni > Sicurezza."
onboarding:
success:
pleaseWait: Un attimo di pazienza...
Expand Down Expand Up @@ -3972,20 +3968,17 @@ idpay:
bodyLink: Scopri di più
modal:
title: Cosa significa?
legacyContent: "Aggiungendo il tuo IBAN al Profilo dell’app IO, potrai aderire più facilmente alle iniziative, ed evitare d’inserire ogni volta i dati del tuo conto.\n\nIl tuo IBAN verrà conservato da PagoPA S.p.A. e, con il tuo consenso, potrà essere utilizzato dagli Enti promotori delle iniziative che prevedono un rimborso.\n\nL’IBAN non verrà utilizzato per altre finalità e potrai modificarlo in ogni momento, o rimuoverlo se non hai iniziative in corso.\nPer farlo, visita la sezione Profilo."
content: "Aggiungendo il tuo IBAN al Profilo dell’app IO, potrai aderire più facilmente alle iniziative, ed evitare d’inserire ogni volta i dati del tuo conto.\n\nIl tuo IBAN verrà conservato da PagoPA S.p.A. e, con il tuo consenso, potrà essere utilizzato dagli Enti promotori delle iniziative che prevedono un rimborso.\n\nL’IBAN non verrà utilizzato per altre finalità e potrai modificarlo in ogni momento, o rimuoverlo se non hai iniziative in corso.\nPuoi farlo dalle impostazioni dell'app."
button: Ok, ho capito
onboarding:
header: Qual è il tuo IBAN?
body: Aggiungi un conto corrente a te intestato. L’autodichiarazione è resa ai sensi del
bodyLink: Dpr 28 dicembre 2000 n. 445 art 46 e 47
nameAssignInput: Assegna un nome
legacyBottomLabel: Puoi aggiungere o modificare i tuoi IBAN in qualsiasi momento visitando la sezione Profilo
bottomLabel: Puoi aggiungere o modificare i tuoi IBAN in qualsiasi momento dalle impostazioni dell'app
enrollment:
header: Scegli quale IBAN associare all’iniziativa
subTitle: Associa un IBAN salvato nel tuo profilo per poter ricevere i rimborsi legati all’iniziativa.
legacyFooter: Puoi aggiungere o modificare i tuoi IBAN in qualsiasi momento visitando la sezione Profilo
footer: Puoi aggiungere o modificare i tuoi IBAN in qualsiasi momento dalle impostazioni dell'app
button:
addNew: Aggiungi nuovo
Expand Down
2 changes: 0 additions & 2 deletions locales/it/onboarding/legacy_onboarding_fingerprint.md

This file was deleted.

2 changes: 0 additions & 2 deletions locales/it/profile/legacy_profile_account_main.md

This file was deleted.

10 changes: 4 additions & 6 deletions ts/features/idpay/code/components/IdPayInfoCieBottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@ import {
useIOBottomSheetAutoresizableModal
} from "../../../../utils/hooks/bottomSheet";
import I18n from "../../../../i18n";
import useContentWithFF from "../../../../screens/profile/useContentWithFF";

/**
* This custom hook, useIdPayInfoCieBottomSheet, is designed to display a bottom sheet
* containing detailed information about how the CIE (Carta d'Identità Elettronica) payment authorization works.
*/
const useIdPayInfoCieBottomSheet = (): IOBottomSheetModal => {
const content = useContentWithFF(
"idpay.initiative.cie.bottomSheet.featureThree"
);

const getModalContent = () => (
<View>
<FeatureInfo
Expand All @@ -29,7 +24,10 @@ const useIdPayInfoCieBottomSheet = (): IOBottomSheetModal => {
body={I18n.t("idpay.initiative.cie.bottomSheet.featureTwo")}
/>
<VSpacer size={24} />
<FeatureInfo iconName="change" body={content} />
<FeatureInfo
iconName="change"
body={I18n.t("idpay.initiative.cie.bottomSheet.featureThree")}
/>
<VSpacer size={24} />
</View>
);
Expand Down
Loading

0 comments on commit b420196

Please sign in to comment.