Remove Onyx.connect() for the key: ONYXKEYS.SESSION in src/libs/SubscriptionUtils Part 2#87596
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@MelvinBot Fix prettier please |
|
The Prettier check is failing on
|
|
@MelvinBot Assign this PR to you too. |
|
I've added myself as an assignee on this PR. 👍 |
|
@MelvinBot Fix the prettier |
Co-authored-by: Hans <hungvu193@users.noreply.github.com>
|
Fixed the prettier check: ran prettier on |
|
@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] |
|
@hungvu193 Merge main please |
Done |
|
No product review needed |
Co-authored-by: Shubham Agrawal <58412969+shubham1206agra@users.noreply.github.com>
|
@MelvinBot merge main |
Co-authored-by: Hans <hungvu193@users.noreply.github.com>
|
Done! I've merged |
|
⏱️ Ran out of time before I could finish. This usually means the task was too complex or I got stuck exploring. Please try again with a more specific request or post in #melvinbot-ai. |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-04-15.at.4.48.12.PM.mov |
dangrous
left a comment
There was a problem hiding this comment.
Logic change looks fine, one test comment.
| const result = getFreeTrialText(accountID, translate, ownedPaidPolicies, introSelected, firstDayFreeTrial, lastDayFreeTrial); | ||
|
|
||
| expect(translate).toHaveBeenCalledWith('subscription.billingBanner.trialStarted.title', expect.any(Number)); | ||
| expect(result).toMatch(/^trialStarted:\d+$/); |
There was a problem hiding this comment.
Should we check for the exactly correct date? Probably good to double check, if this function wasn't being tested at all before...
There was a problem hiding this comment.
Sure. I'll update it accordingly
…nto fix-664420-part2
|
🚧 @dangrous 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/dangrous in version: 9.3.61-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This is a purely internal code refactoring that makes |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.3.61-4 🚀
|
Explanation of Change
Part 2: Remove usages of
Onyx.connectforONYXKEYS.SESSIONby making the functions "pure":Fixed Issues
$ #66442
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Add payment card to keep using Expensifyunder Time sensitive section.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
Screen.Recording.2026-04-12.at.23.23.32.mov
Screen.Recording.2026-04-10.at.14.34.56.mov
Screen.Recording.2026-04-10.at.14.36.11.mov