feat: add track distance option to add expense menu - #71005
Conversation
|
@allroundexperts 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] |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeScreen.Recording.2025-10-02.at.2.17.11.AM.moviOS: HybridAppiOS: mWeb SafariScreen.Recording.2025-10-02.at.2.14.08.AM.movMacOS: Chrome / SafariScreen.Recording.2025-10-02.at.2.10.30.AM.movMacOS: DesktopScreen.Recording.2025-10-02.at.2.13.07.AM.mov |
|
BUG Manual distance does not work and redirects to the manual amount flow. Screen.Recording.2025-10-02.at.2.07.45.AM.mov |
|
I just fixed the issue. |
neil-marcellini
left a comment
There was a problem hiding this comment.
Thanks for this, it looks good. I have some non-blocking comments that can be addressed in a follow-up.
| icon: Expensicons.Location, | ||
| onSelected: () => { | ||
| if (!moneyRequestReport?.reportID) { | ||
| return; |
There was a problem hiding this comment.
NAB: We should log a warning here, because this should never happen and it would leave the user in a weird position where they take an action and nothing happens.
| startMoneyRequest(CONST.IOU.TYPE.SUBMIT, iouReport?.reportID, undefined, false, chatReportID); | ||
| }, | ||
| }, | ||
| { |
There was a problem hiding this comment.
NAB: We define the addExpenseDropdownOptions 3 separate times, so it's breaking our DRY rule. Once 3 repetitions are reached, we should refactor it into a function that can be easily reused.
NAB because we can do this in a follow up.
|
✋ 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/neil-marcellini in version: 9.2.24-0 🚀
|
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.2.26-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.2.26-7 🚀
|
Explanation of Change
Fixed Issues
$ #70827
PROPOSAL:
Tests
Offline tests
NA
QA Steps
Same as tests
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: mWeb Chrome
iOS: Native
Screen.Recording.2025-09-30.at.17.28.53-compressed.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-09-30.at.17.25.23-compressed.mov
MacOS: Desktop