-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix: show RBR on Subscription row with exprired free trial #52742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@hungvu193 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] |
This comment was marked as resolved.
This comment was marked as resolved.
| // 2. Policy owner with amount owed, overdue (past grace period) | ||
| if (hasGracePeriodOverdue()) { | ||
| return { | ||
| isError: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also check if there's another status that isError should be true as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take a look. Will update back soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Little bump
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking of syncing isError value between getBillingStatus and getSubscriptionStatus for consistency, but we should confirm if this should be expected with Internal before making changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, they should be the same.
We also have this function:
function hasSubscriptionGreenDotInfo(): boolean {
return getSubscriptionStatus()?.isError === false;
}So I think we just need to make sure, if isError isn't equal true, leave it undefined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
little bump, let's update it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Please update the tests as well
| // 2. Policy owner with amount owed, overdue (past grace period) | ||
| if (hasGracePeriodOverdue()) { | ||
| return { | ||
| isError: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Please update the tests as well
|
@hungvu193 I updated the tests. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid.sub.movAndroid: mWeb ChromemChrome.Sub.moviOS: NativeIOSSub.moviOS: mWeb SafarimSafarisub.movMacOS: Chrome / SafariChrome.sub.movMacOS: DesktopDeskSub.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.0.68-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.68-7 🚀
|
Explanation of Change
Fixed Issues
$ #52598
PROPOSAL: #52598 (comment)
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
Screen.Recording.2024-11-19.at.16.12.22.mov
Android: mWeb Chrome
Screen.Recording.2024-11-19.at.17.22.15.mov
iOS: Native
Screen.Recording.2024-11-19.at.17.22.58.mov
iOS: mWeb Safari
Screen.Recording.2024-11-19.at.17.23.18.mov
MacOS: Chrome / Safari
Screen.Recording.2024-11-19.at.14.45.59.mov
MacOS: Desktop
Screen.Recording.2024-11-19.at.17.35.43.mov