[Hold on #723] Fix/reports old amount and pay button after move#77330
[Hold on #723] Fix/reports old amount and pay button after move#77330nabi-ebrahimi wants to merge 17 commits intoExpensify:mainfrom
Conversation
|
@sobitneupane 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.
|
|
@nabi-ebrahimi The report with pending total is not being grayed-out as expected. Screen.Recording.2025-12-16.at.17.00.52.mov |
|
@sobitneupane Thanks for the review. can you please take a look at the following questions when you get a chance.
|
Not the individual expense. However, if there is a total, we should gray out the total when its value is outdated.
Yes. We should gray out the report row from which the expense was moved, as well as the destination report row, if any value is outdated and waiting for a backend update (e.g., currency conversion). |
|
@sobitneupane, thanks for your patience i have covered all cases, the PR is ready for your review. |
|
@sobitneupane, kindly bump. |
|
@sobitneupane, quick bump, please check the pr again when you get a chance. thanks |
|
@sobitneupane, could you please review this again. thanks |
|
@sobitneupane, kindly bump. thanks |
|
I was OOO. I’m back now and will try to review the PR by tomorrow. |
|
|
||
| return Object.keys(allSnapshots || {}) as OnyxSnapshotKey[]; | ||
| } | ||
|
|
There was a problem hiding this comment.
Why do we need the snapshot keys? How will it impact performance?
There was a problem hiding this comment.
@sobitneupane Thanks for the review. We need to update transactions and reports within the searched data, which requires retrieving all current snapshot keys and iterating over them to update the relevant transaction or report across all search result snapshots. I don’t believe this will have a significant performance impact, since we already perform optimistic updates throughout the app.
There was a problem hiding this comment.
@sobitneupane, I think we should wait for this pr to get merged. then we don't need this function anymore. thanks.
There was a problem hiding this comment.
Sure. Could you please add Hold on the title with the PR number?
There was a problem hiding this comment.
Screenshots/Videos
Android: HybridApp
Screen.Recording.2026-01-26.at.17.40.52.mov
Android: mWeb Chrome
Screen.Recording.2026-01-26.at.17.50.41.mov
Screen.Recording.2026-01-26.at.17.52.05.mov
iOS: HybridApp
iOS: mWeb Safari
Screen.Recording.2026-01-26.at.18.03.17.mov
MacOS: Chrome / Safari
Screen.Recording.2026-01-26.at.17.09.54.mov
Screen.Recording.2026-01-26.at.17.11.35.mov
Screen.Recording.2026-01-26.at.17.15.52.mov
Screen.Recording.2026-01-26.at.17.18.11.mov
|
@nabi-ebrahimi Could you please resolve the merge conflicts? |


Explanation of Change
This PR fixes the issue where the previous report continued to display the old total and a
Paybutton even after all expenses were moved to a new report. The expected behavior is that once the expenses are moved, the previous report should show a total of0.00and display aViewbutton instead.These conditions should be respected when performing the move:
Fixed Issues
$ #75091
PROPOSAL: #75091 (Comment)
Tests
Offline tests
Same as Tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
Android: Native
Screen.Recording.1404-09-20.at.12.08.19.PM.mov
Android: mWeb Chrome
Screen.Recording.1404-09-20.at.12.13.09.PM.mov
iOS: Native
Screen.Recording.1404-09-20.at.12.16.51.PM.mov
iOS: mWeb Safari
Screen.Recording.1404-09-20.at.12.21.00.PM.mov
MacOS: Chrome / Safari
Screen.Recording.1404-09-20.at.11.55.47.AM.mov