Remove openReport calls from the merge transaction flows - Part 1#73439
Remove openReport calls from the merge transaction flows - Part 1#73439youssef-lr merged 12 commits intoExpensify:mainfrom
Conversation
30a9f77 to
852a70b
Compare
Codecov Report❌ Patch coverage is
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
- Extract currency handling logic from DetailsReviewPage into centralized function - Add MergeTransactionUpdateValues type for better type safety with null values - Update setMergeTransactionKey to handle null values for Onyx key clearing - Add comprehensive tests for merge field update scenarios - Improve code organization by centralizing field update logic
- Add reportName handling to merge transaction flow - Update MoneyRequestView to support merged report names - Enhance MergeTransactionUtils with reportName merge logic - Add comprehensive tests for getMergeFieldUpdatedValues function - Improve confirmation page display for merged transactions
|
@dominictb 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] |
|
@hoangzinh I wonder how does this affect the required dependency of |
|
The |
|
Ah I see. So this doesn't conflict with what I'm trying to do which is removing openReport from here |
|
Yes, @youssef-lr |
|
What's the ETA on reviewing this PR? Can we keep it moving? |
|
Still testing, will complete tomorrow morning. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeScreen.Recording.2025-10-31.at.21.46.10.moviOS: HybridAppiOS: mWeb SafariScreen.Recording.2025-10-31.at.05.47.01.movMacOS: Chrome / SafariScreen.Recording.2025-10-31.at.05.42.36.movMacOS: Desktop |
|
Infinite loading in confirmation step in offline and target transaction is the unreported transaction Screen.Recording.2025-10-31.at.05.49.53.movNot sure if it's related to this PR |
Co-authored-by: Dominic <165644294+dominictb@users.noreply.github.com>
|
@dominictb this bug was fixed somewhere in main. Can you test again? TY |
|
✋ 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/youssef-lr in version: 9.2.43-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.2.43-2 🚀
|
Explanation of Change
During Merge Transaction PRs, we need to workaround by triggering openReport API calls to get report data for displaying purposes. We need to remove those workarounds to avoid increasing traffic to BE. This PR is the first part to remove
openReportcall inMergeTransactionsListContentby usingreportNameinGetTransactionsForMergingAPI.Fixed Issues
$ #69564
PROPOSAL:
Tests
Same as QA
Offline tests
Same as QA
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Prerequisite:
Case 1: Merge an expense with an unreported expense in selfDM
Case 2: Merge two 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))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
Screen.Recording.2025-10-27.at.16.04.13.android.mov
Android: mWeb Chrome
Screen.Recording.2025-10-27.at.16.00.44.android.chrome.mov
iOS: Native
Screen.Recording.2025-10-27.at.16.13.10.mov
iOS: mWeb Safari
Screen.Recording.2025-10-27.at.16.07.04.ios.safari.mov
MacOS: Chrome / Safari
Screen.Recording.2025-10-27.at.15.53.57.web.mov
MacOS: Desktop
Screen.Recording.2025-10-27.at.15.58.34.desktop.mov