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

Feat/PN-13447 Add EmailSmsContactWizard component #1469

Merged
merged 48 commits into from
Feb 19, 2025

Conversation

mflauti
Copy link
Collaborator

@mflauti mflauti commented Feb 13, 2025

Short description

This PR mainly includes the code needed to implement the ability to add/change an email and/or phone number during the digital domicile activation/transfer wizard. Moreover, there were other changes, which were necessary for this part of the application to work properly.

List of changes proposed in this pull request

  • add EmailSmsContactWizard component
  • add CourtesyContactConfirmationDialog to be shown when the user try to skip the insertion of a courtesy contact (IO, email/sms) or to exit the activation/transfer wizard after the first step (process already begun)
  • change DigitalContactActivation to include the new step
  • add onExit prop to PnWizard to handle the exit click
  • add/change tests for DigitalContactActivation component
  • add new optional showLabelOnEdit prop to DigitalContact component
  • add slotsProps to DigitalContact and SmsContactItem to customize the contained TextField and Button layout
  • add tests for EmailSmsContactWizard
  • add/change tests for PnWizard

How to test

Run both pf and pg webapps and verify the behaviour of every single feature listed above is as descibed by specifications. For PF, to test also the IO step you should use uat environment and mock the server response for sercq activation as follows (since sercq send is disabled on uat):

Request filter: https://webapi.uat.notifichedigitali.it/bff/v1/addresses/LEGAL/default/SERCQ_SEND
method: POST
Status code: 204

mflauti and others added 30 commits December 6, 2024 09:09
test: add tests to verify DefaultDigitalContact new features
test: fix tests not working after changes to DefaultDigitalContact
test: add code to verify the error message is shown submitting an empty DefaultDigitalContact
…generic, renaming to PnInfoCard and moving to pn-commons

test: fix tests for DigitalContactsCard after refactor
test: add tests for PnInfoCard new functionalities
…draft)

fix: add useEffect to PnInfoCard to refresh expanded/collapsed initial state
… instances

refactor: add rest prop to PnInfoCard
refactor: change LegalContacts layout while validating PEC
test: fix LegalContacts, SpecialContacts and Contacts.page tests
chore: fix LegalContacts translations
… PG)

refactor: change DeleteDialog to reflect new figma specs (PF and PG)
refactor: change some localization keys to simplify LegalContacts code (PF and PG)
test: fix tests which stop working after localization key changed
…al domicile

test: add code to verify DeleteDialog content while disabling digital domicile
mflauti and others added 12 commits January 20, 2025 15:59
refactor: prevent user from accessing digital domicile management page if ddom is not set
feat: add usePreviousLocation hook to manage navigate to previous page replacing history
refactor: change DigitalContactActivation to include EmailSmsContactWizard
refactor: add new optional showLabelOnEdit to DigitalContact component
refactor: now PnWizard component accepts a callback to handle the exit
test: add/change tests for DigitalContactActivation component
…her customize their layout and behaviour

test: add and change tests after adding onExit prop on PnWizard
@mflauti mflauti marked this pull request as ready for review February 13, 2025 16:45
@AndreaCimini90 AndreaCimini90 self-assigned this Feb 17, 2025
@AndreaCimini90 AndreaCimini90 changed the base branch from develop to feature/rework_contacts February 17, 2025 08:07
@AndreaCimini90 AndreaCimini90 merged commit 7d4593f into feature/rework_contacts Feb 19, 2025
3 checks passed
@AndreaCimini90 AndreaCimini90 deleted the feat/PN-13447 branch February 19, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants