Skip to content

chore(IT-Wallet): [SIW-4062] Add mtc tracking#7948

Draft
DavideOnano wants to merge 12 commits intoSIW-4022/feat-bottomsheet-mdl-expired-invalidfrom
SIW-4062/chore-add-mtc-tracking
Draft

chore(IT-Wallet): [SIW-4062] Add mtc tracking#7948
DavideOnano wants to merge 12 commits intoSIW-4022/feat-bottomsheet-mdl-expired-invalidfrom
SIW-4062/chore-add-mtc-tracking

Conversation

@DavideOnano
Copy link
Copy Markdown
Collaborator

@DavideOnano DavideOnano commented Mar 20, 2026

⚠️ This pr depends on #7942 ⚠️

Please review first #7942 in order to avoid duplicate review work.

Short description

Include a summary of the changes.

List of changes proposed in this pull request

  • Feature A
  • Feature B

How to test

Describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

LeleDallas and others added 12 commits March 17, 2026 15:21
## Short description
During the review of this
[development](#7914), I noticed
some alignment issues in a few bottom sheets. This problem is also
present in the master branch.

This pull request introduces minor adjustments to the layout spacing in
the App Feedback and IDPay static code modal components, improving
visual alignment and ensuring greater layout consistency.

## List of changes proposed in this pull request
- Added a `VSpacer` of size 32 above the Android-specific spacer in the
`AppFeedbackProvider` component to improve separation between elements
- Adjust spacing in the `useIDPayStaticCodeModal` hook
- Adjust `IOText` color based on theme color

## How to test
Ensure that element inside related bottom-sheet have correct spacing.
To test `AppFeedbackProvider` bottom-sheet, you can call the `present`
method before rendering component

## Preview

| Master | IOPLT-000 |
|--------|--------|
| <img width="1728" height="1117" alt="Screenshot 2026-03-10 at 12 26
45"
src="https://github.com/user-attachments/assets/b74176bf-ca4e-48b4-bb9a-d5af0f2556a7"
/> | <img width="1728" height="1117" alt="Screenshot 2026-03-10 at 12 26
24"
src="https://github.com/user-attachments/assets/3109ef21-95f2-4998-a964-09b7864d0d36"
/>|
| <img width="1728" height="1117" alt="Screenshot 2026-03-10 at 12 29
51"
src="https://github.com/user-attachments/assets/6b1c48fb-9dd0-4ea0-b481-ab18c4c24213"
/> | <img width="1728" height="1117" alt="Screenshot 2026-03-10 at 12 29
33"
src="https://github.com/user-attachments/assets/fe5679cf-d742-46a5-9f3c-a3c9d6487400"
/>|
## Short description
--- 🔴 DEPENDS ON #7880 🔴 ---

this PR introduces the logic required to display the correct error
screens in case of a TTL error in both the mandate creation and mandate
validation steps of the AAR delegation flow

| mandate validation | mandate creation |
|--------|--------|
|<img width="250" alt="Screenshot 2026-02-26 at 15 27 54"
src="https://github.com/user-attachments/assets/9c8b93e1-7234-4c41-a700-bbe4c16be245"
/>|<img width="250" alt="Screenshot 2026-02-26 at 15 30 32"
src="https://github.com/user-attachments/assets/e4e7f46c-ecdd-4868-8126-e14260bf2202"
/>|

## List of changes proposed in this pull request
- added required components
- added required i18n entries
- refactored the error handling logic to accomodate for the new
components
- tests

## How to test
- automated tests should pass.
- make sure the pre-implemented error screens in the AAR flow behave and
display as expected

Also, using either the dev-server or proxy software (e.g. proxyman):
- a 500 error in the mandate creation response with
{code:`PN_MANDATE_ALREADYEXISTS`} as the first entry in the `errors`
array should result in its specific error screen. no other configuration
(e.g. different http code, different error as the first entry) should
result in the same screen.
- a 500 error in the mandate validation response with {code:
`PN_MANDATE_NOTFOUND`} as its first entry in the `errors` array should
behave the same way as the mandate creation response logic.

---------

Co-authored-by: Andrea <andrea.piai@pagopa.it>
## Short description
🔴  DEPENDS ON #7897 

This PR includes tracking functions for the SEND AAR TTL errors

## List of changes proposed in this pull request
- added tracking functions
- updated current flows to call said functions when needed
- updated tests

## How to test
automated tests should pass.
also, using the dev-server, verify that all new tracking functions are
called when expected, and their effects match the ones mapped in their
corresponding documents.

---------

Co-authored-by: Andrea <andrea.piai@pagopa.it>
…capture (#7840)

> [!note]
> This PR requires to elevate min **iOS** version to `15.1`

## Short description
This PR installs expo and fixes related dependencies to build on both
iOS and Android.
Furthermore in this PR the first expo-module has been installed,
replacing previous react-native module.
`expo-screen-capture` takes place of `react-native-screenshot-prevent`
removing the related references and patch.

## List of changes proposed in this pull request
- Installs `expo`
- Removes unsupported and unused dependencies
- Disables the auto-linking on local env for `@pagopa/react-native-cie`
on **iOS**
- Replaces `react-native-screenshot-prevent` with `expo-screen-capture`

## How to test
To test the PR follow these steps:
- Remove `node_modules` runninng `rm -rf node_modules`
- Remove Pods and derived data running `cd ios; rm -rf Pods; rm -rf
DerivedData`
- Run complete new installation of packages with `yarn install`
- Run new pod installation command with `yarn dev:pod-install`
- Build and compile iOS and Android project to check anything's working
as usual
## Short description
This pull request updates the version of the IO Session Manager
dependency

## List of changes proposed in this pull request
- Bumped `IO_SESSION_MANAGER_VERSION` from `1.8.0` to `1.23.1`

## How to test
- Ensure the app works with no regression
- Ensure that `yarn tsc:noemit` is running without errors
@DavideOnano DavideOnano changed the title chore(IT-Wallet): [SIW-4062] chore add mtc tracking for chore(IT-Wallet): [SIW-4062] chore add mtc tracking Mar 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

PR Title Validation for conventional commit type

All good! PR title follows the conventional commit type.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 20, 2026

Jira Pull Request Link

This Pull Request refers to Jira issues:

@DavideOnano DavideOnano changed the title chore(IT-Wallet): [SIW-4062] chore add mtc tracking chore(IT-Wallet): [SIW-4062] Add mtc tracking Mar 20, 2026
@DavideOnano DavideOnano changed the base branch from master to SIW-4022/feat-bottomsheet-mdl-expired-invalid March 20, 2026 11:02
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 20, 2026

Codecov Report

❌ Patch coverage is 89.47368% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.29%. Comparing base (a2f569e) to head (d36acd7).
⚠️ Report is 8 commits behind head on SIW-4022/feat-bottomsheet-mdl-expired-invalid.

Files with missing lines Patch % Lines
...s/itwallet/presentation/details/analytics/index.ts 33.33% 4 Missing ⚠️
ts/features/itwallet/issuance/analytics/index.ts 33.33% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@                                Coverage Diff                                @@
##           SIW-4022/feat-bottomsheet-mdl-expired-invalid    #7948      +/-   ##
=================================================================================
+ Coverage                                          60.24%   60.29%   +0.04%     
=================================================================================
  Files                                               1968     1968              
  Lines                                              43941    43969      +28     
  Branches                                           10147    10074      -73     
=================================================================================
+ Hits                                               26474    26510      +36     
- Misses                                             17378    17380       +2     
+ Partials                                              89       79      -10     
Files with missing lines Coverage Δ
...ures/appReviews/components/AppFeedbackProvider.tsx 11.11% <ø> (ø)
...idpay/barcode/screens/IdPayBarcodeResultScreen.tsx 92.00% <100.00%> (ø)
...res/idpay/common/hooks/useIDPayStaticCodeModal.tsx 95.12% <100.00%> (ø)
...nce/screens/ItwIssuanceCredentialLandingScreen.tsx 100.00% <100.00%> (ø)
...ns/ItwPresentationEidVerificationExpiredScreen.tsx 94.44% <100.00%> (+88.19%) ⬆️
ts/features/pn/aar/analytics/index.ts 100.00% <100.00%> (ø)
...ents/errors/SendAarCieValidationErrorComponent.tsx 100.00% <100.00%> (ø)
.../errors/SendAarPendingDelegationErrorComponent.tsx 100.00% <100.00%> (ø)
ts/features/pn/aar/saga/createAarMandateSaga.ts 100.00% <100.00%> (ø)
.../features/pn/aar/saga/downloadAARAttachmentSaga.ts 98.59% <100.00%> (+0.02%) ⬆️
... and 5 more

... and 10 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 a2f569e...d36acd7. 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.

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.

4 participants