-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: moving expense to selfDM message not correct #56202
fix: moving expense to selfDM message not correct #56202
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✔️
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! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop