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-804] Added feedback banner mock for the new payment success screen #402

Merged
merged 11 commits into from
Oct 22, 2024

Conversation

Hantex9
Copy link
Contributor

@Hantex9 Hantex9 commented Jul 31, 2024

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

Short description

This PR adds the feedback banner definition and its mock. This property is used to show the feedback banner when the user completes a payment successfully with the new payment flow.

List of changes proposed in this pull request

  • Updated content_specs definitions (N.B: When the dependent PR indicated above will be merged, the content_specs definitions have to be updated with the version deployed of io-services-metadata);
  • Added feedbackBanner properties inside newPaymentsSection;

How to test

With this PR runned on the dev-server, start the io app in DEV env. and complete a payment flow, you should be able to see a banner with the provided text inside the payment thank you page

Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.28%. Comparing base (eae982e) to head (98b3d38).
Report is 2 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           master     #402    +/-   ##
========================================
  Coverage   64.28%   64.28%            
========================================
  Files         167      167            
  Lines        5362     5362            
  Branches      731      739     +8     
========================================
  Hits         3447     3447            
+ Misses       1914     1775   -139     
- Partials        1      140   +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 d3ee6e5...98b3d38. Read the comment docs.

package.json Outdated
@@ -11,7 +11,7 @@
"api_cgn": "https://raw.githubusercontent.com/pagopa/io-backend/v14.3.0-RELEASE/api_cgn.yaml",
"api_cgn_merchants": "https://raw.githubusercontent.com/pagopa/io-backend/v14.3.0-RELEASE/api_cgn_operator_search.yaml",
"api_cgn_geo": "https://raw.githubusercontent.com/pagopa/io-backend/here_geoapi_integration/api_geo.yaml",
"content_specs": "https://raw.githubusercontent.com/pagopa/io-services-metadata/1.0.42/definitions.yml",
"content_specs": "https://raw.githubusercontent.com/pagopa/io-services-metadata/IOBP-803-add-banner-new-payment-section/definitions.yml",
Copy link
Contributor

Choose a reason for hiding this comment

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

It should be update with release version

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The release version has been addressed into bd18145

Copy link

dpulls bot commented Oct 16, 2024

🎉 All dependencies have been resolved !

@Hantex9 Hantex9 requested a review from hevelius October 16, 2024 15:12
Hantex9 added a commit to pagopa/io-app that referenced this pull request Oct 17, 2024
…d remote configuration (#6072)

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

## Short description
This PR adds the remote feature flag and remote configurations for the
feedback banner that will be displayed on the successful payment screen.

## List of changes proposed in this pull request
- Adapted the `WalletPaymentFeedbackBanner` to show only if the feature
flag is enabled and if it is, shows with a remote content inside;
- Added `isPaymentsFeedbackBannerEnabledSelector` to check if the
feedback banner should be shown or not;
- Added `paymentsFeedbackBannerConfigSelector` to get the banner remote
configurations

## How to test
- Checkout this PR: pagopa/io-dev-api-server#402
- Run the dev-server
- Start a payment from the payments section;
- When you reach the "success" page, if the feature flag is enabled with
the min_app_version, you should be able to see the feedback banner as
shown in the following screenshot;

## Preview
<img
src="https://github.com/user-attachments/assets/ccb7a9db-c066-40a2-b129-7f3d927bc58c"
width="300" />

---------

Co-authored-by: Mario Perrotta <mario.perrotta@pagopa.it>
Co-authored-by: Alice Di Rico <83651704+Ladirico@users.noreply.github.com>
@Hantex9 Hantex9 merged commit 5f69af6 into master Oct 22, 2024
8 checks passed
@Hantex9 Hantex9 deleted the IOBP-804-add-feedback-banner-mock branch October 22, 2024 17:35
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.

3 participants