Update SwapAmounts to support Next Suggested Gift on a frequency basis#404
Merged
Conversation
fernanDOTdo
approved these changes
Jun 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates to the swap-amounts component
overrideNSGto be set for each frequencyconfig.onetime.overrideNSGis trueconfig.monthly.overrideNSGis trueAllows for swap-amounts to still function on monthly for swapping if NSG only suggests amounts for one-time, or vice-versa. Previously, if NSG was detected at all, swap-amounts would not run.
Test pages
NSG for monthly and one-time flow: https://act.amnestyusa.org/page/193997/data/1?mode=DEMO
NSG for one-time only flow: https://act.amnestyusa.org/page/194210/data/1?mode=DEMO
Edit page for monthly and one-time: https://ca.engagingnetworks.app/index.html#pages/194211/edit
Edit page for one-time only: https://ca.engagingnetworks.app/index.html#pages/194211/edit
One-time only flow:
window.EngridAmounts.monthly.amountswindow.EngagingNetworks.suggestedGift.singleand have the sticky-default of the entry with nextSuggestedGift = trueMonthly and one-time flow:
window.EngagingNetworks.suggestedGift.recurringand have the sticky-default of the entry with nextSuggestedGift = truewindow.EngagingNetworks.suggestedGift.singleand have the sticky-default of the entry with nextSuggestedGift = trueUpdate "Amount Swap" codeblock for both edit page links (client: AIUSA)