[Odometer] Gate feature tab behind beta flag#81906
Conversation
Replace the hard-coded `false` gate on the Odometer tab in DistanceRequestStartPage with a check against the new CONST.BETAS.ODOMETER_EXPENSES beta, matching the existing pattern used for the GPS tab (CONST.BETAS.GPS_MILEAGE). Co-authored-by: Jules <Julesssss@users.noreply.github.com>
f7f29e3 to
207ff3a
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
|
@MelvinBot pull main and merge into this PR |
…s signatures The addComment function was refactored to accept a single object parameter (AddCommentParams) and subscribeToUserEvents now requires a currentUserAccountID argument. Several test call sites were not updated to match. Co-authored-by: Jules <Julesssss@users.noreply.github.com>
|
Fixed the failing Updated the following files to use the new calling conventions:
Note: These type errors also likely caused the |
|
@MelvinBot I didn't want you to do that! I want you to revert that last commit, and merge the latest main into this branch! |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
…serEvents signatures" This reverts commit da21135.
This comment was marked as outdated.
This comment was marked as outdated.
…bBehindBetaFlag Co-authored-by: Jules <Julesssss@users.noreply.github.com> # Conflicts: # .claude/agents/code-inline-reviewer.md # src/CONST/index.ts
|
Done! I've:
The branch is now up to date with |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
Sorry @DylanDylann please ignore these pings |
|
@puneetlath 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] |
|
Out of curiosity, why do we need a beta for this? |
|
Looks like there are also some failing tests (might be the same ones that are failing on main). |
@puneetlath we did plan to avoid this completely and have simply been using a But the combination of this and the GPS request feature required that we created a new scrolling tab component (PR). We're adding the beta now to help unblock that implementation sooner rather than later. (scolling tabs are only required when both features are enabled) |
|
Got it, thanks for the explanation 👍🏾 |
…ibeToUserEvents signatures Co-authored-by: Jules <Julesssss@users.noreply.github.com>
This comment was marked as off-topic.
This comment was marked as off-topic.
* main: (32 commits) Fix tests Fix prettier Fix ESlint Fix tests Prettier Add tests add an empty line add shouldShowPIN back again remove tests Keep displaying the masked pin Update Refactor: Deprecate getPolicy (part 9) Fix lint Lint fix Update label Lint fixes Add test fix type text for perdiem request on search page update icon update UTs ... # Conflicts: # tests/actions/IOUTest.ts
Yeah pretty sure they are unrelated. MELVIN is unaware though and keeps triggering on a failure 😅 Let me re-raise this manually tomorrow. We are discussing a fix for Melvin reacting to failures within the melvinbot team |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 @puneetlath has triggered a test Expensify/App build. You can view the workflow run here. |
|
All checks on this PR are currently passing. The failures from earlier runs (Feb 9) have been resolved — the most recent CI run shows all checks green. No fix is needed at this time. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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/puneetlath in version: 9.3.17-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.17-9 🚀
|
Explanation of Change
Simply uses the new Odometer beta to hide the Distance Expense Odometer tab. Necessary to unblock the tab scroll PR
Fixed Issues
Tests
odometerExpensesbetaodometerExpensesbeta (or withallbetas)To be tested further here
Beta Enabled

Only GPS enabled

QA Steps
odometerExpensesbetaodometerExpensesbeta (or withallbetas)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