Refactor IOURequestStepMerchant to handle empty merchant input and cl…#91307
Refactor IOURequestStepMerchant to handle empty merchant input and cl…#91307ChavdaSachin wants to merge 7 commits into
Conversation
…ear merchant state. Updated logic to validate merchant input and added a call to clearMoneyRequestMerchant when the new merchant is empty.
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.
|
…fectively. Added logic to set saved state and clear merchant data when the new merchant is empty and invalid.
… transaction state, ensuring it only shows when the merchant is set.
|
@ShridharGoel 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] |
|
@ChavdaSachin you've picked up a conflict. 👍 |
trjExpensify
left a comment
There was a problem hiding this comment.
Can you add tests? Also, the video is showing something being populated in the preview that wasn't set? 🤔
Tests added with wider coverage, also added some automated tests. |
|
@ShridharGoel all yours. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-05-22.at.10.23.28.PM.movScreen.Recording.2026-05-22.at.10.24.01.PM.mov |
Explanation of Change
Fixed Issues
$ #90577
PROPOSAL:
Tests
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 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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-05-22.at.4.34.08.PM.mov