fix: convert distance value to meters if necessary#43819
fix: convert distance value to meters if necessary#43819thienlnam merged 3 commits intoExpensify:mainfrom
Conversation
Signed-off-by: dominictb <tb-dominic@outlook.com>
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.mp4Android: mWeb ChromeiOS: Nativeios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.movMacOS: Desktop |
situchan
left a comment
There was a problem hiding this comment.
@dominictb please check this. I am getting wrong miles.
To reproduce, make sure to create the first distance request on this branch
|
@situchan can you send the full video so I could follow to reproduce? Thanks! |
|
@dominictb I am not able to reproduce original bug anymore on staging. Can you? |
|
@situchan haven't checked yet. I'll need to check and get back to you. |
|
@situchan this is still reproducible on main. Have you enabled the betas |
|
reproduced on main. Not reproducible on staging maybe because |
|
@situchan that's a bit redundant no? In here App/src/components/MoneyRequestConfirmationListFooter.tsx Lines 341 to 352 in eb8b251 distance value if the canUseP2PDistanceRequest flag is true.
|
We also use distance when canUseP2PDistanceRequest is false: App/src/components/MoneyRequestConfirmationListFooter.tsx Lines 328 to 342 in 98932a2 Why don't you try to test when canUseP2PDistanceRequest is false? It surely causes regression. |
|
@dominictb here's full reproduction video: (Tip: do the actions very quickly, slower network if possible) (canUseP2PDistanceRequest = true) Screen.Recording.2024-07-10.at.12.38.12.PM.mov |
It couldn't, as when For this #43819 (comment), I'll get back to you later. |
Signed-off-by: dominictb <tb-dominic@outlook.com>
|
@situchan fixed. The issue is because if the backend API is slow, we still get the |
situchan
left a comment
There was a problem hiding this comment.
Nice! Tests well now.
retest.mov
|
✋ 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/thienlnam in version: 9.0.7-3 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀
|

Details
Fixed Issues
$ #42959
PROPOSAL: #42959 (comment)
Tests
Pre-requisite: Enable
canUseP2PDistanceRequestsbetasVerify that: The distance in the confirmation page will be the same as the distance in the transaction thread because waypoints remain the same.
Offline tests
QA Steps
Pre-requisite: Enable
canUseP2PDistanceRequestsbetasVerify that: The distance in the confirmation page will be the same as the distance in the transaction thread because waypoints remain the same.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop