Update system messages for expenses moved to different reports#80444
Update system messages for expenses moved to different reports#80444twilight2294 wants to merge 4 commits intoExpensify:mainfrom
Conversation
|
@parasharrajat 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] |
|
@parasharrajat please begin your review, i'm having issue with emulator, i'll fix that and update the recordings and will ping you |
|
bump for review @parasharrajat |
|
Thanks for the bump... I will get on it soon. |
|
You can start adding vids for platforms... |
|
bump for review @parasharrajat , it would be better if the review can come in today / tomorrow so i can address the comments, thanks 😄 |
|
I'm still working on videos, i should have them by tomorrow morning, i updated the Web video now. sorry for the delay on those ones i am having a lot of build errors |
| const buildMovedAction = () => { | ||
| if (isSourceReportDraft) { | ||
| return undefined; | ||
| } | ||
| if (reportID === CONST.REPORT.UNREPORTED_REPORT_ID) { | ||
| return buildOptimisticUnreportedTransactionAction(transactionThreadReportID, oldReportID); | ||
| } | ||
| return buildOptimisticMovedTransactionAction(transactionThreadReportID, oldReportID); | ||
| }; |
There was a problem hiding this comment.
This will also not create message for unreported expenses.
Explanation of Change
Fixed Issues
$ #70485
PROPOSAL: #70485 (comment)
Tests
same as QA
Offline tests
Same as QA
QA Steps
Test Case 1: No system message when moving expenses FROM a Draft report
Verify that There should be NO "Expense moved from [report]" system message in the expense thread
Test Case 2: System message SHOULD appear when moving expenses FROM a non-Draft report
Verify that A system message SHOULD appear indicating the expense was moved from the previous report
Test Case 3: No system message when rejecting an expense
Verify That There should be a "Rejected this expense" system message with the rejection reason
Verify that There should be NO additional "Expense moved to [new report]" system message
Test Case 4: No system message when held expense is moved while others are approved
Verify that There should be NO "Expense moved" system message for the held expense
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-02-05.at.6.14.25.PM.mov