[Part 2] Remove Onyx.connect() for the key: ONYXKEYS.NVP_QUICK_ACTION_GLOBAL_CREATE in src/libs/actions/IOU.ts #76743
Conversation
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.
|
|
@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] |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2025-12-08.at.18.40.04.mov |
|
🟢 NAB: Test Coverage - Consider Adding Specific Tests for QuickAction Behavior Location: Current tests only pass Suggested Additional Test: it('correctly uses quickAction parameter to determine isFirstQuickAction', async () => {
// Test with empty quickAction
const splitsWithEmpty = createSplitsAndOnyxData({
// ... params
quickAction: {},
});
// Verify isFirstQuickAction is true
const optimisticUpdate = splitsWithEmpty.onyxData.optimisticData?.find(
update => update.key === ONYXKEYS.NVP_QUICK_ACTION_GLOBAL_CREATE
);
expect(optimisticUpdate?.value?.isFirstQuickAction).toBe(true);
// Test with existing quickAction
const splitsWithExisting = createSplitsAndOnyxData({
// ... params
quickAction: { action: 'SPLIT_MANUAL', chatReportID: '123' },
});
// Verify isFirstQuickAction is false
// ...
}); |
|
✅ Reviewer checklist completed. 🔄 Awaiting on comments to be addressed before approving. |
|
Done. |
ikevin127
left a comment
There was a problem hiding this comment.
Thanks for the updates! LGTM
|
✋ 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.75-0 🚀
|
|
🚀 Deployed to staging by https://github.com/danieldoglas in version: 9.2.75-0 🚀
|
It was added in PR Expensify#76743
|
🚀 Deployed to staging by https://github.com/danieldoglas in version: 9.2.77-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.2.77-1 🚀
|
Explanation of Change
Fixed Issues
$ #66521
PROPOSAL:
Tests
Prerequisites
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