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

Refactor: Change to use the selected default period in notice #7434

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

pauloiankoski
Copy link
Contributor

@pauloiankoski pauloiankoski commented Jul 3, 2024

Resolves GIVE-822

Description

Under certain conditions, due to a combination of Give Recurring settings, a notice is shown below the Amount block in the VFB, representing the same message users will see in the Donation Form. This notice informs that the donation will repeat every X periods. Currently, that message always uses the first option label. This pull request changes that behavior to use the selected default period as the source for the period label. With that, was necessary to add an extra conditional to not show the notice when the default option is set to "One-time".

Affects

Recurring settings in the Amount block

Visuals

CleanShot.2024-07-03.at.18.20.08.mp4

Testing Instructions

Make sure the recurring message is still being displayed correctly in both VFB and Donation Form.

Pre-review Checklist

  • Acceptance criteria satisfied and marked in related issue
  • Relevant @unreleased tags included in DocBlocks
  • Includes unit tests
  • Reviewed by the designer (if follows a design)
  • Self Review of code and UX completed

@pauloiankoski pauloiankoski requested a review from jdghinson July 3, 2024 22:41
Copy link
Contributor

@jdghinson jdghinson left a comment

Choose a reason for hiding this comment

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

All good!👍

@JoshuaHungDinh JoshuaHungDinh self-requested a review July 6, 2024 20:59
Copy link
Contributor

@JoshuaHungDinh JoshuaHungDinh left a comment

Choose a reason for hiding this comment

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

Nice! This is G2G.

Copy link
Member

@rickalday rickalday left a comment

Choose a reason for hiding this comment

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

Passed manual QA tests.

@pauloiankoski pauloiankoski merged commit 04ef772 into develop Jul 9, 2024
20 checks passed
@pauloiankoski pauloiankoski deleted the refactor/recurring-notice branch July 9, 2024 18:26
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