-
Notifications
You must be signed in to change notification settings - Fork 5
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: [IOBP-697] Add payments section definitions #389
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #389 +/- ##
========================================
Coverage 64.34% 64.34%
========================================
Files 167 167
Lines 5354 5354
Branches 748 726 -22
========================================
Hits 3445 3445
- Misses 1769 1908 +139
+ Partials 140 1 -139
... and 34 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
🎉 All dependencies have been resolved ! |
##⚠️ This PR depends on pagopa/io-services-metadata#787⚠️ ## Short description This PR adds the ability to display a remote alert (formally called a banner) within the home payment screen. ## List of changes proposed in this pull request - Created a new `PaymentsAlertStatus` component that takes the `payments` section status to show/hide a banner; - Updated io_content_specs definitions into package.json -> WARNING: As soon as the pagopa/io-services-metadata#787 PR is merged, the content definition reference will have the 1.0.33 version - Created a utility function `getAlertVariant` in order to "normalize" the alert variant based on the SectionStatus LevelEnum; ## How to test - Checkout this PR from the dev-server: pagopa/io-dev-api-server#389 - Run `yarn generate` both on the dev-server and the app - Editing the `payments` attribute from the `backend.ts` file on the dev-server, you should be able to see or not see the alert. ## Preview |Fade In|Fade Out| |-|-| |<video src="https://github.com/pagopa/io-app/assets/34343582/0c9506c3-da87-4087-bbaa-a29b16d8d822" />|<video src="https://github.com/pagopa/io-app/assets/34343582/6f7281d0-2d29-4653-883b-30548ffce959" />
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! Needs only to resolve the conflict!
Short description
This PR adds the "payments" section from the statuses to show/hide the alert (formally called banner) service in the payments home.
List of changes proposed in this pull request
backend.ts
file