-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[Odometer] Refactor IOURequestStepDistanceOdometer to use handleMoneyRequestStepDistanceNavigation #82204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…stStepDistanceNavigation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
GCyganek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
|
@jayeshmangwani 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] |
|
@abzokhattab 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] |
…stStepDistanceNavigation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 098115eda0
ℹ️ 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".
|
Does it need c+ review? Asking since it was requested above |
…DistanceNavigation
|
@abzokhattab I guess this question should be directed to @Julesssss |
|
@DylanDylann has been working with us on all of the Odometer PRs. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-02-13.at.16.08.07.movAndroid: mWeb ChromeScreen.Recording.2026-02-13.at.16.01.21.moviOS: HybridAppScreen.Recording.2026-02-13.at.16.04.10.moviOS: mWeb SafariScreen.Recording.2026-02-13.at.15.59.22.movMacOS: Chrome / SafariScreen.Recording.2026-02-13.at.15.56.46.mov |
Explanation of Change
This PR refactors
IOURequestStepDistanceOdometerto use the sharedhandleMoneyRequestStepDistanceNavigationhelper (the same flow used by other distance types). The goal is to consolidate navigation and request creation logic in one place, reduce duplication, and ensure odometer follows the same recipient/confirmation behavior as the manual/gps flows. To support odometer specifics, the helper now accepts and forwardsodometerStart/odometerEnd.Fixed Issues
$ #81727
PROPOSAL: N/A
Tests
FAB - green Floating Action Button in the bottom left corner i.e. the global create flow
"Track distance"and select the Odometer tabstart/endreadings and continue - verify you land on the samerecipient/confirmationstep as before the change (you can also compare it with the manual distance behavior)"Quick action"which should be showing an odometer expense. Start an Odometer request from the global FAB by pressing this"Quick action", enter readings, and verify you skip recipient selection and land directly on the confirmation tied to that workspace"Quick action"which should be showing an odometer expense. Start an Odometer request from"Quick action", enter readings, and verify the request submits without showing the recipient or confirmation step.Offline tests
Same as tests but force offline in troubleshoot
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
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-02-12.at.12.58.02.mov