fix: moving expense to selfDM message not correct#56202
fix: moving expense to selfDM message not correct#56202MarioExpensify merged 11 commits intoExpensify:mainfrom
Conversation
|
@paultsimura 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] |
|
The unit tests failed in Job 3, but the failure is unrelated to this change. I'm not sure why this happened |
|
@MarioExpensify @neil-marcellini when moving an expense to self-DM via OD, do we want to display the default "changed the expense" message, or should we add a new copy: |
paultsimura
left a comment
There was a problem hiding this comment.
Thanks for adding the tests. Could you please also add 2 tests for the following cases?
- when both reportName and policyName are present
- when only reportName is present
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb Safari |
|
Updated |
paultsimura
left a comment
There was a problem hiding this comment.
I'll wait with the approval to hear about the expected message.
|
Thank you! I'll wait for confirmation |
|
@paultsimura I believe CC: @garrettmknight |
|
@MarioExpensify FYI: I would like to confirm the translated text for Spanish as well |
|
@linhvovan29546 do you mind posting it in #expensify-open-source slack channel? Here's an example of a translation check request. |
|
I don't have access to slack channel. |
|
Whoops! Sorry about that. I'll send it and circle back here. |
|
@linhvovan29546 I just took a look at the ES version for movedFromSelfDM and looks like the version you sent is good! You can move forward with |
|
@paultsimura I've updated it. Waiting for the next step from you |
paultsimura
left a comment
There was a problem hiding this comment.
Looks mostly good to me. Now that we've added a new message, let's change the comment to be more suitable for the scenarios.
|
Updated |
|
Updated |
|
Regarding the failing test (job 3) we're seeing, there is already a discussion and a PR on its way to fix it. I think we're better off waiting for the fix to be merged and then merging further PRs. @linhvovan29546 When this PR hits main, please merge main to your branch and we should be good to go! |
|
Thank you for letting me know |
|
The test is successful after merging the main branch, and the code works well. |
|
Awesome, reviewing it! |
MarioExpensify
left a comment
There was a problem hiding this comment.
LGTM! Appreciate all the unit tests, thank you!
|
✋ 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/MarioExpensify in version: 9.0.94-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.0.94-25 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.0.94-25 🚀
|


Explanation of Change
The "Move report" flow only supports moving expenses from selfDM to:
However, in the olddot, expenses could be moved back to a self-DM. To maintain consistency and handle this case, we provide a correct message.
Fixed Issues
$ #55864
PROPOSAL: #55864 (comment)
Tests
Offline tests
Same above
QA Steps
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))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
MacOS: Desktop