From ad63a37a053bbb8ae49cdb48ec8df34db0985ad6 Mon Sep 17 00:00:00 2001 From: Jennie Robinson Faber Date: Sat, 23 May 2026 15:58:53 +0100 Subject: [PATCH] feat(contribution): port account.vue to ContributionAmountField MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the inline contribution UI (label, input row, presets, guidance) with the shared ContributionAmountField component, locking cadence and suppressing its built-in summary (account.vue has its own change hint). Fix three computeds that double-applied the cadence conversion now that Member.contributionAmount is stored in cadence-unit (post-Task 7): contributionChangeHint, currentContributionLabel, and nextChargeAmount no longer multiply annual amounts by 12. Convert form.contributionAmount to a monthly-equivalent before the payment-setup redirect — that page is monthly-only and would otherwise attempt an annual-sized monthly charge for annual members. Drop the now-unused guidanceLabel computed, the CONTRIBUTION_PRESETS and getGuidanceLabel imports, and the dead contribution-* CSS rules. --- app/pages/member/account.vue | 101 +++++++---------------------------- 1 file changed, 18 insertions(+), 83 deletions(-) diff --git a/app/pages/member/account.vue b/app/pages/member/account.vue index 89c6729..370f622 100644 --- a/app/pages/member/account.vue +++ b/app/pages/member/account.vue @@ -245,35 +245,13 @@ -
- -
- $ - -
-
- -
-

{{ guidanceLabel }}

-
+ +
{{ contributionChangeHint }}
@@ -314,7 +292,7 @@