Skip to content

fix: Monthly 'other amount' text fix for Donate Banner#893

Merged
curlyfriesplease merged 3 commits into
masterfrom
ENG-5197-monthly-other-amount
Jun 10, 2026
Merged

fix: Monthly 'other amount' text fix for Donate Banner#893
curlyfriesplease merged 3 commits into
masterfrom
ENG-5197-monthly-other-amount

Conversation

@curlyfriesplease

@curlyfriesplease curlyfriesplease commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

PR description

What is it doing?

It was found that the label above the amount input field was never fully wired up. As part of the investigation it was found that we also have some redundant props, a hangover from the previous iteration of the Donate widget. This PR:

  • Uses either the otherAmountText or monthlyOtherAmountText props to label the field
  • Removes the two redundant props chooseAmountText and monthlyChooseAmountText. These used to sit above the moneybuy buttons, and we don't have that text anymore.

Once this package is available I'll do the CRcom PR to finish by removing the relevant fields from the CMS.

Why is this required?

Bugfix & tidyup

link to Jira ticket:

ENG-5197

Quick Checklist:

  • My PR title follows the Conventional Commit spec.

  • I have filled out the PR description as per the template above.

  • I have added tests to cover new or changed behaviour.

  • I have updated any relevant documentation.

Important! - lastly, make sure to squash merge...

cartID: PropTypes.string.isRequired,
donateLink: PropTypes.string.isRequired,
otherAmountText: PropTypes.string.isRequired,
monthlyOtherAmountText: PropTypes.string,

@AndyEPhipps AndyEPhipps Jun 10, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This doesn't seem to get used, as the final copy is switched within DonateBanner via ahandleOtherAmountText call based on the current givingType, and the single output is passed to the Form via otherAmountText

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good spot

@curlyfriesplease curlyfriesplease merged commit fbf1ea1 into master Jun 10, 2026
9 checks passed
@curlyfriesplease curlyfriesplease deleted the ENG-5197-monthly-other-amount branch June 10, 2026 11:58
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 8.73.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants