fix: remove onyx connect ONYXKEYS.NVP_PRIVATE_OWNER_BILLING_GRACE_PERIOD_END (part 2)#83736
Conversation
|
@shubham1206agra 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❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
No product review needed |
|
@truph01 Fix conflicts please |
|
@shubham1206agra I merged main and fixed conflicts |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-03-04.at.11.06.47.PM.mov |
|
@tgolen Can you review this PR? |
tgolen
left a comment
There was a problem hiding this comment.
I assume shouldRestrictUserBillableActions() has already been covered in unit tests for the new parameter?
|
There are a lot of Eslint errors that aren't related to this PR. |
|
The ESLint failures are unrelated and will be fixed in other PRs. OK to merge |
|
@tgolen looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @tgolen has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/tgolen in version: 9.3.32-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.3.32-3 🚀
|
Explanation of Change
This PR is part of an effort to remove
Onyx.connect()usage for the keyONYXKEYS.NVP_PRIVATE_OWNER_BILLING_GRACE_PERIOD_ENDinsrc/libs/SubscriptionUtils.ts.Since this refactor affects multiple areas, it is split into a few small PRs. This PR is the second step and focuses on the following refactor:
getOverdueGracePeriodDategetSubscriptionStatus -> getBillingStatushasSubscriptionRedDotError -> useNavigationTabBarIndicatorCheckshasSubscriptionGreenDotInfo -> useNavigationTabBarIndicatorChecksshouldRestrictUserBillableActions -> getAddExpenseDropdownOptionsFixed Issues
$ #66449
PROPOSAL:
Tests
Test 1
Test 2
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 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
Screen.Recording.2026-02-14.at.09.05.05.mov
Android: mWeb Chrome
Screen.Recording.2026-02-14.at.09.02.15.mov
iOS: Native
Screen.Recording.2026-02-14.at.09.03.05.mov
iOS: mWeb Safari
Screen.Recording.2026-02-14.at.09.04.17.mov
MacOS: Chrome / Safari
Screen.Recording.2026-02-14.at.09.01.08.mov
Screen.Recording.2026-02-14.at.09.11.03.mov
Screen.Recording.2026-02-14.at.09.11.21.mov