Skip to content

Commit

Permalink
chore(CDC): [IOBP-1010] Remove CDC Bonus files and related functions (#…
Browse files Browse the repository at this point in the history
…6630)

## Short description
This pull request involves the removal of several components and related
functionalities for the CDC bonus feature. The most important changes
include the deletion of tracking logic, API client code, UI components,
and associated tests.

## List of changes proposed in this pull request
- Removed CDC Bonus files inside `cdc` folder
- Removed CDC Bonus saga, store, navigation and analytics

## How to test
Ensure the application is not crashing

---------

Co-authored-by: Alessandro <[email protected]>
  • Loading branch information
LeleDallas and Hantex9 authored Jan 24, 2025
1 parent e327992 commit 08fbb60
Show file tree
Hide file tree
Showing 48 changed files with 40 additions and 3,506 deletions.
171 changes: 0 additions & 171 deletions assets/CdcSwagger.yml

This file was deleted.

47 changes: 1 addition & 46 deletions locales/en/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2907,53 +2907,8 @@ bonus:
one: 1 second
other: "{{seconds}} seconds"
cdc:
title: "Carta della cultura"
serviceCta:
activable: "Request your card"
pending: "Request sent"
error:
status: "The necessary information could not be retrieved. Please, try again."
serviceEntryPoint:
serviceEntryPoint:
notAvailable: "The service is not available at this time. Try later."
bonusRequest:
bonusRequested:
loading:
title: "We are sending your request..."
subtitle: "We remind you that only the requests for when your residency was in Italy are valid. Please wait."
requestCompleted:
title: "Your request was sent!"
body: "You will receive a message on IO when the rankings are final."
cta: "I got it!"
partiallySuccess:
title: "Here is the result of your requests"
body:
success: "The request for {{successfulYears}} was successful."
fail:
residenceAbroad: "The request for {{failedYears}} could not be sent because you are not a resident of Italy."
notEligible: "The request for {{failedYears}} could not be sent because you cannot apply for Carta della Cultura for the selected year."
alreadyRegistered: "The request for {{failedYears}} could not be sent because you have already submitted a request for that year."
initiativeFinished: "The request for {{failedYears}} could not be sent because the request period is over."
ko:
requirementsError:
title: "Unfortunately you don't have the requirements to apply for Carta della Cultura."
body: "Carta della Cultura is only available for citizens residing in Italy."
wrongFormat:
title: "Carta della Cultura is not available at the moment."
body: "We apologize for the inconvenience.\nPlease try again later."
genericError:
title: "There was an error with your request"
body: "We apologize for the inconvenience.\nPlease try again later."
selectResidence:
header: "Residency"
items:
residesInItaly: "Italy"
residesAbroad: "Abroad"
info: "Carta della Cultura is only available for citizens residing in Italy. Please, select your residency for each year."
selectYear:
header: "Select for what years you want to request the Carta della Cultura"
body: "For each selected year, your ISEE needs to be below € 15,000 and your residency must be in Italy."
misc:
conjunction: " and "
features:
messages:
pushNotifications:
Expand Down
45 changes: 0 additions & 45 deletions locales/it/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2907,53 +2907,8 @@ bonus:
one: 1 secondo
other: "{{seconds}} secondi"
cdc:
title: "Carta della cultura"
serviceCta:
activable: "Attiva la carta"
pending: "Richiesta inviata"
error:
status: "Non è stato possibile recuperare le informazioni necessarie. Ti chiediamo di riprovare."
serviceEntryPoint:
notAvailable: "Il servizio non è disponibile in questo momento. Riprova più tardi."
bonusRequest:
bonusRequested:
loading:
title: "Stiamo inviando la tua richiesta di attivazione..."
subtitle: "Ti ricordiamo che sono valide solo le richieste per gli anni in cui hai dichiarato di essere residente in Italia. Ti preghiamo di attendere"
requestCompleted:
title: "La tua richiesta è stata inviata!"
body: "Riceverai un messaggio su IO quando le graduatorie saranno definitive."
cta: "Ho capito!"
partiallySuccess:
title: "Ecco l’esito delle tue richieste"
body:
success: "La richiesta per il {{successfulYears}} è andata a buon fine."
fail:
residenceAbroad: "Non è stato possibile inviare la richiesta relativa al {{failedYears}}, perché non residente in Italia."
notEligible: "Non è stato possibile inviare la richiesta relativa al {{failedYears}}, perché non è possibile richiedere Carta della Cultura per l’anno selezionato."
alreadyRegistered: "Non è stato possibile inviare la richiesta relativa al {{failedYears}}, perché hai già inviato una richiesta di attivazione per quell’anno."
initiativeFinished: "Non è stato possibile inviare la richiesta relativa al {{failedYears}}, perché il periodo di richiesta è terminato."
ko:
requirementsError:
title: "Purtroppo non hai i requisiti per richiedere la Carta della Cultura."
body: "La Carta della Cultura è disponibile solo per i cittadini residenti in Italia."
wrongFormat:
title: "Il servizio Carta della Cultura in questo momento non è disponibile."
body: "Ci scusiamo per il disagio.\nTi invitiamo a riprovare più tardi."
genericError:
title: "Si è verificato un errore con la tua richiesta"
body: "Ci scusiamo per il disagio.\nTi invitiamo a riprovare più tardi."
selectResidence:
header: "Residenza"
items:
residesInItaly: "Risiedo in Italia"
residesAbroad: "Risiedo all’estero"
info: "Carta della Cultura è disponibile solo per i cittadini residenti in Italia. Indica la tua residenza per ciascun anno."
selectYear:
header: "Per quale anno vuoi richiedere la Carta della Cultura?"
body: "Per ogni anno selezionato, il tuo ISEE non deve superare i 15.000 € e la tua residenza deve essere nel territorio italiano."
misc:
conjunction: ", "
features:
messages:
pushNotifications:
Expand Down
2 changes: 0 additions & 2 deletions scripts/generate-api-models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ declare -a apis=(
"./definitions/cgn/merchants https://raw.githubusercontent.com/pagopa/io-backend/$IO_BACKEND_VERSION/api_cgn_operator_search.yaml"
# PN APIs
"./definitions/pn https://raw.githubusercontent.com/pagopa/io-backend/$IO_BACKEND_VERSION/api_pn.yaml"
# CDC APIs
"./definitions/cdc assets/CdcSwagger.yml"
# FCI APIs
"./definitions/fci https://raw.githubusercontent.com/pagopa/io-backend/$IO_BACKEND_VERSION/api_io_sign.yaml"
)
Expand Down
Loading

0 comments on commit 08fbb60

Please sign in to comment.