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(IT Wallet): [SIW-681] Health card issuance #5315

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

LazyAfternoons
Copy link
Contributor

@LazyAfternoons LazyAfternoons commented Dec 6, 2023

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). 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.

@pagopa-github-bot pagopa-github-bot changed the title [SIW-681] Health card issuance feat(IT Wallet): [SIW-681] Health card issuance Dec 6, 2023
@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented Dec 6, 2023

Affected stories

  • 🌟 SIW-681: [APP] Integrazione Tessera Sanitaria

Generated by 🚫 dangerJS against 5a52b3b

@LazyAfternoons LazyAfternoons marked this pull request as ready for review December 6, 2023 16:39
@LazyAfternoons LazyAfternoons requested a review from a team as a code owner December 6, 2023 16:39
Copy link

codecov bot commented Dec 6, 2023

Codecov Report

Merging #5315 (5a52b3b) into bundle/it-wallet (15b6a49) will decrease coverage by 0.01%.
Report is 2 commits behind head on bundle/it-wallet.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                  @@
##           bundle/it-wallet    #5315      +/-   ##
====================================================
- Coverage             46.36%   46.36%   -0.01%     
====================================================
  Files                  1637     1637              
  Lines                 33976    33978       +2     
  Branches               8237     8238       +1     
====================================================
  Hits                  15754    15754              
- Misses                18171    18173       +2     
  Partials                 51       51              
Files Coverage Δ
...it-wallet/screens/presentation/ItwPrPidDetails.tsx 4.76% <0.00%> (ø)
ts/features/it-wallet/utils/mocks.ts 40.00% <0.00%> (-2.86%) ⬇️

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 2a94254...5a52b3b. Read the comment docs.

Copy link
Contributor

@hevelius hevelius left a comment

Choose a reason for hiding this comment

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

LGTM. Tested on Android real device. Confirmed the issue on place_of_birth.

@LazyAfternoons LazyAfternoons merged commit 7366196 into bundle/it-wallet Dec 14, 2023
6 checks passed
@LazyAfternoons LazyAfternoons deleted the SIW-681-health-card-issuance branch December 14, 2023 14:10
hevelius added a commit that referenced this pull request Dec 18, 2023
## 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>
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.

None yet

3 participants