-
Notifications
You must be signed in to change notification settings - Fork 97
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-722] Add verifyAndParseCredential phase to credential issuing #5310
chore(IT Wallet): [SIW-722] Add verifyAndParseCredential phase to credential issuing #5310
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## bundle/it-wallet #5310 +/- ##
====================================================
- Coverage 46.36% 46.36% -0.01%
====================================================
Files 1637 1637
Lines 33976 33982 +6
Branches 8237 8241 +4
====================================================
+ Hits 15754 15755 +1
- Misses 18171 18176 +5
Partials 51 51
Continue to review full report in Codecov by Sentry.
|
@LazyAfternoons this PR can be reviewed? What's missing? |
It needs this fix in |
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
## 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 - Defines a set of decoders for our claims; - Adds a `itwCredentialClaim.tsx` which decodes the claim and renders the appropriate component; - Align `ItwCredentialClaimsList.tsx` to the new changes; - Moves every claim related util to `ItwClaimsUtils`. ## How to test Test the available credentials, each claim should be render properly formatted. --------- Co-authored-by: Mario Perrotta <mario.perrotta@pagopa.it>
Short description
Depends on this PR.
This PR introduces the
verifyAndParseCredential
phase to the credential issuing flow.List of changes proposed in this pull request
ItwIssuanceSaga.ts
with the libraryverifyAndParseCredential
function which already returns a Record of claims;ItwCredentialClaimsList.tsx
to get the claims from the new Record structure. There's no need to use thecredentialConfigurationSchema
anymore.How to test
Reset the wallet. Test a credential issuing flow, the claims should be displayed just as before.