Feat: Add 'Move to report' in the 'More' menu of a one-expense report#85038
Feat: Add 'Move to report' in the 'More' menu of a one-expense report#85038aldo-expensify merged 14 commits intoExpensify:mainfrom
Conversation
…ove to report' is shown
…in another workspace
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
Oh |
|
Yeah, I've also re-tested this on all platforms |
|
@ZhenjaHorbach 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 01c49c0de2
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
src/components/MoneyReportHeader.tsx
Outdated
| if (!transactionToMove?.transactionID) { | ||
| return; | ||
| } | ||
| const iouType = isExpenseReport(moneyRequestReport) ? CONST.IOU.TYPE.SUBMIT : CONST.IOU.TYPE.REQUEST; |
There was a problem hiding this comment.
Use a supported IOU type for move-to-report navigation
This handler passes CONST.IOU.TYPE.REQUEST for non-expense reports, but the edit-report screen rejects request routes (src/pages/iou/request/step/withWritableReportOrNotFound.tsx filters out REQUEST iouType), so “Move to report” can send users to Not Found instead of the report picker when invoked from non-expense one-transaction reports (for example invoice reports where this action is still allowed by canEditFieldOfMoneyRequest).
Useful? React with 👍 / 👎.
JmillsExpensify
left a comment
There was a problem hiding this comment.
The wording is a little odd for this case, though discussed in Slack and we decided to move forward with this, so approving.
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2026-03-10.12.45.13.movAndroid: mWeb Chrome2026-03-10.12.42.52.moviOS: HybridApp2026-03-10.12.45.13.mov2026-03-16.16.17.47.mov2026-03-16.16.19.06.mov2026-03-16.16.20.47.mov2026-03-16.16.26.35.moviOS: mWeb Safari2026-03-10.12.42.52.mov2026-03-16.16.17.47.mov2026-03-16.16.19.06.mov2026-03-16.16.20.47.mov2026-03-16.16.26.35.movMacOS: Chrome / Safari2026-03-10.12.37.51.mov2026-03-16.15.52.55.mov2026-03-16.15.54.35.mov2026-03-16.15.58.15.mov2026-03-16.16.02.40.mov |
|
LGTM! |
|
Jest issues are not related to this PR |
|
🚧 @aldo-expensify has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/aldo-expensify in version: 9.3.39-0 🚀
|
|
Deploy Blocker #85537 was identified to be related to this PR. |
|
✋ 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 production by https://github.com/cristipaval in version: 9.3.39-3 🚀
|
Explanation of Change
Add "Move to report" in the secondary actions when there's exactly one transaction that can be moved
Fixed Issues
$ #83884
$ #84974
$ #84976
$ #85012
$ #85014
PROPOSAL: #83884 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
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))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-Native.mp4
Android: mWeb Chrome
Android-mWeb.Chrome.mp4
iOS: Native
iOS-Native.mp4
iOS: mWeb Safari
iOS-mWeb.Safari.mp4
MacOS: Chrome / Safari
MacOS-Chrome.mp4