[No QA][Manual distance] Add quick action support for manual distance#69390
Conversation
…p into feat/64849-qab
|
I recall that we discussed somewhere that no backend changes are needed at this point. Lmk if that's wrong though. |
|
I updated this PR to link to the new issue specifically for this. |
|
@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] |
| value: recentServerValidatedWaypoints, | ||
| }); | ||
|
|
||
| if (transaction && (transaction.iouRequestType === CONST.IOU.REQUEST_TYPE.DISTANCE_MAP || isManualDistanceRequestTransactionUtils(transaction))) { |
There was a problem hiding this comment.
Why not use a util method for checking if it's a distance map request?
| action: QuickActionName | undefined, | ||
| lastDistanceExpenseType?: DistanceExpenseType, | ||
| isManualDistanceTrackingEnabled?: boolean, |
There was a problem hiding this comment.
Hm... I think it would be better to add these as a object.
There was a problem hiding this comment.
Yeah it's already an object parameter:
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppUnable to build android Android: mWeb ChromeScreen.Recording.2025-09-16.at.7.30.51.AM.moviOS: HybridAppScreen.Recording.2025-09-16.at.7.29.46.AM.moviOS: mWeb SafariScreen.Recording.2025-09-16.at.7.29.07.AM.movMacOS: Chrome / SafariScreen.Recording.2025-09-16.at.7.24.48.AM.movMacOS: DesktopScreen.Recording.2025-09-16.at.7.27.56.AM.mov |
allroundexperts
left a comment
There was a problem hiding this comment.
Several NABs, but overall looks good!
neil-marcellini
left a comment
There was a problem hiding this comment.
Great work, thank you!
| onyxData?.optimisticData?.push({ | ||
| onyxMethod: Onyx.METHOD.SET, | ||
| key: ONYXKEYS.NVP_LAST_DISTANCE_EXPENSE_TYPE, | ||
| value: transaction?.iouRequestType, |
There was a problem hiding this comment.
NAB: We only need to set this value when IOU request type is manual since map is the default.
There was a problem hiding this comment.
Not really important though, and maybe this is more clear
|
✋ 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.16-0 🚀
|
|
@dominictb @neil-marcellini Is expensifail account |
|
@neil-marcellini This should be |
|
No QA, as I modified in the description. |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.2.16-14 🚀
|
Explanation of Change
Fixed Issues
$ #70499
PROPOSAL:
Tests
Precondition:
manualDistancebeta is enabledOffline tests
QA Steps
No QA
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))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-15.at.13.35.09-compressed.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-09-15.at.13.29.51-compressed.mov
MacOS: Desktop