[Part 2] Remove Onyx.connect() for the key: ONYXKEYS.COLLECTION.NEXT_STEP in src/libs/actions/IOU.ts#78925
Conversation
|
@ikevin127 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.
|
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-01-06.at.15.18.25.mov |
|
@parasharrajat 🟢 Only found 2 non-blocking issues related to naming / docs - to be addressed optionally (if see fit): 1. Inconsistent Naming Convention (Code Quality) - Optional Files: Multiple The naming varies between:
Recommendation: Use consistent naming across all files. Suggested pattern:
2. Missing JSDoc Update (Documentation) - Optional The function /**
* @param iouReportCurrentNextStepDeprecated - The current next step for the IOU report,
* passed to avoid direct Onyx reads in action functions
*/ |
ikevin127
left a comment
There was a problem hiding this comment.
Only two non-blocking mentions ☝️ related to naming / jsdoc - otherwise LGTM 🟢
That was an intentional change, as these next steps are linked to a specific report, which is also passed as a parameter. To emphasize whose report's next step needs to be passed here, I appended the param's name to the next step param. This makes it easy for devs to know what next step needs to be passed here just by looking at the param name.
There is no existing JSDoc comment there. Looks like your AI needs an instruction 😄 |
|
✋ 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.96-1 🚀
|
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.96-6 🚀
|
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.96-6 🚀
|
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.96-6 🚀
|
Explanation of Change
Fixed Issues
$ #66514
PROPOSAL:
Tests
Note: We are doing a generic refactor in this PR so generally the behaviour of mentioned actioned should be same as before this PR.
Offline tests
same as tests.
QA Steps
same as tests.
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