You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$250] User was not migrated yet to New Expensify, but was moved to the New Version and there's no option to return to Classic. #89621
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Version Number: Reproducible in staging?: Needs Reproduction (Reproduction blocked) Reproducible in production?: Needs Reproduction If this was caught during regression testing, add the test name, ID and link from BrowserStack: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by:@Liz-Canary@Thiago-Araujo-PH Slack conversation (hyperlinked to channel name): #Expensify Bugs
Action Performed:
Log in as a user(Not a migrated user but redirected to NewDot) with access to other employees’ expenses
Navigate to an expense created by another employee
Attempt to open the expense
Observe loading behavior
Attempt to switch to Classic Expensify
Expected Result:
Expense should:
Open successfully without infinite loading
User should:
Have access to “Switch Back to Classic” option as fallback
Actual Result:
Expense:
Stuck in infinite loading state
Classic fallback:
No “Switch Back” button available
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Users who were not nudge-migrated (i.e., redirected to NewDot through other means like a direct URL or deep link) will not have nudgeMigration set in their NVP_TRY_NEW_DOT, so the button is never rendered on the main Settings page.
Note: The button is available on Settings > Troubleshoot (TroubleshootPage.tsx:122-154) without the nudgeMigration requirement — it only checks shouldHideOldAppRedirect(). But this is not discoverable for a user stuck on an infinite-loading screen.
2. Expense stuck in infinite loading
When a non-migrated user navigates to an expense created by another employee, the report data doesn't exist in Onyx. The loading skeleton in ReportActionsList.tsx:47-48 shows indefinitely when the report is null or shouldWaitForTransactions is true. Additionally, ReportFetchHandler.tsx:124-131 can block the openReport call entirely when isLoadingApp is true and onboarding is incomplete — a state non-migrated users are likely to be in. When openReport never fires, the RAM-only loading state defaults (isLoadingInitialReportActions: true) persist forever, and ReportNotFoundGuard never transitions to "not found."
What changes do you think we should make in order to solve the problem?
For the missing "Switch Back to Classic" button: Remove the tryNewDot?.nudgeMigration guard on InitialSettingsPage.tsx:380. The button should be shown to all users who pass shouldHideOldAppRedirect(), which already handles the correct gating logic (locked-to-new-dot check, 30-day timer, mobile lock). The nudgeMigration check is overly restrictive and excludes users who were redirected to NewDot without a formal migration.
For the infinite loading: This likely requires deeper investigation with production logs to confirm the exact blocked code path for this user's account. The onboarding guard in ReportFetchHandler and the shouldWaitForTransactions logic in MoneyRequestReportUtils.ts are the two most probable culprits. The user's NVP_TRY_NEW_DOT and nvp_introSelected values would confirm which path is stuck.
What alternative solutions did you explore? (Optional)
For the Classic redirect button, an alternative would be to always show the button on the main Settings page regardless of any NVP, but this could surface it to users who should genuinely be locked to NewDot. The shouldHideOldAppRedirect() function already handles those cases correctly, so relying on it alone (without the extra nudgeMigration check) is the cleanest approach.
Expensify/App#89559 — "Switch flow - Page keeps on loading when click on Try New Expensify"
Expensify/App#78948 — "Classic – User is redirected to NewDot after refresh instead of staying in Classic"
Expensify/App#88243 — "HybridApp - Switch to Expensify Classic silently does nothing on mobile"
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
The issue describes two symptoms; the second one (no "Switch Back to Classic" available for a non-migrated user) has a clear, reproducible root cause in NewDot, while the first one (infinite loading on someone else's expense) is marked "Reproduction blocked" and would need logs to root-cause confidently. I'll focus on the fix that's actionable today.
letclassicRedirectMenuItem: MenuData|null=null;if(!shouldHideOldAppRedirect(tryNewDot,isLoadingTryNewDot,CONFIG.IS_HYBRID_APP)){// ... build the menu item ...}// ...items: [
...(classicRedirectMenuItem&&tryNewDot?.nudgeMigration ? [classicRedirectMenuItem] : []),// ...],
The first gate (shouldHideOldAppRedirect in TryNewDotUtils.ts#L34-L36) handles the legitimate "user should be locked to NewDot" cases (isLockedToNewDot, 30-day post-nudge window, etc.). That's the intended access control.
The second gate — tryNewDot?.nudgeMigration — only resolves truthy when the user has been added to a NewDot migration cohort (TryNewDot.ts#L44-L52 and Welcome/index.ts:100). The reporter's exact scenario — "User was not migrated yet, but was moved to the New Version" — is a user who landed in NewDot without being part of a nudge cohort, so nudgeMigration is undefined and the menu item is filtered out, leaving them stranded with no way back.
The same option in TroubleshootPage.tsx#L122-L154 does not apply the nudgeMigration gate — it relies solely on shouldHideOldAppRedirect. So the Settings → Troubleshoot path correctly shows "Go to Expensify Classic" while the more discoverable Settings → General path hides it. That inconsistency is the bug.
For the infinite-loading symptom on opening another employee's expense, the report doesn't include logs, the issue is marked "Reproduction blocked", and MoneyRequestReportView's loading flag (isLoadingInitialReportActions at MoneyRequestReportView.tsx#L159) only stalls when openReport never resolves — which usually points to a permissions / cross-account fetch race. I'd suggest splitting that into its own ticket once we have a console log capture, since fixing it without confirmed repro is guesswork.
What changes do you think we should make in order to solve the problem?
Drop the nudgeMigration gate from the General menu and rely only on shouldHideOldAppRedirect.
shouldHideOldAppRedirect already encodes the policy decision: it returns true for users locked to NewDot, users still inside the 30-day post-nudge lockout, and (on HybridApp) users with isLockedToNewApp. Once that gate has said "show the redirect," there's no reason to additionally require the user to be in a migration cohort — they have access to OldDot by definition, and we simply weren't surfacing the entry point.
This also removes the asymmetry with Troubleshoot, which has been quietly working correctly for non-migrated users this whole time.
Tests to add:
Component test for InitialSettingsPage: with tryNewDot = {classicRedirect: {dismissed: true, isLockedToNewDot: false, ...}} and nudgeMigration undefined, the "Go to Expensify Classic" item is rendered.
Component test: with tryNewDot.classicRedirect.isLockedToNewDot = true, the item is hidden (existing behavior preserved).
Component test: with hasBeenInNewDot30Days(tryNewDot) === true, the item is hidden (existing behavior preserved).
What alternative solutions did you explore? (Optional)
Move the nudgeMigration check into shouldHideOldAppRedirect. Rejected — that helper is shared with Troubleshoot, which already (correctly) does not require nudgeMigration. Centralizing the bug would regress the working path.
Always render the menu item but disable it when not migrated. Rejected — shouldHideOldAppRedirect already covers the legitimate "user shouldn't redirect" cases; rendering a disabled control adds noise without information.
Tackle the infinite-loading symptom in the same PR. Rejected — without repro logs and with the issue currently flagged "Reproduction blocked," any change to openReport / MoneyRequestReportView loading would be speculative. Worth its own ticket once logs land.
changed the title [-]User was not migrated yet to New Expensify, but was moved to the New Version and there's no option to return to Classic.[/-][+][$250] User was not migrated yet to New Expensify, but was moved to the New Version and there's no option to return to Classic.[/+]on May 5, 2026
Please re-state the problem that we are trying to solve in this issue.
A user who wasn't part of a migration cohort gets moved to New Expensify but has no way to switch back — the "Switch to Expensify Classic" button doesn't appear in Settings even though they're eligible.
What is the root cause of that problem?
The "Switch to Expensify Classic" menu item in InitialSettingsPage is gated behind two conditions — but only one of them is the right guard:
classicRedirectMenuItem is already null for users who should stay locked to New Expensify — that's handled by shouldHideOldAppRedirect() in TryNewDotUtils. The extra tryNewDot?.nudgeMigration check only resolves truthy for users migrated via a nudge cohort (per the TryNewDot type). Users moved to New Expensify by other means never have this key set, so the ternary drops the menu item entirely. Note that TroubleshootPage gates solely on shouldHideOldAppRedirect() and works correctly — making this an inconsistency between the two pages.
What changes do you think we should make in order to solve the problem?
shouldHideOldAppRedirect() already handles every legitimate blocking case (locked to New Expensify, 30-day post-nudge window, HybridApp lock). This change makes the Settings page consistent with TroubleshootPage, which has always relied on that utility alone.
What alternative solutions did you explore? (Optional)
Both MelvinBot's and yusufdeveloper2903's proposals identify the same root cause and the same one-line fix — they're correct. The only thing worth adding: neither proposal calls out that the nudgeMigration guard in InitialSettingsPage.tsx appears to have been added without a corresponding code comment explaining the restriction, so the PR introducing this fix should include a note confirming with the product team that restricting the button to nudge-migrated users was never the intended design (otherwise we risk reverting an intentional product decision). If it was intentional, the fix would need a different mechanism (e.g. a separate NVP flag) to surface the redirect for non-cohort users.
The "Switch to Expensify Classic" entry is hidden by two separate gates, and both affect the reported non-migrated-user flow.
First, the shared Classic redirect gate treats any stale classicRedirect.dismissed === false timestamp as a reason to hide OldDot access, even when the user was never added to a nudge migration cohort. hasBeenInNewDot30Days() only checks classicRedirect at src/libs/TryNewDotUtils.ts#L12-L19, and isOldAppRedirectBlocked() uses that result at src/libs/TryNewDotUtils.ts#L30-L31. But nudgeMigration is the field that identifies users migrated through a nudge cohort, as documented at src/types/onyx/TryNewDot.ts#L44-L49.
Because the issue is for a user who was not migrated yet but still landed in NewDot, the stale 30-day nudge rule is being applied to the wrong population. That explains the attachment: the user is already on Settings > Troubleshoot, and that page hides the Classic item solely through shouldHideOldAppRedirect() at src/pages/settings/Troubleshoot/TroubleshootPage.tsx#L122-L124.
Second, the main Settings > General menu builds a valid classicRedirectMenuItem, but then filters it out again unless tryNewDot?.nudgeMigration exists at src/pages/settings/InitialSettingsPage.tsx#L338-L380. So even after fixing the shared gate, non-nudge users would still miss the most discoverable Settings entry point.
What changes do you think we should make in order to solve the problem?
Fix the shared gating rule so the 30-day stale-nudge block only applies to users who actually have tryNewDot.nudgeMigration.timestamp. Then remove the extra tryNewDot?.nudgeMigration filter from the Settings > General menu and rely on shouldHideOldAppRedirect() as the single source of truth.
Required changes:
In hasBeenInNewDot30Days(), return false when tryNewDot?.nudgeMigration?.timestamp is missing.
Keep classicRedirect.isLockedToNewDot and HybridApp isLockedToNewApp blocking unchanged.
In InitialSettingsPage, render classicRedirectMenuItem whenever it was created by the shared gate.
Add/update tests so:
a stale classicRedirect without nudgeMigration does not hide Classic access;
a stale classicRedirect with nudgeMigration still hides Classic access;
Settings > General renders "Switch to Expensify Classic" for a non-nudge user who passes shouldHideOldAppRedirect().
Removing only the tryNewDot?.nudgeMigration filter from InitialSettingsPage is incomplete. The attachment shows the user is on the Troubleshoot page, and Troubleshoot does not use that filter; it is hidden by the shared shouldHideOldAppRedirect() gate.
Changing only TroubleshootPage would also be incomplete because the same shared helper controls other Classic redirect entry points. The fix belongs in TryNewDotUtils, with the General menu cleanup to keep all visible entry points consistent.
What alternative solutions did you explore? (Optional)
⚠️@nabi-ebrahimi Your proposal is a duplicate of an already existing proposal and has been automatically withdrawn to prevent spam. Please review the existing proposals before submitting a new one.
A non-migrated employee who lands on NewDot (without having gone through the nudge cohort) can browse other employees' expenses but gets stuck on a loading skeleton, and the Switch to Expensify Classic menu item does not render in Settings because it is gated behind a flag that only nudge-migrated users have. The two symptoms have separate, fixable root causes.
Root cause
1 — Switch to Expensify Classic is gated on nudgeMigration, which non-migrated NewDot users never have.
In src/pages/settings/InitialSettingsPage.tsx:335-364, the menu item is built (correctly) only when shouldHideOldAppRedirect() returns false:
nudgeMigration is the NVP populated only when the user was added to a nudge-migration cohort (src/types/onyx/TryNewDot.ts:44-53 — "This key is added when user is migrated from OldDot to NewDot with nudge migration as part of a cohort"). A user who was redirected to NewDot via deep link, an admin link, or any path other than nudge-migration does not have it set, so the second gate strips the item even though shouldHideOldAppRedirect (the legitimate gate, see src/libs/TryNewDotUtils.ts:30-36) said the user is allowed to switch back. The Troubleshoot page already does the right thing — it gates on shouldHideOldAppRedirect only (src/pages/settings/Troubleshoot/TroubleshootPage.tsx:122-153) — but a stuck user on a loading skeleton won't navigate three layers deep into Troubleshoot to find it.
2 — fetchReport bails when isLoadingApp is true, and never retries when it flips to false.
src/pages/inbox/ReportFetchHandler.tsx:111-135 short-circuits openReport while the app is still loading, to avoid the onboarding-task race fixed in #71742:
The single effect that drives fetchReport for a normal navigation does not include isLoadingApp in its dependency array:
// src/pages/inbox/ReportFetchHandler.tsx:247-252useEffect(()=>{// This function is triggered when a user clicks on a link to navigate to a report.// For each link click, we retrieve the report data again, even though it may already be cached.// There should be only one openReport execution per page start or navigatingfetchReport();},[route,isLinkedMessagePageReady,reportActionIDFromRoute]);
For a non-migrated user redirected to NewDot, the OpenApp / onboarding flow takes meaningfully longer to settle (their onboarding NVPs are partial — introSelected is present but hasCompletedGuidedSetupFlow is still false). When the user taps the expense, isLoadingApp is still true, the choice/invite-type guard matches, and fetchReport returns without ever calling openReport. When isLoadingApp later flips to false, the effect does not re-run because it doesn't depend on isLoadingApp, and useEffectEvent is not itself a dependency. The RAM_ONLY_REPORT_LOADING_STATE for that report is never written, the report row never arrives, and ReportActionsList.tsx:47-48 keeps rendering <ReportActionsSkeletonView /> forever:
The ReportNotFoundGuard at src/pages/inbox/ReportNotFoundGuard.tsx:50-53 also can't escape the state, because it computes isLoading = isLoadingApp !== false || isLoadingReportData || ... — while isLoadingApp is in flight it just keeps showing the children (the skeleton), and after isLoadingApp flips, isLoadingReportData may still be true since OpenApp completed but the per-report fetch was never issued.
Proposed fix
1 — Remove the nudgeMigration gate on the Settings entry and rely on shouldHideOldAppRedirect (which is already the source of truth used in Troubleshoot).
This collapses the redundant gate. classicRedirectMenuItem is already null whenever the user is locked to NewDot, has spent 30+ days post-nudge, or — on HybridApp — is isLockedToNewApp (see shouldHideOldAppRedirect / isOldAppRedirectBlocked in src/libs/TryNewDotUtils.ts:30-36). Any user who could legitimately go back to Classic now sees the entry on the main Settings page.
2 — Re-trigger fetchReport once isLoadingApp flips from true to false so the early-return path is recoverable.
Add isLoadingApp to the navigation effect's dependency array. The effect already calls fetchReport() unconditionally on every change; openReport is itself idempotent for the success path because its successData only flips loading flags and clears errorFields.notFound (src/libs/actions/Report/index.ts:1379-1407), so a second call once the app finishes loading is safe.
// src/pages/inbox/ReportFetchHandler.tsx:247-252useEffect(()=>{// This function is triggered when a user clicks on a link to navigate to a report.// For each link click, we retrieve the report data again, even though it may already be cached.// There should be only one openReport execution per page start or navigating.// isLoadingApp is included so that if fetchReport bails early while the app is still// loading (see the onboarding-race guard inside fetchReport), the call is retried// once OpenApp finishes and the user is no longer stuck on a skeleton.fetchReport();-},[route,isLinkedMessagePageReady,reportActionIDFromRoute]);+},[route,isLinkedMessagePageReady,reportActionIDFromRoute,isLoadingApp]);
This intentionally does not also weaken the early-return inside fetchReport itself — that guard exists to prevent the onboarding-task creation bug tracked in #71742, and we want it to stay tight. Re-running the effect once loading completes is the minimum change that makes the bail recoverable.
Why this approach
For (1), shouldHideOldAppRedirect already encodes every legitimate reason to hide the redirect (isLockedToNewDot, 30-day cooldown, mobile lock); the additional nudgeMigration check is a behavioural assumption about how the user got to NewDot, not whether they're allowed back, and it produces exactly the trapped-user state in this report. The Troubleshoot page is precedent that the single gate is sufficient (src/pages/settings/Troubleshoot/TroubleshootPage.tsx:122-153).
For (2), an alternative would be to drop the isLoadingApp short-circuit altogether, but that re-opens the onboarding task issue (#71742) and is a far broader change. Adding isLoadingApp to the existing effect's deps is local, costs at most one extra openReport per session for affected users, and keeps every other effect in this component untouched. Together the two changes give the user (a) an unblocked report load when the app finishes initialising, and (b) a visible escape hatch on the main Settings page if they still want to bail to Classic.
Based on the nvp, shouldHideOldAppRedirect should return false, meaning the return to Classic button should already be visible on troubleshoot page for this user. I'll ask in the Slack thread for confirmation
@Valforte@nyomanjyotisa this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
Looks like the issue is no longer reproducible for the user based on this. I think we can close the issue and revisit it if there's another report about it @Valforte
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Activity
MelvinBot commentedon May 5, 2026
Proposal
What is the root cause of that problem?
This issue has two distinct symptoms with separate root causes:
1. Missing "Switch Back to Classic" button
The "Switch to Expensify Classic" menu item on the main Settings page (
InitialSettingsPage.tsx:380) requirestryNewDot?.nudgeMigrationto be truthy:Users who were not nudge-migrated (i.e., redirected to NewDot through other means like a direct URL or deep link) will not have
nudgeMigrationset in theirNVP_TRY_NEW_DOT, so the button is never rendered on the main Settings page.Note: The button is available on Settings > Troubleshoot (
TroubleshootPage.tsx:122-154) without thenudgeMigrationrequirement — it only checksshouldHideOldAppRedirect(). But this is not discoverable for a user stuck on an infinite-loading screen.2. Expense stuck in infinite loading
When a non-migrated user navigates to an expense created by another employee, the report data doesn't exist in Onyx. The loading skeleton in
ReportActionsList.tsx:47-48shows indefinitely when the report is null orshouldWaitForTransactionsis true. Additionally,ReportFetchHandler.tsx:124-131can block theopenReportcall entirely whenisLoadingAppis true and onboarding is incomplete — a state non-migrated users are likely to be in. WhenopenReportnever fires, the RAM-only loading state defaults (isLoadingInitialReportActions: true) persist forever, andReportNotFoundGuardnever transitions to "not found."What changes do you think we should make in order to solve the problem?
For the missing "Switch Back to Classic" button: Remove the
tryNewDot?.nudgeMigrationguard onInitialSettingsPage.tsx:380. The button should be shown to all users who passshouldHideOldAppRedirect(), which already handles the correct gating logic (locked-to-new-dot check, 30-day timer, mobile lock). ThenudgeMigrationcheck is overly restrictive and excludes users who were redirected to NewDot without a formal migration.For the infinite loading: This likely requires deeper investigation with production logs to confirm the exact blocked code path for this user's account. The onboarding guard in
ReportFetchHandlerand theshouldWaitForTransactionslogic inMoneyRequestReportUtils.tsare the two most probable culprits. The user'sNVP_TRY_NEW_DOTandnvp_introSelectedvalues would confirm which path is stuck.What alternative solutions did you explore? (Optional)
For the Classic redirect button, an alternative would be to always show the button on the main Settings page regardless of any NVP, but this could surface it to users who should genuinely be locked to NewDot. The
shouldHideOldAppRedirect()function already handles those cases correctly, so relying on it alone (without the extranudgeMigrationcheck) is the cleanest approach.Investigation details
Key code references:
TryNewDotUtils.ts:30-36—isOldAppRedirectBlockedandshouldHideOldAppRedirectlogicTryNewDotUtils.ts:38-48—shouldUseOldAppdecides HybridApp startup behaviorTryNewDotUtils.ts:12-19— 30-day timer checkReportNotFoundGuard.tsx:50— Loading guard that prevents "not found" pageReportActionsView.tsx:340-357— Multiple skeleton conditionsPossibly related issues:
Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.melvin-bot commentedon May 5, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @nyomanjyotisa (
External)yusufdeveloper2903 commentedon May 5, 2026
Proposal
What is the root cause of that problem?
The issue describes two symptoms; the second one (no "Switch Back to Classic" available for a non-migrated user) has a clear, reproducible root cause in NewDot, while the first one (infinite loading on someone else's expense) is marked "Reproduction blocked" and would need logs to root-cause confidently. I'll focus on the fix that's actionable today.
The "Switch Back to Classic" entry on the Settings → General menu is gated by two conditions in
InitialSettingsPage.tsx#L335-L377:The first gate (
shouldHideOldAppRedirectinTryNewDotUtils.ts#L34-L36) handles the legitimate "user should be locked to NewDot" cases (isLockedToNewDot, 30-day post-nudge window, etc.). That's the intended access control.The second gate —
tryNewDot?.nudgeMigration— only resolves truthy when the user has been added to a NewDot migration cohort (TryNewDot.ts#L44-L52andWelcome/index.ts:100). The reporter's exact scenario — "User was not migrated yet, but was moved to the New Version" — is a user who landed in NewDot without being part of a nudge cohort, sonudgeMigrationis undefined and the menu item is filtered out, leaving them stranded with no way back.The same option in
TroubleshootPage.tsx#L122-L154does not apply thenudgeMigrationgate — it relies solely onshouldHideOldAppRedirect. So the Settings → Troubleshoot path correctly shows "Go to Expensify Classic" while the more discoverable Settings → General path hides it. That inconsistency is the bug.For the infinite-loading symptom on opening another employee's expense, the report doesn't include logs, the issue is marked "Reproduction blocked", and
MoneyRequestReportView's loading flag (isLoadingInitialReportActionsatMoneyRequestReportView.tsx#L159) only stalls whenopenReportnever resolves — which usually points to a permissions / cross-account fetch race. I'd suggest splitting that into its own ticket once we have a console log capture, since fixing it without confirmed repro is guesswork.What changes do you think we should make in order to solve the problem?
Drop the
nudgeMigrationgate from the General menu and rely only onshouldHideOldAppRedirect.shouldHideOldAppRedirectalready encodes the policy decision: it returnstruefor users locked to NewDot, users still inside the 30-day post-nudge lockout, and (on HybridApp) users withisLockedToNewApp. Once that gate has said "show the redirect," there's no reason to additionally require the user to be in a migration cohort — they have access to OldDot by definition, and we simply weren't surfacing the entry point.This also removes the asymmetry with Troubleshoot, which has been quietly working correctly for non-migrated users this whole time.
Tests to add:
InitialSettingsPage: withtryNewDot = {classicRedirect: {dismissed: true, isLockedToNewDot: false, ...}}andnudgeMigrationundefined, the "Go to Expensify Classic" item is rendered.tryNewDot.classicRedirect.isLockedToNewDot = true, the item is hidden (existing behavior preserved).hasBeenInNewDot30Days(tryNewDot) === true, the item is hidden (existing behavior preserved).What alternative solutions did you explore? (Optional)
nudgeMigrationcheck intoshouldHideOldAppRedirect. Rejected — that helper is shared with Troubleshoot, which already (correctly) does not requirenudgeMigration. Centralizing the bug would regress the working path.shouldHideOldAppRedirectalready covers the legitimate "user shouldn't redirect" cases; rendering a disabled control adds noise without information.openReport/MoneyRequestReportViewloading would be speculative. Worth its own ticket once logs land.[-]User was not migrated yet to New Expensify, but was moved to the New Version and there's no option to return to Classic.[/-][+][$250] User was not migrated yet to New Expensify, but was moved to the New Version and there's no option to return to Classic.[/+]melvin-bot commentedon May 5, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022051712782517713605
twilight2294 commentedon May 5, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
A user who wasn't part of a migration cohort gets moved to New Expensify but has no way to switch back — the "Switch to Expensify Classic" button doesn't appear in Settings even though they're eligible.
What is the root cause of that problem?
The "Switch to Expensify Classic" menu item in InitialSettingsPage is gated behind two conditions — but only one of them is the right guard:
classicRedirectMenuItemis alreadynullfor users who should stay locked to New Expensify — that's handled byshouldHideOldAppRedirect()in TryNewDotUtils. The extratryNewDot?.nudgeMigrationcheck only resolves truthy for users migrated via a nudge cohort (per the TryNewDot type). Users moved to New Expensify by other means never have this key set, so the ternary drops the menu item entirely. Note that TroubleshootPage gates solely onshouldHideOldAppRedirect()and works correctly — making this an inconsistency between the two pages.What changes do you think we should make in order to solve the problem?
Drop the
nudgeMigrationguard from InitialSettingsPage:shouldHideOldAppRedirect()already handles every legitimate blocking case (locked to New Expensify, 30-day post-nudge window, HybridApp lock). This change makes the Settings page consistent with TroubleshootPage, which has always relied on that utility alone.What alternative solutions did you explore? (Optional)
Both MelvinBot's and yusufdeveloper2903's proposals identify the same root cause and the same one-line fix — they're correct. The only thing worth adding: neither proposal calls out that the
nudgeMigrationguard inInitialSettingsPage.tsxappears to have been added without a corresponding code comment explaining the restriction, so the PR introducing this fix should include a note confirming with the product team that restricting the button to nudge-migrated users was never the intended design (otherwise we risk reverting an intentional product decision). If it was intentional, the fix would need a different mechanism (e.g. a separate NVP flag) to surface the redirect for non-cohort users.nabi-ebrahimi commentedon May 5, 2026
Proposal
What is the root cause of that problem?
The "Switch to Expensify Classic" entry is hidden by two separate gates, and both affect the reported non-migrated-user flow.
First, the shared Classic redirect gate treats any stale
classicRedirect.dismissed === falsetimestamp as a reason to hide OldDot access, even when the user was never added to a nudge migration cohort.hasBeenInNewDot30Days()only checksclassicRedirectatsrc/libs/TryNewDotUtils.ts#L12-L19, andisOldAppRedirectBlocked()uses that result atsrc/libs/TryNewDotUtils.ts#L30-L31. ButnudgeMigrationis the field that identifies users migrated through a nudge cohort, as documented atsrc/types/onyx/TryNewDot.ts#L44-L49.Because the issue is for a user who was not migrated yet but still landed in NewDot, the stale 30-day nudge rule is being applied to the wrong population. That explains the attachment: the user is already on Settings > Troubleshoot, and that page hides the Classic item solely through
shouldHideOldAppRedirect()atsrc/pages/settings/Troubleshoot/TroubleshootPage.tsx#L122-L124.Second, the main Settings > General menu builds a valid
classicRedirectMenuItem, but then filters it out again unlesstryNewDot?.nudgeMigrationexists atsrc/pages/settings/InitialSettingsPage.tsx#L338-L380. So even after fixing the shared gate, non-nudge users would still miss the most discoverable Settings entry point.What changes do you think we should make in order to solve the problem?
Fix the shared gating rule so the 30-day stale-nudge block only applies to users who actually have
tryNewDot.nudgeMigration.timestamp. Then remove the extratryNewDot?.nudgeMigrationfilter from the Settings > General menu and rely onshouldHideOldAppRedirect()as the single source of truth.Required changes:
hasBeenInNewDot30Days(), returnfalsewhentryNewDot?.nudgeMigration?.timestampis missing.classicRedirect.isLockedToNewDotand HybridAppisLockedToNewAppblocking unchanged.InitialSettingsPage, renderclassicRedirectMenuItemwhenever it was created by the shared gate.classicRedirectwithoutnudgeMigrationdoes not hide Classic access;classicRedirectwithnudgeMigrationstill hides Classic access;shouldHideOldAppRedirect().Removing only the
tryNewDot?.nudgeMigrationfilter fromInitialSettingsPageis incomplete. The attachment shows the user is on the Troubleshoot page, and Troubleshoot does not use that filter; it is hidden by the sharedshouldHideOldAppRedirect()gate.Changing only
TroubleshootPagewould also be incomplete because the same shared helper controls other Classic redirect entry points. The fix belongs inTryNewDotUtils, with the General menu cleanup to keep all visible entry points consistent.What alternative solutions did you explore? (Optional)
github-actions commentedon May 5, 2026
trasnake87 commentedon May 5, 2026
Proposal
A non-migrated employee who lands on NewDot (without having gone through the nudge cohort) can browse other employees' expenses but gets stuck on a loading skeleton, and the Switch to Expensify Classic menu item does not render in Settings because it is gated behind a flag that only nudge-migrated users have. The two symptoms have separate, fixable root causes.
Root cause
1 —
Switch to Expensify Classicis gated onnudgeMigration, which non-migrated NewDot users never have.In
src/pages/settings/InitialSettingsPage.tsx:335-364, the menu item is built (correctly) only whenshouldHideOldAppRedirect()returns false:But it is then re-gated when added to the general section:
nudgeMigrationis the NVP populated only when the user was added to a nudge-migration cohort (src/types/onyx/TryNewDot.ts:44-53— "This key is added when user is migrated from OldDot to NewDot with nudge migration as part of a cohort"). A user who was redirected to NewDot via deep link, an admin link, or any path other than nudge-migration does not have it set, so the second gate strips the item even thoughshouldHideOldAppRedirect(the legitimate gate, seesrc/libs/TryNewDotUtils.ts:30-36) said the user is allowed to switch back. The Troubleshoot page already does the right thing — it gates onshouldHideOldAppRedirectonly (src/pages/settings/Troubleshoot/TroubleshootPage.tsx:122-153) — but a stuck user on a loading skeleton won't navigate three layers deep into Troubleshoot to find it.2 —
fetchReportbails whenisLoadingAppis true, and never retries when it flips to false.src/pages/inbox/ReportFetchHandler.tsx:111-135short-circuitsopenReportwhile the app is still loading, to avoid the onboarding-task race fixed in #71742:The single effect that drives
fetchReportfor a normal navigation does not includeisLoadingAppin its dependency array:For a non-migrated user redirected to NewDot, the OpenApp / onboarding flow takes meaningfully longer to settle (their onboarding NVPs are partial —
introSelectedis present buthasCompletedGuidedSetupFlowis still false). When the user taps the expense,isLoadingAppis stilltrue, the choice/invite-type guard matches, andfetchReportreturns without ever callingopenReport. WhenisLoadingApplater flips tofalse, the effect does not re-run because it doesn't depend onisLoadingApp, anduseEffectEventis not itself a dependency. TheRAM_ONLY_REPORT_LOADING_STATEfor that report is never written, the report row never arrives, andReportActionsList.tsx:47-48keeps rendering<ReportActionsSkeletonView />forever:The
ReportNotFoundGuardatsrc/pages/inbox/ReportNotFoundGuard.tsx:50-53also can't escape the state, because it computesisLoading = isLoadingApp !== false || isLoadingReportData || ...— whileisLoadingAppis in flight it just keeps showing the children (the skeleton), and afterisLoadingAppflips,isLoadingReportDatamay still be true since OpenApp completed but the per-report fetch was never issued.Proposed fix
1 — Remove the
nudgeMigrationgate on the Settings entry and rely onshouldHideOldAppRedirect(which is already the source of truth used in Troubleshoot).This collapses the redundant gate.
classicRedirectMenuItemis alreadynullwhenever the user is locked to NewDot, has spent 30+ days post-nudge, or — on HybridApp — isisLockedToNewApp(seeshouldHideOldAppRedirect/isOldAppRedirectBlockedinsrc/libs/TryNewDotUtils.ts:30-36). Any user who could legitimately go back to Classic now sees the entry on the main Settings page.2 — Re-trigger
fetchReportonceisLoadingAppflips fromtruetofalseso the early-return path is recoverable.Add
isLoadingAppto the navigation effect's dependency array. The effect already callsfetchReport()unconditionally on every change;openReportis itself idempotent for the success path because itssuccessDataonly flips loading flags and clearserrorFields.notFound(src/libs/actions/Report/index.ts:1379-1407), so a second call once the app finishes loading is safe.This intentionally does not also weaken the early-return inside
fetchReportitself — that guard exists to prevent the onboarding-task creation bug tracked in #71742, and we want it to stay tight. Re-running the effect once loading completes is the minimum change that makes the bail recoverable.Why this approach
For (1),
shouldHideOldAppRedirectalready encodes every legitimate reason to hide the redirect (isLockedToNewDot, 30-day cooldown, mobile lock); the additionalnudgeMigrationcheck is a behavioural assumption about how the user got to NewDot, not whether they're allowed back, and it produces exactly the trapped-user state in this report. The Troubleshoot page is precedent that the single gate is sufficient (src/pages/settings/Troubleshoot/TroubleshootPage.tsx:122-153).For (2), an alternative would be to drop the
isLoadingAppshort-circuit altogether, but that re-opens the onboarding task issue (#71742) and is a far broader change. AddingisLoadingAppto the existing effect's deps is local, costs at most one extraopenReportper session for affected users, and keeps every other effect in this component untouched. Together the two changes give the user (a) an unblocked report load when the app finishes initialising, and (b) a visible escape hatch on the main Settings page if they still want to bail to Classic.18 remaining items
Valforte commentedon May 15, 2026
Scratch that @tgolen I completely forgot I can see that in supportal
Valforte commentedon May 15, 2026
@nyomanjyotisa this is their nvp value:
nyomanjyotisa commentedon May 18, 2026
Based on the nvp,
shouldHideOldAppRedirectshould returnfalse, meaning the return to Classic button should already be visible on troubleshoot page for this user. I'll ask in the Slack thread for confirmationValforte commentedon May 18, 2026
Not overdue, being investigated
melvin-bot commentedon May 19, 2026
@Valforte @nyomanjyotisa this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
nyomanjyotisa commentedon May 21, 2026
Looks like the issue is no longer reproducible for the user based on this. I think we can close the issue and revisit it if there's another report about it @Valforte
melvin-bot commentedon May 21, 2026
@Valforte Whoops! This issue is 2 days overdue. Let's get this updated quick!