Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: [IOPAE-1100,IOPAE-1282,IOPAE-1285] Remove old implementation of services #5898

Merged
merged 18 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .env.local
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ FETCH_PAYMENT_MANAGER_TIMEOUT_MS=16000
FETCH_MAX_RETRIES=3
# number of workers to fetch message
TOT_MESSAGE_FETCH_WORKERS=5
# number of workers to fetch service
TOT_SERVICE_FETCH_WORKERS=5
# shuffle pin pad to proceed with the payment
SHUFFLE_PINPAD_ON_PAYMENT=NO
# Repository of app content
Expand All @@ -41,8 +39,6 @@ PLAYGROUNDS_ENABLED=YES
BONUS_API_URL_PREFIX='http://127.0.0.1:3000/bonus'
BONUS_API_SIT_BASEURL='https://api-io.dev.cstar.pagopa.it'
BONUS_API_UAT_BASEURL='https://api-io.uat.cstar.pagopa.it'
# local services web url
LOCAL_SERVICE_WEB_URL='http://127.0.0.1:3000/services_web_view'
# EU Covid Certificate
EU_COVID_CERT_ENABLED=YES
# Zendesk configuration
Expand Down
4 changes: 0 additions & 4 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ FETCH_PAYMENT_MANAGER_TIMEOUT_MS=16000
FETCH_MAX_RETRIES=3
# number of workers to fetch message
TOT_MESSAGE_FETCH_WORKERS=5
# number of workers to fetch service
TOT_SERVICE_FETCH_WORKERS=5
# shuffle pin pad to proceed with the payment
SHUFFLE_PINPAD_ON_PAYMENT=NO
# Repository of app content
Expand All @@ -41,8 +39,6 @@ PLAYGROUNDS_ENABLED=YES
BONUS_API_URL_PREFIX=https://api-io.cstar.pagopa.it
BONUS_API_SIT_BASEURL='https://api-io.dev.cstar.pagopa.it'
BONUS_API_UAT_BASEURL='https://api-io.uat.cstar.pagopa.it'
# local services web url
LOCAL_SERVICE_WEB_URL='https://io.italia.it/app-content/enti-servizi.html'
# EU Covid Certificate
EU_COVID_CERT_ENABLED=YES
# Zendesk configuration
Expand Down
Binary file removed img/services/icon-loading-services.png
Binary file not shown.
Binary file removed img/services/icon-loading-services@2x.png
Binary file not shown.
Binary file removed img/services/icon-loading-services@3x.png
Binary file not shown.
51 changes: 0 additions & 51 deletions locales/de/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1830,8 +1830,6 @@ biometric_recognition:
send_email_messages:
title: "Mitteilungen mittels E-Mail weiterleiten"
services:
accessibility:
edit: "Ändere die Einstellung der Dienste"
optIn:
preferences:
completed:
Expand Down Expand Up @@ -1862,40 +1860,7 @@ services:
title: "Wenn du bestätigst, erhältst du keine Mitteilungen"
body: "Bei einer manuellen Konfiguration können dir weder aktuelle noch zukünftige IO-Dienste Mitteilungen senden. Damit Dienste, an denen du interessiert bist, dich kontaktieren können, musst du sie einzeln konfigurieren, indem du den Punkt “In der App kontaktieren” auf jeder Registerkarte des Dienstes aktivierst."
title: "Dienste"
subTitle: "Aktiviere oder deaktiviere die Dienste, die dir Mitteilungen senden dürfen"
contextualHelpTitle: "Was du in deinen Diensten machen kannst"
serviceIsEnabled: "In der App kontaktieren"
serviceNotEnabled: "Der Dienst ist nicht aktiv"
pushNotifications: "Push-Benachrichtigungen senden"
messageReadStatus: "Lesebestätigungen erhalten"
emailForwarding: "E-Mails senden"
tosAndPrivacy: "Nutzungsbedingungen und Datenschutzbestimmungen"
tosLink: "Nutzungsbedingungen"
privacyLink: "Informationen zum Datenschutz"
otherAppsInfo: "Du findest diesen Dienst auch"
otherAppWeb: "online auf"
otherAppIos: "iOS-App"
otherAppAndroid: "Android-App"
contactsAndInfo: "Kontakte und Informationen"
visitWebsite: "Website"
askForAssistance: "Hilfe anfordern"
contactAddress: "Adresse"
contactPhone: "Telefon"
contactSupport: "Support"
tab:
locals: "Lokal"
national: "National"
all: "Alle"
loading:
title: "Lade die Liste der Dienste"
subtitle: "Warte ein paar Sekunden..."
enableAll: "Schnelleinrichtung verwenden"
disableAll: "Manuelle Konfiguration verwenden"
updatingServiceMode: "Bitte warten..."
disableAllTitle: "Möchtest du wirklich alle Dienste deaktivieren?"
disableAllMsg: "Bedenke, dass du nur von Diensten angeschrieben wirst, die tatsächlich über persönliche Informationen verfügen, die sie dir mitteilen möchten. Du wirst keine Spam-Mitteilungen erhalten. Wenn du alle Dienste deaktivierst, können diese dich nicht mehr über IO kontaktieren (bis du sie wieder aktivierst). Du kannst die Dienste weiterhin über andere Kanäle nutzen (Schalter, Website usw.)."
close: "Schließen"
emptyListMessage: "Zurzeit sind keine Dienste verfügbar, zum Aktualisieren ziehe auf dem Bildschirm nach unten"
home:
institutions:
title: "National"
Expand Down Expand Up @@ -1925,22 +1890,6 @@ services:
title: "Nutzungsbedingungen und Datenschutzbestimmungen"
tosLink: "Nutzungsbedingungen"
privacyLink: "Datenschutzerklärung"
serviceDetail:
fiscalCode: "Steuernummer Körperschaft"
fiscalCodeAccessibility: "Steuernummer Körperschaft"
fiscalCodeAccessibilityCopy: "Kopiere Steuernummer Körperschaft"
contacts:
title: "Dieser Dienst kann:"
headerTitle: "Details zum Dienst"
onUpdateEnabledChannelsFailure: "Beim Speichern der Einstellungen ist ein temporärer Fehler aufgetreten. Bitte versuche es erneut."
disableTitle: "Möchtest du den Dienst wirklich deaktivieren?"
disableMsg: "Bedenke, dass du nur von Diensten angeschrieben wirst, die tatsächlich über persönliche Informationen verfügen, die sie dir mitteilen möchten. Du wirst keine Spam-Mitteilungen erhalten. Wenn du diesen Dienst deaktivierst, kann dieser dich nicht mehr über IO kontaktieren (bis du ihn wieder aktivierst). Du kannst diesen Dienst weiterhin über andere Kanäle nutzen (Schalter, Website usw.)."
lockedMailAlert: "Die E-Mail-Weiterleitung von Mitteilungen ist global {{enabled}}:"
updatePreferences: "Einstellungen ändern"
goTo: "Geh zu den Einstellungen"
enabled: "aktiviert"
disabled: "deaktiviert"
notValidated: "Um die E-Mail-Weiterleitung zu aktivieren, musst du deine E-Mail-Adresse bestätigen."
identification:
instructions:
unlockCode: "Entsperrcode"
Expand Down
52 changes: 0 additions & 52 deletions locales/en/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2110,8 +2110,6 @@ send_email_messages:
title: Email a preview
subtitle: You will get a preview of the message at your email address if the service allows.
services:
accessibility:
edit: Edit services setup
optIn:
preferences:
completed:
Expand Down Expand Up @@ -2142,41 +2140,8 @@ services:
title: "If you confirm, you won't receive any message"
body: "With manual configuration the services on IO, present and future, will not be able to contact you. To allow the services you are interested in to contact you, you will have to configure them one by one by enabling “Contact you in app” in each service detail page."
title: Services
subTitle: Enable or disable the services that are allowed to send you messages
contextualHelpTitle: About this section
contextualHelpContent: !include services/services_home.md
serviceIsEnabled: Contact you in app
serviceNotEnabled: The service is not enabled
pushNotifications: Send you push notifications
messageReadStatus: Receive read receipts
emailForwarding: Send you e-mail
tosAndPrivacy: Terms of use and Privacy
tosLink: Terms and conditions
privacyLink: Privacy information
otherAppsInfo: You can find this service also
otherAppWeb: Online on
otherAppIos: iOS App
otherAppAndroid: Android App
contactsAndInfo: Contacts and info
visitWebsite: Browse Website
askForAssistance: Get support
contactAddress: Address
contactPhone: Phone
contactSupport: Support
tab:
locals: Local
national: National
all: All
loading:
title: Loading the services list
subtitle: Please wait...
enableAll: Use quick setup
disableAll: Use manual setup
updatingServiceMode: Please wait...
disableAllTitle: "Do you really want to disable all the services?"
disableAllMsg: "Remember, on IO you will receive messages only from services having some personalized information to communicate to you. You will not receive spam messages. If you disable all the services, they can no longer contact you through the app (until you enable it again). You can use the services through other channels (front office, website, etc.)"
close: Close
emptyListMessage: There are no services available at this time, pull down to refresh
new: New
home:
featured:
Expand Down Expand Up @@ -2230,23 +2195,6 @@ services:
title: "Terms of use and Privacy"
tosLink: "Terms and conditions"
privacyLink: "Privacy information"
serviceDetail:
fiscalCode: "Institution's fiscal code"
fiscalCodeAccessibility: "Institution's fiscal code"
fiscalCodeAccessibilityCopy: "Copy Institution's fiscal code"
contacts:
title: "This service can:"
headerTitle: "Service details"
contextualHelpContent: !include services/service_detail.md
onUpdateEnabledChannelsFailure: "There was a temporary problem while saving preferences, please retry."
disableTitle: "Do you really want to disable the service?"
disableMsg: "Remember, on IO you will receive messages only from services having some personalized information to communicate to you. You will not receive spam messages. If you disable the service, it can no longer contact you by IO (until you enable it again). You will be able to use the service by other channels (front office, website, etc.)"
lockedMailAlert: "The email forwarding of messages is globally {{enabled}}:"
updatePreferences: Update your preferences
goTo: Go to preferences
enabled: enabled
disabled: disabled
notValidated: To enable the email forwarding you must validate your email address.
identification:
instructions:
unlockCode: unlock code
Expand Down
52 changes: 0 additions & 52 deletions locales/it/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2110,8 +2110,6 @@ send_email_messages:
title: Invia un’anteprima via email
subtitle: Riceverai un'anteprima del messaggio al tuo indirizzo email, se il servizio lo consente.
services:
accessibility:
edit: Modifica l'impostazione dei servizi
optIn:
preferences:
completed:
Expand Down Expand Up @@ -2142,41 +2140,8 @@ services:
title: "Se confermi, non riceverai alcun messaggio"
body: "Con la configurazione manuale i servizi di IO, presenti o futuri, non possono inviarti messaggi. Per permettere ai servizi che ti interessano di contattarti, dovrai configurarli uno a uno abilitando la voce “Contattarti in app” che trovi in ogni scheda servizio."
title: Servizi
subTitle: Attiva o disattiva i servizi da cui puoi ricevere messaggi
contextualHelpTitle: Cosa puoi fare nei tuoi Servizi
contextualHelpContent: !include services/services_home.md
serviceIsEnabled: Contattarti in app
serviceNotEnabled: Il servizio non è attivo
pushNotifications: Inviarti notifiche push
messageReadStatus: Ricevere conferme di lettura
emailForwarding: Inviarti e-mail
tosAndPrivacy: Termini e Privacy
tosLink: Termini e condizioni d'uso
privacyLink: Informativa sulla privacy
otherAppsInfo: Puoi usare questo servizio anche
otherAppWeb: Online su
otherAppIos: App iOS
otherAppAndroid: App Android
contactsAndInfo: Contatti ed informazioni
visitWebsite: Visita il sito
askForAssistance: Richiedi assistenza
contactAddress: Indirizzo
contactPhone: Telefono
contactSupport: Assistenza
tab:
locals: Locali
national: Nazionali
all: Tutti
loading:
title: Sto caricando l'elenco dei servizi
subtitle: attendi qualche secondo...
enableAll: Usa configurazione rapida
disableAll: Usa configurazione manuale
updatingServiceMode: Attendi...
disableAllTitle: Vuoi davvero disattivare tutti i servizi?
disableAllMsg: "Ricorda che su IO ti scriveranno solo i servizi che effettivamente hanno qualche informazione personalizzata da comunicarti. Non riceverai messaggi di spam. Se disattivi tutti i servizi, questi non potranno più contattarti tramite IO (finché non li riattiverai). Potrai continuare a fruire i servizi attraverso altri canali (sportello, sito, etc.)"
close: Chiudi
emptyListMessage: Non ci sono servizi disponibili al momento, trascina in basso per aggiornare
new: Nuovo
home:
featured:
Expand Down Expand Up @@ -2230,23 +2195,6 @@ services:
title: "Termini e Privacy"
tosLink: "Termini e condizioni d'uso"
privacyLink: "Informativa sulla privacy"
serviceDetail:
fiscalCode: "C.F. Ente"
fiscalCodeAccessibility: "Codice fiscale Ente"
fiscalCodeAccessibilityCopy: "Copia codice fiscale Ente"
contacts:
title: "Questo servizio può:"
headerTitle: "Dettagli del Servizio"
contextualHelpContent: !include services/service_detail.md
onUpdateEnabledChannelsFailure: "Si è verificato un errore temporaneo nel salvataggio delle preferenze, riprova per piacere."
disableTitle: "Vuoi davvero disattivare il servizio?"
disableMsg: "Ricorda che su IO ti scriveranno solo i servizi che effettivamente hanno qualche informazione personalizzata da comunicarti. Non riceverai messaggi di spam. Se disattivi il servizio, questo non potrà più contattarti tramite IO (finché non lo riattiverai). Potrai continuare a fruire il servizio attraverso altri canali (sportello, sito, etc.)"
lockedMailAlert: "L'inoltro dei messaggi via email è {{enabled}} globalmente:"
updatePreferences: Modifica le preferenze
goTo: Vai alle preferenze
enabled: abilitato
disabled: disabilitato
notValidated: Per poter abilitare le notifiche via email devi validare il tuo indirizzo email."
identification:
instructions:
unlockCode: codice di sblocco
Expand Down
13 changes: 0 additions & 13 deletions ts/api/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ import {
getUserMetadataDefaultDecoder,
GetUserMetadataT,
GetUserProfileT,
getVisibleServicesDefaultDecoder,
GetVisibleServicesT,
StartEmailValidationProcessT,
updateProfileDefaultDecoder,
UpdateProfileT,
Expand Down Expand Up @@ -181,14 +179,6 @@ export function BackendClient(
response_decoder: upsertServicePreferencesDefaultDecoder()
};

const getVisibleServicesT: GetVisibleServicesT = {
method: "get",
url: () => "/api/v1/services",
query: _ => ({}),
headers: tokenHeaderProducer,
response_decoder: getVisibleServicesDefaultDecoder()
};

const getMessagesT: GetUserMessagesT = {
method: "get",
url: _ => "/api/v1/messages",
Expand Down Expand Up @@ -385,9 +375,6 @@ export function BackendClient(
upsertServicePreference: withBearerToken(
createFetchRequestForApi(upsertServicePreferenceT, options)
),
getVisibleServices: withBearerToken(
createFetchRequestForApi(getVisibleServicesT, options)
),
getMessages: withBearerToken(
createFetchRequestForApi(getMessagesT, options)
),
Expand Down
14 changes: 0 additions & 14 deletions ts/boot/__tests__/__snapshots__/persistedStore.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,6 @@ Object {
"nameByFiscalCode": Object {},
},
"paymentByRptId": Object {},
"services": Object {
"byId": Object {},
"byOrgFiscalCode": Object {},
"firstLoading": Object {
"isFirstServicesLoadingCompleted": false,
},
"readState": Object {},
"servicePreference": Object {
"kind": "PotNone",
},
"visible": Object {
"kind": "PotNone",
},
},
}
`;

Expand Down
11 changes: 1 addition & 10 deletions ts/boot/configureStoreAndPersistor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,7 @@ const migrations: MigrationManifest = {

// Version 7
// we empty the services list to get both services list and services metadata being reloaded and persisted
"7": (state: PersistedState) => ({
...state,
entities: {
...(state as PersistedGlobalState).entities,
services: {
...(state as PersistedGlobalState).entities.services,
byId: {}
}
}
}),
"7": (state: PersistedState) => _.set(state, "entities.services.byId", {}),

// Version 8
// we load services scope in an specific view. So now it is uselss to hold (old) services metadata
Expand Down
2 changes: 1 addition & 1 deletion ts/components/screens/BadgeComponent.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* A component to render the circolar badge
* TODO: use the same component on all lists (messages, services, transaction): https://www.pivotaltracker.com/story/show/167064275
* TODO: use the same component on all lists (messages, transaction): https://www.pivotaltracker.com/story/show/167064275
*/
import * as React from "react";
import { Circle, Svg } from "react-native-svg";
Expand Down
Loading
Loading