feat: Make Cancel Subscription Option More Visible and Accessible#84510
feat: Make Cancel Subscription Option More Visible and Accessible#84510TaduJR wants to merge 9 commits intoExpensify:mainfrom
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
|
@sobitneupane Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
trjExpensify
left a comment
There was a problem hiding this comment.
Commented on the parent issue for input from Jason and Ted on what changes they were asking for here: #78006 (comment)
…ancel-Subscription-Option-More-Visible-and-Accessible
…ancel-Subscription-Option-More-Visible-and-Accessible # Conflicts: # src/pages/settings/Subscription/CardSection/CardSection.tsx
…ancel-Subscription-Option-More-Visible-and-Accessible
|
Bumping @sobitneupane Incase, went off from list. |
…ancel-Subscription-Option-More-Visible-and-Accessible
…ncel subscription flow
Explanation of Change
hasPurchasesgate that hid it from many usersCalendarSolidtoCircleSlashto match the approved designRequestEarlyCancellationMenuItemtoCancelSubscriptionMenuItemcanCancelSubscription()shared utility to gate eligibility (excludes trial, pre-trial, and expired-trial-without-payment users)FullPageNotFoundViewroute guard andFullscreenLoadingIndicatoron the cancellation survey pageoptimisticData/successData/failureDatatocancelBillingSubscriptionto fix infinite spinner on API failurependingFields.type)Fixed Issues
$ #78006
PROPOSAL: #78006 (comment)
Tests
Prerequisites: Log in with an account that has an annual subscription with a payment card (subscription type
yearly2018).Offline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Mac-Chrome.mp4