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

chore(IT Wallet): [SIW-1128] Add EidCard and EidCardPreview components #5772

Merged
merged 19 commits into from
May 20, 2024

Conversation

mastro993
Copy link
Contributor

@mastro993 mastro993 commented May 15, 2024

Short description

This PR introduces the EidCard and EidCardPreview component for the IT Wallet EId credential

List of changes proposed in this pull request

  • Added EidCard component
  • Added EidCardPreview component
  • Added tests
  • Added localization keys

How to test

Go to Profile > Design System > Cards and scroll to the bottom of the screen. Check that the components are rendered correctly

Preview

RocketSim_Recording_iPhone_14_6.1_2024-05-16_22.02.17.mp4

@mastro993 mastro993 requested review from dmnplb, a team and thisisjp as code owners May 15, 2024 13:34
@mastro993 mastro993 changed the title Siw 1128 add eid card component [SIW-1128] Add EIdCard and EIdCardPreview components May 15, 2024
@pagopa-github-bot pagopa-github-bot changed the title [SIW-1128] Add EIdCard and EIdCardPreview components chore(IT Wallet): [SIW-1128] Add EIdCard and EIdCardPreview components May 15, 2024
@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented May 15, 2024

Affected stories

  • ⚙️ SIW-1128: Realizzazione componente card Identità Digitale
    subtask of
    • 🌟 SIW-1021: Come cittadino voglio visualizzare l'anteprima del mio eID per controllare i dati e decidere se aggiungerlo nel portafoglio

Generated by 🚫 dangerJS against 5785570

Copy link

codecov bot commented May 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.55%. Comparing base (4f204b4) to head (5785570).
Report is 88 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5772      +/-   ##
==========================================
+ Coverage   48.42%   49.55%   +1.13%     
==========================================
  Files        1488     1619     +131     
  Lines       31617    32140     +523     
  Branches     7669     7724      +55     
==========================================
+ Hits        15311    15928     +617     
+ Misses      16238    16158      -80     
+ Partials       68       54      -14     
Files Coverage Δ
ts/features/design-system/core/DSCards.tsx 80.00% <ø> (+13.33%) ⬆️
ts/features/itwallet/common/components/EidCard.tsx 100.00% <100.00%> (ø)
...ures/itwallet/common/components/EidCardPreview.tsx 100.00% <100.00%> (ø)

... and 497 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 2b85bf7...5785570. Read the comment docs.

Copy link
Contributor

@dmnplb dmnplb left a comment

Choose a reason for hiding this comment

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

I just checked the design guidelines provided by our colleagues and everything seems fine

@mastro993 mastro993 changed the title chore(IT Wallet): [SIW-1128] Add EIdCard and EIdCardPreview components chore(IT Wallet): [SIW-1128] Add EidCard and EidCardPreview components May 16, 2024
Copy link
Contributor

@LazyAfternoons LazyAfternoons left a comment

Choose a reason for hiding this comment

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

LGTM

@mastro993 mastro993 merged commit 8d55432 into master May 20, 2024
13 checks passed
@mastro993 mastro993 deleted the SIW-1128-add-eid-card-component branch May 20, 2024 13:30
mastro993 added a commit that referenced this pull request May 30, 2024
> [!WARNING]
> This PR depends on #5779,
#5772

## Short description
This PR adds the eID preview screen with mocked data.

> [!important]
> The screen is missing the component that allows scrolling to the
bottom of the page. There is currently an incompatibility with the
`IOScrollViewWithLargeHeader` component which will be resolved in a
separate PR

## List of changes proposed in this pull request
- Added `ItwIssuanceEidPreviewScreen` component
- Added required locales
- Added mock data for eID, DC, DL and TS in `ItwMockUtils`

## How to test
Navigate to **Profile > IT Wallet > eID > Select an IDP**. You should be
able to see the new screen as the below preview.

## Preview


https://github.com/pagopa/io-app/assets/6160324/9d30201f-9c16-4593-8c24-9dab38377389

---------

Co-authored-by: Damiano Plebani <damiano.plebani@pagopa.it>
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

4 participants