feat(billing): add membership renewal extension flow#3555
Conversation
Test Results 1 files ±0 1 suites ±0 6m 47s ⏱️ -6s For more details on these errors, see this check. Results for commit 0c1ef76. ± Comparison against base commit 8d5325a. ♻️ This comment has been updated with latest results. |
❌ 5 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
a949f98 to
a70b876
Compare
Bundle ReportChanges will decrease total bundle size by 229.63kB (-0.59%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: client-array-pushAssets Changed:
Files in
|
a70b876 to
b55c244
Compare
a8696f0 to
0c104c9
Compare
0c104c9 to
1e27abb
Compare
1e27abb to
7473fc7
Compare
7473fc7 to
ba01b36
Compare
2020a6e to
ac9817f
Compare
ac9817f to
e07ced6
Compare
e07ced6 to
1576702
Compare
|
|
||
| Args: { | ||
| onExtendMembershipButtonClick: () => void; | ||
| subscription: SubscriptionModel; |
There was a problem hiding this comment.
Unused subscription argument indicates incomplete conditional logic
Medium Severity
The subscription argument is declared as required in the component signature and is passed from billing.hbs, but it's never used in the RenewalSection component. The PR description mentions implementing a canBeExtended getter and conditionally enabling the button with a tooltip showing the earliest extension date, but none of this logic exists. The "Extend membership" button is always enabled regardless of subscription state, which may allow users to attempt extensions outside the intended 45-day window mentioned in the PR description.
Additional Locations (1)
1576702 to
4bd3ddf
Compare
4bd3ddf to
5ac4455
Compare
0845c82 to
3e6eed9
Compare
Add ability to extend active subscriptions within 45 days of expiry by introducing `canBeExtended` getter on Subscription model. Update renewal section to reflect membership renewal status and conditionally enable the extend membership button with tooltip showing the earliest extension date. Pass active subscription to renewal section and handle button click action.
Co-authored-by: rohitpaulk <rohitpaulk@gmail.com>
71f76ed to
0c1ef76
Compare
Add ability to extend active subscriptions within 45 days of expiry by
introducing
canBeExtendedgetter on Subscription model. Update renewalsection to reflect membership renewal status and conditionally enable the
extend membership button with tooltip showing the earliest extension date.
Pass active subscription to renewal section and handle button click action.
Note
Introduces an extend-membership flow on the Billing page and related UX tweaks.
RenewalSectionUI with explanatory text and an "Extend membership" button that opensChooseMembershipPlanModal/settings/billingcancel,/settings/billing?action=membership_extendedsuccess) and loadsregionalDiscount?action=membership_extendedand clears the query paramsubscription.isLifetimeMembershipand hides renewal section when no active subscription or lifetime membershipsettings/billing) to manage modal state, query param, success notice, and discount loadingWritten by Cursor Bugbot for commit 0c1ef76. This will update automatically on new commits. Configure here.