[HOLD BE] Update system messages for expenses moved to different reports#80444
[HOLD BE] Update system messages for expenses moved to different reports#80444twilight2294 wants to merge 14 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.
There was a problem hiding this comment.
can you please rephrase what you're trying to say? do you have a question for me?
There was a problem hiding this comment.
Don't remember why I said that. Let me test that again.
There was a problem hiding this comment.
Thanks for waiting. Checking this now.
There was a problem hiding this comment.
THis is the one I was talking about #80444 (comment)
JmillsExpensify
left a comment
There was a problem hiding this comment.
Product approved. Great QA steps, super helpful!
Screenshots🔲 iOS / native🔲 iOS / Safari🔲 MacOS / Chrome🔲 Android / Chrome🔲 Android / native |
|
BUG: Move a unreported expense to a report via report field, move message does not appear. Steps;
|
| // Skip creating system messages when moving to a Draft report | ||
| // New expense reports created for rejected expenses are always Draft reports (open status) |
|
BUG: when we move expense via move report using create report option on move page, the move message is still shown. Note: it seems create report option on move page is not working correctly on staging. It is creating in default workspace while it should in the one that is showin on create report button. That is a different issue. reported internally. 08.03.2026_15.32.30_REC.mp4 |
|
BUG: Similiar to above, when I move expense via Steps:
|
|
BUG: same as above but use the report field on the expense to move to different report. |
|
@twilight2294 Some bugs. |
|
Looking at the bugs |
|
Ping me when this PR is ready @twilight2294 |
Almost ready, just need to test all the bugs you posted, will do it today |
|
I have to do a final test then will ask for review |
|
Can you speed up @twilight2294? |
This bugs seems to be unrelated to our changes, i can reproduce the same on staging. Can you file a bug report for this, thanks ! Screen.Recording.2026-03-18.at.2.06.56.PM.mov |
This seems BE issue, Optimistically it works correctly : Screen.Recording.2026-03-18.at.2.11.12.PM.movCan you confirm please |
same as ^ |
Same BE issue i think : Screen.Recording.2026-03-18.at.2.14.05.PM.mov |
|
@parasharrajat how should we proceed, since optimistically, we're good, the BE needs to be fixed |
|
If you need backend changes, ask it on issue and tag the engineer. |
|
Here it is: #70485 (comment) |
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