fix: distance 2mi in edit page is displayed as 3.22km#88572
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0c352211f1
ℹ️ 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".
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-05-11.at.11.56.54.mp4Android: mWeb ChromeScreen.Recording.2026-05-11.at.12.00.10.mp4iOS: HybridAppScreen.Recording.2026-05-11.at.12.02.32.mp4iOS: mWeb SafariScreen.Recording.2026-05-11.at.12.03.07.mp4MacOS: Chrome / SafariScreen.Recording.2026-05-11.at.11.49.39.mp4 |
|
Hi @daledah I’m seeing a crash after updating the distance, and it’s still reproducible on staging. Could you help investigate the RCA? If it’s a quick fix, we can either post in Slack or include it in this PR. |
|
Hi @JmillsExpensify could you take a look at these 2 videos and let me know if you agree with the new behavior?
After changing the unit from miles to kilometers, when we open the preview page and update the distance, the value is converted from miles to kilometers and then saved in kilometers. Screen.Recording.2026-05-03.at.15.24.48.mov
Screen.Recording.2026-05-03.at.15.26.07.mov |
Screen.Recording.2026-05-03.at.15.26.07.mov@daledah could you check this video? |
bug-resize.mp4I can't reproduce this bug by following the steps here |
@JmillsExpensify what do you think? |
|
I agree with your recommendation.
This is the right way to go for now. We don't retroactively update mileage expenses, so applying it on save makes sense to me. |
|
@JmillsExpensify , Thanks for the confirmation. |
|
@daledah Please resolve the conflict |
|
@huult i resolved |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @marcaaron 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 9.3.73-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This is a one-line bug fix in |
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 9.3.73-0 🚀
Bundle Size Analysis (Sentry): |
|
Deploy Blocker #90450 was identified to be related to this PR. |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.73-4 🚀
|
Explanation of Change
Fixed Issues
$ #83145
PROPOSAL: #83145 (comment)
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov