Hide Switch to Classic button when classicRedirect nudge is over a month old#88393
Merged
puneetlath merged 5 commits intoExpensify:mainfrom Apr 21, 2026
Merged
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Contributor
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb Safari |
puneetlath
requested changes
Apr 21, 2026
puneetlath
approved these changes
Apr 21, 2026
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Contributor
|
🚧 @puneetlath has triggered a test Expensify/App build. You can view the workflow run here. |
Contributor
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
Contributor
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.3.62-0 🚀
Bundle Size Analysis (Sentry): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Explanation of Change
~60% of users nudged from Classic to NewDot don't return to Classic. To standardise NewDot for that chunk of migrated users, we already hide the "Switch to Expensify Classic" button when the user has
classicRedirect.isLockedToNewDot: true. This PR adds a second condition: also hide the button when the user hasclassicRedirect.dismissed: falsewith aclassicRedirect.timestampof over one month ago.Implementation lives in
isOldAppRedirectBlockedinsideApp/src/libs/TryNewDotUtils.ts. Since all existing callers ofshouldHideOldAppRedirectgo through that gate, every entry point that surfaces the "Switch to Expensify Classic" button picks up the new behavior automatically (InitialSettingsPage, TroubleshootPage, MergeResultPage, TwoFactorAuth SuccessPage, ConfirmNavigateExpensifyClassicModal, useRedirectToExpensifyClassic).Backend already sets both
classicRedirect.dismissed = falseandclassicRedirect.timestampthe moment a user is nudged, so this is a frontend-only change.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/626046
PROPOSAL: N/A (internal work, assigned via Slack discussion linked on the issue)
Tests
classicRedirect.dismissed: falsewith aclassicRedirect.timestampolder than 30 days).dismissed: falsebut a recenttimestamp).classicRedirect.dismissed: true(has previously been to Classic and come back).isLockedToNewDot: true.Offline tests
Same as tests. The check is purely client-side against the already-synced
nvp_tryNewDotNVP, so visibility works offline once the NVP has been synced.QA Steps
Since QA cannot easily control server-side NVP values, use
Onyx.mergefrom the browser console to simulate each state. Onyx is exposed globally on the web build.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.