-
Notifications
You must be signed in to change notification settings - Fork 104
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(IT Wallet): [SIW-740] Refactor claims list #5321
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## bundle/it-wallet #5321 +/- ##
====================================================
- Coverage 46.36% 46.36% -0.01%
====================================================
Files 1637 1638 +1
Lines 33976 34010 +34
Branches 8237 8245 +8
====================================================
+ Hits 15754 15769 +15
- Misses 18171 18190 +19
Partials 51 51
Continue to review full report in Codecov by Sentry.
|
## Short description This PR introduces the health card issuance issuance. Note: there's an issue with the place of birth claim which is going to addressed in a separate issue ([SIW-681](https://pagopa.atlassian.net/jira/software/projects/SIW/boards/222?selectedIssue=SIW-740)). Since the component which renders the claims list needs a substantial refactor I decided to leave it out of the scope of this PR. See #5321. ## List of changes proposed in this pull request - Updates the mock data required to obtain a display the credential; - Rename the card front asset according to the name of the credential. ## How to test With an valid wallet test the health card issuance flow. [SIW-681]: https://pagopa.atlassian.net/browse/SIW-681?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
## Short description This PR adds the mobile driving license issuing. Some claims might not be rendered properly. Since the component which renders the claims list needs a substantial refactor I decided to leave it out of the scope of this PR. See #5321. ## List of changes proposed in this pull request - Updates the mock data required to obtain and display the credential. ## How to test Test the mDL issuing flow.
…-refactor-claims-list
🎉 All dependencies have been resolved ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. It works as expected.
Short description
Depends on #5310, #5315 and #5321.
This PR introduces a refactors in how we render the claims list. The general idea behind this refactor is that we are parsing the
unknown
value of a claim with io-ts decoders to known which kind of claim we are manipulating, thus rendering an appropriate component to display it.List of changes proposed in this pull request
itwCredentialClaim.tsx
which decodes the claim and renders the appropriate component;ItwCredentialClaimsList.tsx
to the new changes;ItwClaimsUtils
.How to test
Test the available credentials, each claim should be render properly formatted.