Implement core "Duplicate report" action logic.#83896
Implement core "Duplicate report" action logic.#83896Valforte merged 37 commits intoExpensify:mainfrom
Conversation
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 48f6c1199a
ℹ️ 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".
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
- Pass reportName to CREATE_APP_REPORT instead of separate SET_REPORT_NAME call - Route distance/per-diem transactions through specialized creation flows - Exclude pending-deletion expenses from duplication - Add translations for report copy name (en, es) - Add tests for duplicateReport covering filtering and transaction type routing Made-with: Cursor
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7bafa0f4f4
ℹ️ 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".
…e sounds Signed-off-by: krishna2323 <belivethatkg@gmail.com>
…dback. Signed-off-by: krishna2323 <belivethatkg@gmail.com>
…for accurate running totals. Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5715b18d41
ℹ️ 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".
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Resolve conflicts in MoneyReportHeader.tsx and IOU/index.ts. Per-diem functions were moved to IOU/PerDiem.ts on main; applied feature modifications (shouldPlaySound, optimisticReportPreviewActionID, return iouReport) to PerDiem.ts. Made-with: Cursor
|
@codex review |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9fa3dce750
ℹ️ 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".
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
…ation paths Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@hungvu193 could you please test again? |
|
@Krishna2323 Can we prevent the text "Duplicate report" appear again while closing the PopoverMenu? Screen.Recording.2026-03-18.at.13.13.06.mov |
|
@hungvu193 I think that would need a workaround and would be an overkill. The duplicate expense also behaves the same. Screen_Recording_20260318_115124_Expensify.mp4 |
Make senses 😄 |
| wasDuplicateReportTriggered.current = false; | ||
| dropdownMenuRef.current?.setIsMenuVisible(false); |
There was a problem hiding this comment.
I guess we need to clean up this effect? Otherwise, we have this issue
Screen.Recording.2026-03-18.at.13.29.37.mov
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@hungvu193 I’ve made some recent changes — could you please check them? I introduced a bug while refactoring. |
|
Thanks for the update. I'll review in the morning |
|
@codex review |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
hungvu193
left a comment
There was a problem hiding this comment.
Looking good from my end.
There's a small issue here, but I think we can move forward
|
🚧 @Valforte 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! 🧪🧪
|
|
✋ 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/Valforte in version: 9.3.42-0 🚀
Bundle Size Analysis (Sentry): |
|
Deploy Blocker #86091 was identified to be related to this PR. |
Thanks for the ping. Looking into it in a couple of hours Cc @Krishna2323 |
|
Deploy Blocker #86093 was identified to be related to this PR. |
|
Deploy Blocker #86095 was identified to be related to this PR. |
Explanation of Change
Fixed Issues
$ #82153
PROPOSAL:
Tests
1. Basic Report Duplication
2. Duplicated Report Name and Contents
3. Modified Merchant Preserved
modifiedMerchantis set4. Card and Scanning Expenses Excluded
5. Distance Expense Duplication
6. Per Diem Expense Duplication
7. Mixed Transaction Types
8. Workspace Targeting
9. Cross-workspace duplication (not a member of source workspace)**
Note: credit card imports, accountant expenses, partial/scanning, and custom unit violations are skipped regardless of whether it's cross-workspace or same-workspace. Per diem and distance are only skipped when the target workspace differs from the source.
Offline tests
QA Steps
Same as tests
Verify that no errors appear in the JS console
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_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
test_1.mp4
test_2.mp4
test_3.mp4
test_4.mp4
test_5.mp4
test_6.mp4
test_7.mp4
test_8.mp4