Refactor src/libs/NextStepUtils.ts to remove Onyx.connect() references - P1#68627
Conversation
|
@allgandalf 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] |
|
@danieldoglas @allgandalf Just a quick note — all Onyx.connect calls in the NextStepUtils file are used inside the buildNextStep function. To make the refactor smoother, I’ll create a new function with additional parameters and update all usages to rely on this new function instead. With this approach, we won’t migrate each key individually. Instead, we’ll gradually replace buildNextStep with the new function, and in the final PR, I’ll remove the old buildNextStep (including all Onyx.connect calls). I believe this will make testing easier since we can update and verify each usage incrementally across PRs. |
There was a problem hiding this comment.
This PR has many additional lines. But most of the changes come from this new function, which is based on buildNextStep but includes some additional parameters.
|
It looks like the Performance Tests failed due to an issue from the main branch. |
|
@DylanDylann please open separate PR for each reference |
|
@allgandalf Please check this comment: #68627 (comment) |
This makes sense to me. |
|
@allgandalf kindly bump |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
@DylanDylann can you please update one platform video, thanks |
|
Note that: the failed GH actions happens on main branch |
@allgandalf Updated |
|
Refactor PR, doesn’t have any new product considerations. Removing the tag and unsubscribing myself. |
|
@DylanDylann lets merge main please, tests should be fixed now |
57445c5 to
ae54675
Compare
|
@allgandalf Done. I made a mistake so I need to force push. Sorry for the confusion |
allgandalf
left a comment
There was a problem hiding this comment.
LGTM, just one small comment
|
@allgandalf replied |
|
@allgandalf Done |
|
@DylanDylann there is a crash when i try updating the category after adding unreported expenses: Your branch: Screen.Recording.2025-09-03.at.11.55.02.PM.movI don't see this on latest main, can you please check: Main: Screen.Recording.2025-09-03.at.11.57.49.PM.mov |
|
@allgandalf The issue was caused by the outdated main branch. Merging the latest main branch resolved it. |
|
Reassure Performance Tests failed by main |
|
@DylanDylann lets merge main |
|
✋ 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/danieldoglas in version: 9.2.3-0 🚀
|
|
🚀 Deployed to staging by https://github.com/danieldoglas in version: 9.2.5-0 🚀
|
|
🚀 Deployed to staging by https://github.com/danieldoglas in version: 9.2.8-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.2.8-4 🚀
|
Explanation of Change
Fixed Issues
$ #66365
$ #66366
$ #66367
$ #66368
PROPOSAL:
Tests
Precondition: There are some unreported expenses
Offline tests
QA Steps
Precondition: There are some unreported expenses
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))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
Screen.Recording.2025-09-01.at.16.55.32.mov
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop