Part 10: Remove usages of Onyx.connect for ONYXKEYS.SESSION in src/libs/SubscriptionUtils#92517
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✅ Changes either increased or maintained existing code coverage, great job!
|
|
PR doesn’t need product input as a refactor PR. Unassigning and unsubscribing myself. |
|
@shubham1206agra, Addressed, could you please take another look. thanks |
|
@shubham1206agra, Addressed, thanks! |
|
@shubham1206agra, Cloud you check it once again, thanks. |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-06-10.at.11.34.09.PM.mov |
|
Conflicts. |
|
@tylerkaraszewski, Resolved conflict. The ESLint failure appears to be unrelated to this PR. Thanks. |
|
🚧 @tylerkaraszewski 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 staging by https://github.com/tylerkaraszewski in version: 9.4.8-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 No help site changes required. This PR is an internal code refactor — Part 10 of removing The changes are limited to:
There are no user-facing behavior changes, UI changes, new features, or flow changes — the restricted-action billing flow behaves exactly as before. Nothing in @marufsharifi, since no documentation changes are required, no help site PR was created. Let me know if you'd like me to revisit any specific article. |
|
🚀 Deployed to staging by https://github.com/tylerkaraszewski in version: 9.4.8-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.4.8-3 🚀
|
Explanation of Change
Part 10: Remove usages of
Onyx.connectforONYXKEYS.SESSIONby making the function more pure:shouldRestrictUserBillableActionsFixed Issues
$ #66442
PROPOSAL: N/A
Tests
Spend > Expenses.Move to report>Create report/Change report.Flow-2
Spend > Expenses.Move to report>Create report/Change report.Offline tests
Same as Tests.
QA Steps
Same as Tests.
// 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))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
MacOS: Chrome / Safari
Flow 1:
Screen.Recording.2026-06-04.at.2.07.58.PM.mov
Flow 2:
Screen.Recording.2026-06-04.at.2.09.20.PM.mov