Skip to content

Conversation

Alessandro-Laregina
Copy link
Collaborator

Short description

This PR updates the AAR reducer state to store the full recipientInfo object returned by the backend instead of just the fullNameDestinatario string.

List of changes proposed in this pull request

  • Updated the AAR reducer to store the complete recipientInfo object.
  • Updated types/interfaces to reflect the new structure of the state.

How to test

Automated tests should succeed

Copy link
Contributor

PR Title Validation for conventional commit type

All good! PR title follows the conventional commit type.

Copy link
Contributor

github-actions bot commented Oct 15, 2025

Jira Pull Request Link

This Pull Request refers to Jira issues:

Copy link

codecov bot commented Oct 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.60%. Comparing base (5805e08) to head (9534290).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #7484   +/-   ##
=======================================
  Coverage   59.60%   59.60%           
=======================================
  Files        1830     1830           
  Lines       39525    39525           
  Branches     9119     9060   -59     
=======================================
  Hits        23559    23559           
- Misses      15885    15896   +11     
+ Partials       81       70   -11     
Files with missing lines Coverage Δ
.../features/pn/aar/saga/fetchNotificationDataSaga.ts 97.14% <ø> (ø)
ts/features/pn/aar/saga/fetchQrCodeSaga.ts 95.83% <ø> (ø)
ts/features/pn/aar/store/selectors/index.ts 94.59% <100.00%> (ø)
ts/features/pn/aar/utils/stateUtils.ts 100.00% <ø> (ø)
ts/features/pn/aar/utils/testUtils.ts 100.00% <ø> (ø)

... and 13 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0852ae6...9534290. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Alessandro-Laregina and others added 2 commits October 16, 2025 09:13
…-deve-avere-solo-full-name-destinatario-ma-lintero-oggetto-denomination-restituito-dal-backend
type: sendAARFlowStates.displayingNotificationData,
fullNameDestinatario: "mario rossi",
recipientInfo: {
denomination: "nomecognome",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

denomination: "Mario Rossi"

fullNameDestinatario: "mario rossi",
recipientInfo: {
denomination: "nomecognome",
taxId: "taxID"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

taxId: "RSSMRA74D22A001Q"

mandateId: "MANDATE123",
fullNameDestinatario: "Mario Rossi"
recipientInfo: {
denomination: "nomecognome",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

denomination: "Mario Rossi"
taxId: "RSSMRA74D22A001Q"

iun: "123123",
fullNameDestinatario: "nomecognome",
recipientInfo: {
denomination: "nomecognome",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

denomination: "Mario Rossi"
taxId: "RSSMRA74D22A001Q"

iun: "123123",
fullNameDestinatario: "nomecognome",
recipientInfo: {
denomination: "nomecognome",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

denomination: "Mario Rossi"
taxId: "RSSMRA74D22A001Q"

type: sendAARFlowStates.fetchingNotificationData,
iun,
fullNameDestinatario: recipientInfo.denomination,
recipientInfo,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's better to create a new instance via spread (see above)

type: sendAARFlowStates.notAddresseeFinal,
iun: data.value.iun,
fullNameDestinatario: data.value.recipientInfo.denomination,
recipientInfo: data.value.recipientInfo,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's better to create a new instance via spread (see above)

iun: "000000000001",
fullNameDestinatario: "Mario Rossi"
recipientInfo: {
denomination: "nomecognome",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

denomination: "Mario Rossi"
taxId: "RSSMRA74D22A001Q"

type: "displayingNotificationData",
fullNameDestinatario: "Mario Rossi",
recipientInfo: {
denomination: "nomecognome",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

denomination: "Mario Rossi"
taxId: "RSSMRA74D22A001Q"

type: "notAddresseeFinal",
fullNameDestinatario: "Mario Rossi",
recipientInfo: {
denomination: "nomecognome",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

denomination: "Mario Rossi"
taxId: "RSSMRA74D22A001Q"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants