-
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
feat(IT Wallet): [SIW-560] Generalize loading component #5055
feat(IT Wallet): [SIW-560] Generalize loading component #5055
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## bundle/it-wallet #5055 +/- ##
====================================================
+ Coverage 46.42% 46.48% +0.06%
====================================================
Files 1583 1584 +1
Lines 32906 32855 -51
Branches 8305 8176 -129
====================================================
- Hits 15275 15273 -2
+ Misses 17568 17527 -41
+ Partials 63 55 -8
... and 8 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
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 This PR proposes a generalization of the `ItwLoadingSpinner`. ## List of changes proposed in this pull request - Adds an optional `size` prop which defaults to `24` to render the spinner component in different sizes. `76` is kept for backward compatibility with the existing screens and will be removed after we migrate completely to the new design system. - Makes the `color` prop optional which defaults to `IOColors["blueIO-500"]` for the new design system; - Removes `captionTitle` and `captionSubtitle` from the loading spinner component and moves it to `ItwLoadingSpinnerOverlay.tsx` which is also updated with the new design system. ## How to test Test an issuing flow and check for any regression. Please note that the "legacy" spinner might be a little thinner than before. Also, this is still not updated with the new gradient style. --------- Co-authored-by: Mario Perrotta <mario.perrotta@pagopa.it>
## Short description This PR adds the new `LoadingSpinner` component, derived from `ItwLoadingSpinner` developed specifically for the IT Wallet flow. To learn more about the original component: * pagopa/io-app#5055 ## List of changes proposed in this pull request - Slightly refactor the original component - Add the new **Loaders** page to the example app ### Preview https://github.com/pagopa/io-app-design-system/assets/1255491/fa506c48-eea3-4210-854c-b5fe66ba5132 ## How to test 1. Launch the example app 2. Go to the **Loaders** page --------- Co-authored-by: Cristiano Tofani <cri.tofani@gmail.com>
## Short description This PR proposes a generalization of the `ItwLoadingSpinner`. ## List of changes proposed in this pull request - Adds an optional `size` prop which defaults to `24` to render the spinner component in different sizes. `76` is kept for backward compatibility with the existing screens and will be removed after we migrate completely to the new design system. - Makes the `color` prop optional which defaults to `IOColors["blueIO-500"]` for the new design system; - Removes `captionTitle` and `captionSubtitle` from the loading spinner component and moves it to `ItwLoadingSpinnerOverlay.tsx` which is also updated with the new design system. ## How to test Test an issuing flow and check for any regression. Please note that the "legacy" spinner might be a little thinner than before. Also, this is still not updated with the new gradient style. --------- Co-authored-by: Mario Perrotta <mario.perrotta@pagopa.it>
Short description
This PR proposes a generalization of the
ItwLoadingSpinner
.List of changes proposed in this pull request
size
prop which defaults to24
to render the spinner component in different sizes.76
is kept for backward compatibility with the existing screens and will be removed after we migrate completely to the new design system.color
prop optional which defaults toIOColors["blueIO-500"]
for the new design system;captionTitle
andcaptionSubtitle
from the loading spinner component and moves it toItwLoadingSpinnerOverlay.tsx
which is also updated with the new design system.How to test
Test an issuing flow and check for any regression. Please note that the "legacy" spinner might be a little thinner than before. Also, this is still not updated with the new gradient style.