Skip to content

refactor(remember-me): remove recurrfreq and donation amount handling - #430

Merged
fernanDOTdo merged 1 commit into
mainfrom
revert-remember-me-donation-amt
Sep 1, 2026
Merged

refactor(remember-me): remove recurrfreq and donation amount handling#430
fernanDOTdo merged 1 commit into
mainfrom
revert-remember-me-donation-amt

Conversation

@plpmd

@plpmd plpmd commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR reverts the RememberMe component's recurring-frequency handling and the custom donation-amount logic that were introduced in #412, while keeping the other features from that PR.


Removed

  • DonationFrequency dependency — the import from ./events and the _frequency instance are gone. RememberMe no longer subscribes to onFrequencyChange.
  • fieldDonationRecurrFreqRadioName option — the field declaration, constructor parameter, default assignment (transaction.recurrfreq), and the dedicated recurrfreq radio-group branch in writeFields() were removed. The matching docs entry in rememberme.md was dropped as well.
  • Custom "Other" amount save/restore fixesreadFields() no longer special-cases the "Other" radio to persist the numeric value from the .other text input, and writeFields() no longer clicks the "Other" radio before filling the text input. The donationAmt block in writeFields() is back to its pre-feat: add new functionallity for remember me #412 behavior.
  • reapplyDonationAmtAfterSwap() and getCurrentSelectedAmount() — both methods and their three call sites in the constructor branches were removed. RememberMe no longer re-applies the donation amount after SwapAmounts replaces the DOM.

Reapplies PR #429 over the updated main (which had merge conflicts).

Removes:
- DonationFrequency import/usage and _frequency instance
- fieldDonationRecurrFreqRadioName option and its writeFields() radio-group handling
- Custom Other amount save/restore fixes in readFields()/writeFields()
- reapplyDonationAmtAfterSwap() and getCurrentSelectedAmount()

Retains AES-GCM encryptData, hide, fieldClearLabel, and the main's i18n
(rememberMeLabel / ENGrid.t) additions.
@fernanDOTdo
fernanDOTdo merged commit fc8fad7 into main Sep 1, 2026
2 checks passed
@fernanDOTdo
fernanDOTdo deleted the revert-remember-me-donation-amt branch September 1, 2026 03:12
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.

2 participants