fix: remove onyx connect ONYXKEYS.NVP_PRIVATE_OWNER_BILLING_GRACE_PERIOD_END (part 6)#84916
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
heyjennahay
left a comment
There was a problem hiding this comment.
Product review not required
|
@shubham1206agra I fixed conflicts |
|
@truph01 Again conflicts |
|
@shubham1206agra I fixed conflicts |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-03-20.at.6.13.37.PM.mov |
|
@tgolen Please review this PR |
| const personalPolicy = usePersonalPolicy(); | ||
| const defaultExpensePolicy = useDefaultExpensePolicy(); | ||
| const [amountOwed] = useOnyx(ONYXKEYS.NVP_PRIVATE_AMOUNT_OWED); | ||
| const [ownerBillingGraceEndPeriod] = useOnyx(ONYXKEYS.NVP_PRIVATE_OWNER_BILLING_GRACE_PERIOD_END); |
There was a problem hiding this comment.
Please rename all of these to ownerBillingGracePeriodEnd
|
🚧 @tgolen has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.3.43-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 6th step and focuses on the following refactor:
Fixed Issues
$ #66449
PROPOSAL:
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 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
Screen.Recording.2026-03-12.at.09.51.22.mov