Fix Distance - Wrong distance unit on confirm page when submissions are disabled#82552
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.
|
|
@dukenv0307 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 41d4f7e3d7
ℹ️ 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".
|
@dukenv0307 could you take a look? It's blocking us from getting to the first GPS release 🙏 |
|
@GCyganek on it now |
|
I see the distance unit changes from mi to km briefly when we go to the confirmation page Screen.Recording.2026-02-18.at.00.14.39.movIn this case, the expectation in the confirmation page is the personal distance unit (km), so should we show km initially? |
Yeah, that makes sense IMO, I suggested it here as another solution, but for now this is what matches the expected result by the QA, so to get this done asap I just went with it. But I hope that there will be some discussion to make that change because it makes more sense I think |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-02-18.at.01.11.47.movAndroid: mWeb ChromeScreen.Recording.2026-02-18.at.01.01.35.moviOS: HybridAppScreen.Recording.2026-02-18.at.01.10.34.moviOS: mWeb SafariScreen.Recording.2026-02-18.at.01.04.49.movMacOS: Chrome / SafariScreen.Recording.2026-02-18.at.00.14.39.mov |
|
@GCyganek Okay, we can create the follow-up PR for this issue if needed |
Explanation of Change
Making sure that when the default workspace has
autoReportingset tofalsewe update the transaction draft to use user's personal distance unit for distance requestsFixed Issues
$ #82514
PROPOSAL: Second solution from here
Tests
Precondition:
Manual:
GPS:
Odometer:
Offline tests
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
iOS: Native
Screen.Recording.2026-02-16.at.14.11.27.mov
MacOS: Chrome / Safari
Screen.Recording.2026-02-16.at.14.02.24.mov
Screen.Recording.2026-02-16.at.14.12.48.mov