-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[Duplicate Expenses] Add Distance Expense Support #77758
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
[Duplicate Expenses] Add Distance Expense Support #77758
Conversation
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 |
|
Updated flow with modal: desktop-chrome-2026-01-08_15.59.47.mp4 |
|
Bug @jjcoffee Dup map distance while offline, App creates a manual distance expense Expected: App should create a map distance while offline Screen.Recording.2026-01-21.at.17.07.03.mov |
@hoangzinh Hmm can't reproduce this, are you sure you have the latest changes? Or are there some specific steps you followed? distance-map-desktop-chrome-2026-01-22_10.54.20.mp4 |
|
Yes, I was on the latest commits of this PR @jjcoffee. Btw, I found reproducible steps here:
Screen.Recording.2026-01-22.at.18.08.17.mov |
JS00001
left a comment
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, lets fix the issue from @hoangzinh and then get this one in!
|
Hmm in your previous video it doesn't look like there's Onyx data missing (since the map loads), so I wonder if something different is going on there. I can reproduce following your steps here, it seems we don't have |
|
App/src/libs/TransactionUtils/index.ts Line 252 in a0d5b7a
|
Oh that's perfect, thanks! I don't know how I missed that 😄 |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-01-23.at.05.57.40.android.movAndroid: mWeb ChromeScreen.Recording.2026-01-23.at.05.49.29.android.c.moviOS: HybridAppScreen.Recording.2026-01-23.at.06.09.21.ios.moviOS: mWeb SafariScreen.Recording.2026-01-23.at.06.03.31.ios.s.movMacOS: Chrome / SafariScreen.Recording.2026-01-23.at.05.39.16.web.mov |
hoangzinh
left a comment
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 🙏
JS00001
left a comment
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.
Great work on this!
|
✋ 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/JS00001 in version: 9.3.8-0 🚀
|

Explanation of Change
Adds support for distance expenses, with an additional BE fix for the case that was previously failing on the original PR - duplicating a distance expense from a non-default workspace. Previously this would return an error from the BE and the expense would not get added. Now we do add the expense and display an error about the rate being unavailable.
Fixed Issues
$ #77706
PROPOSAL: N/A
Tests
Same as QA steps.
Offline tests
Same as QA steps.
QA Steps
Prerequisites:
More -> DuplicateRate not valid for this workspaceerror shows upMore -> Duplicate.Fix the distance rate error and try again.Rateand correct the violation by selecting any rate.More -> Duplicateand verify that no modal shows and the expense duplicates.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-app-2026-01-06_17.05.29.mp4
Android: mWeb Chrome
android-chrome-2026-01-06_17.08.41.mp4
iOS: Native
ios-app-2026-01-06_16.58.18.mp4
iOS: mWeb Safari
ios-safari-2026-01-06_17.01.08.mp4
MacOS: Chrome / Safari
desktop-chrome-2026-01-07_15.41.08.mp4