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: [IOBP-697] Add payments section definitions #389

Merged
merged 4 commits into from
Oct 16, 2024

Conversation

Hantex9
Copy link
Contributor

@Hantex9 Hantex9 commented Jun 12, 2024

⚠️ This PR depends on pagopa/io-services-metadata#787 ⚠️

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

Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.34%. Comparing base (c4e7c4b) to head (5154a6f).
Report is 2 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@           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     
Files with missing lines Coverage Δ
src/payloads/backend.ts 100.00% <ø> (ø)

... and 34 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 31a9571...5154a6f. Read the comment docs.

Copy link

dpulls bot commented Jun 19, 2024

🎉 All dependencies have been resolved !

Hantex9 added a commit to pagopa/io-app that referenced this pull request Jun 19, 2024
## ⚠️ 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"
/>
Copy link
Contributor

@Ladirico Ladirico left a 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!

@Hantex9 Hantex9 merged commit 46cdb67 into master Oct 16, 2024
8 checks passed
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.

2 participants