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-803] Add feedback banner definitions into new payment section #821

Merged
merged 13 commits into from
Oct 16, 2024

Conversation

Hantex9
Copy link
Contributor

@Hantex9 Hantex9 commented Jul 31, 2024

Short description

This PR adds definitions for the payment banner feedback adding some reusable types Banner, BannerAction and LocalizedText that provide all the needed properties to show a banner with an optional action.

List of changes proposed in this pull request

  • Added feedbackBanner under the NewPaymentSection definition with the provided min version to be visible
  • Added Banner properties with the BannerAction and a reusable LocalizedText definition

status/backend.json Outdated Show resolved Hide resolved
status/backend.json Outdated Show resolved Hide resolved
Hantex9 and others added 4 commits October 15, 2024 16:24
Co-authored-by: FrancescaMariaTIberti <86290029+FrancescaMariaTIberti@users.noreply.github.com>
Co-authored-by: FrancescaMariaTIberti <86290029+FrancescaMariaTIberti@users.noreply.github.com>
@Hantex9 Hantex9 requested a review from hevelius October 15, 2024 14:28
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! @hevelius your approve is needed to unlock the merge 🙏🏼

@Hantex9 Hantex9 merged commit ffa01f7 into master Oct 16, 2024
4 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants