Skip to content

[$250] Card - User not taken to ND card details page after clicking "show details" in OD #93775

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.4.9-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #92837
Email or phone of affected tester (no customers): applausetester+piyoh@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Pull Request QA execution
Device used: iPhone 13 / iOS 26.5, Samsung A52 / Android 14
App Component: User Settings

Action Performed:

Preconditions:

  • Logged in to Expensifail account that has Expensify Card in wallet
  • Switch to Olddot

Steps:

  1. Navigate to settings
  2. Tap "connected Cards"
  3. Tap "Show Details" on Expensify Card

Expected Result:

User taken to ND card details page after tapping "Show Details" in OD

Actual Result:

User stays in OD with a magic code field displayed instead of taken to ND card details page

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7183000_1781664140144.ecard_ios.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Mita Rachim
Bug ID: 7183000

Upwork Automation - Do Not Edit

Activity

  1. added
    Daily
    Bug
    on Jun 17, 2026
  2. applause-bot commented on Jun 17, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/27940137840552ae5fd07eaad1b7437ed4c932ae9106e0774747fcf17a425eca

  3. MelvinBot commented on Jun 17, 2026

    @MelvinBot
    Contributor

    Issue Analysis

    Root Cause: This is an OldDot (HybridApp native) issue, not an App-side bug. The "Show Details" button on OD's Connected Cards page never hands off to NewDot for the US Expensify Card — instead it runs OD's own native reveal UI, which is why the user stays in OD looking at a magic-code field. The ND deep-link target and all the App-side plumbing are intact, so nothing in this repo can produce (or fix) the reported symptom.

    Why the fix is outside App: The magic-code field shown while still in OD can only be OD-native UI. ND's card-details screen and its US magic-code page only mount once ND is in the foreground, so if the user never leaves OD, ND code never ran. The handoff (suspending the OD activity + emitting a settings/card/<cardID> URL over the HybridApp bridge) is an OldDot responsibility.

    Recommended next step: Escalate to an internal engineer with Mobile-Expensify access. This belongs to the OldDot side of the same effort as #92837 (which only adjusted the in-ND MFA flow and did not touch the "Show Details" entry path). The OD "Connected Cards → Show Details" handler for the US Expensify Card needs to deep-link into ND (as the Wallet "Reveal" entry does) rather than invoking OD's legacy inline reveal.

    Investigation details (App-side evidence)

    Alternative explanation considered: Could the App side have a missing/incorrect route causing OD to bounce back? No — if OD launched ND with a bad URL, ND would open and show an error, not leave the user in OD with OD-native UI. The symptom rules out an App-side routing gap.

    Confidence: High that the App side is intact; the exact OD handler can only be confirmed inside Mobile-Expensify, which is not accessible here.


    Next Steps: This requires a Mobile-Expensify (OldDot) change and cannot be implemented from the App repo. Reply with @MelvinBot <feedback> to refine this analysis.

  4. added
    External
    on Jun 17, 2026
  5. added
    Help Wanted
    on Jun 17, 2026
  6. David-2002065 commented on Jun 17, 2026

    @David-2002065
    Contributor

    🚨 Edited by proposal-police: This proposal was edited at 2026-06-17 08:21:15 UTC.

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    In HybridApp, tapping "Show Details" on an Expensify Card under OldDot Settings → Connected Cards keeps the user in OldDot showing a magic-code field, instead of handing off to the NewDot card details page.

    What is the root cause of that problem?

    The screen the user is left on is OldDot's own native "reveal card details" page (the magic-code field), so OldDot never hands off to NewDot for this entry point — it falls through to its legacy inline reveal. This matches the automated Issue Analysis above: "This is an OldDot (HybridApp native) issue… the 'Show Details' button on OD's Connected Cards page never hands off to NewDot for the US Expensify Card."

    This is the same effort as PR #92837 (paired with Mobile-Expensify PR #13968), whose own QA steps state the intended behavior: "From OD → settings → Connected Cards → Click view details → You should be taken to ND Card details page". That work only re-pointed the Wallet → virtual card → "Reveal Details" button and adjusted the in-ND MFA flow; the Connected Cards → "Show Details" entry for the US Expensify Card was not migrated, so it still runs OldDot's inline reveal.

    The NewDot destination and reveal flow already exist and are fully wired, so nothing on the App side is broken or missing:

    • The domain-card detail route settings/card/:cardID resolves to ExpensifyCardPage:

      App/src/ROUTES.ts

      Lines 1209 to 1212 in fda079c

      SETTINGS_DOMAIN_CARD_DETAIL: {
      route: 'settings/card/:cardID?',
      getRoute: (cardID: string) => `settings/card/${cardID}` as const,
      },
    • Its "Reveal" button already drives the full reveal flow — UK/EU cards via the SCA/MFA scenario, all other Expensify cards via the NewDot magic-code page (SETTINGS_DOMAIN_CARD_CONFIRM_MAGIC_CODE):
      if (isUkEuExpensifyCard(card)) {
      executeScenario(CONST.MULTIFACTOR_AUTHENTICATION.SCENARIO.REVEAL_CARD_DETAILS, {
      cardID: String(card.cardID),
      });
      return;
      }
      resetValidateActionCodeSent();
      if (route.name === SCREENS.DOMAIN_CARD.DOMAIN_CARD_DETAIL) {
      Navigation.navigate(ROUTES.SETTINGS_DOMAIN_CARD_CONFIRM_MAGIC_CODE.getRoute(String(card.cardID)));

    So the only gap is that OldDot's Connected Cards "Show Details" button is not routed through the HybridApp deep-link into the above NewDot route.

    Note: it might look like the single-NewDot-entry guard in ScreenWrapper (usePreventRemove → closeReactNativeApp) is the culprit, since the US magic-code screens are not part of MFA_OVERLAY_SCREENS:

    usePreventRemove(isSingleNewDotEntry && doesInitialURLMatchActiveRoute && !shouldBlockSingleEntryOldAppExit, () => {
    if (!CONFIG.IS_HYBRID_APP) {
    return;
    }
    closeReactNativeApp({shouldSetNVP: false, isTrackingGPS: false});

    However, that guard only runs after NewDot has mounted and is in the foreground. In this bug the user never leaves OldDot — the magic-code field shown is OldDot-native UI — so NewDot code (and therefore this guard) never executes. The handoff is failing before NewDot is ever reached, which places the fix on the OldDot side.

    What changes do you think we should make in order to solve the problem?

    In Mobile-Expensify, route the Connected Cards → "Show Details" action (under CONFIG.IS_HYBRID_APP) through the same NewDot deep-link helper that the Wallet virtual-card "Reveal Details" button already uses in PR #13968, targeting the existing domain-card detail route:

    settings/card/:cardID   // ROUTES.SETTINGS_DOMAIN_CARD_DETAIL.getRoute(cardID)
    

    Once OldDot links there, the existing NewDot flow takes over end-to-end (detail page → "Reveal" → magic code / Face ID → details shown → tapping back returns to OldDot), so no further App change is required beyond what #92837 already landed. Reusing the existing virtual-card deep-link helper keeps the auth handoff, single-NewDot-entry behavior, and back navigation consistent across both card surfaces.

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    This is OldDot native deep-link wiring, so it is covered by manual/QA steps rather than App unit tests (mirroring the QA section of PR #92837): from OldDot → Settings → Connected Cards → "Show Details" on an Expensify Card, verify the user lands on the NewDot card details page (not an OldDot magic-code field), can reveal details, and that tapping back returns to OldDot. Run the same flow for a UK/EU card (Face ID/MFA) and a US card (magic code).

    What alternative solutions did you explore? (Optional)

    We could have OldDot deep-link straight to the reveal route (settings/card/:cardID/confirm-magic-code) instead of the detail page, but that skips the card details page the issue title expects and breaks back navigation, so deep-linking to SETTINGS_DOMAIN_CARD_DETAIL is the correct target.

  7. ahmdshrif commented on Jun 17, 2026

    @ahmdshrif
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    When a user clicks the "show details" link for an Expensify Card in OldDot (OD), they are not taken to the corresponding NewDot (ND) card details page. The deep-link either fails to resolve or lands on a screen that cannot render the card.

    What is the root cause of that problem?

    The OD "show details" link targets ND's dynamic deep-link route expensify-card-details/:cardID/:policyID, which requires both cardID and policyID path segments to resolve:

    App/src/ROUTES.ts

    Lines 588 to 592 in 7dbf6a5

    EXPENSIFY_CARD_DETAILS: {
    path: 'expensify-card-details/:cardID/:policyID',
    entryScreens: [SCREENS.WORKSPACE.EXPENSIFY_CARD, SCREENS.REPORT, SCREENS.RIGHT_MODAL.SEARCH_REPORT, SCREENS.RIGHT_MODAL.SEARCH_MONEY_REQUEST_REPORT, SCREENS.DYNAMIC_PROFILE],
    getRoute: (cardID: string, policyID: string) => `expensify-card-details/${cardID}/${policyID}` as const,
    },

    The link text is built in getCardIssuedMessage, where policyID defaults to '-1' when it is not supplied, and the route is composed from that value:

    const navigateRoute = shouldNavigateToCardDetails
    ? createDynamicRoute(DYNAMIC_ROUTES.EXPENSIFY_CARD_DETAILS.getRoute(String(cardID), policyID))
    : ROUTES.SETTINGS_DOMAIN_CARD_DETAIL.getRoute(String(cardID));
    const isExpensifyCardActive = isCardActive(expensifyCard);

    When the OD link arrives without a real policyID (OD knows the cardID but not the ND policyID), the produced URL is expensify-card-details/{cardID}/-1. The dynamic-route resolver (getStateForDynamicRoute) then cannot map it to a valid Expensify Card details screen for that policy, so the user is not navigated to the details page.

    What changes do you think we should make in order to solve the problem?

    Make the card-details deep-link resolvable from a cardID alone, then derive the policyID from the card's own data at resolution time, rather than requiring a valid policyID in the incoming OD link.

    Concretely, in the EXPENSIFY_CARD_DETAILS dynamic route / its resolver, when policyID is missing or -1, look up the policy from the card record (e.g. via the card's fundID/domainName → policy mapping) before building the navigation state:

    // resolve a valid policyID from the card when OD only provides cardID
    const resolvedPolicyID = policyID && policyID !== CONST.DEFAULT_NUMBER_ID.toString()
        ? policyID
        : getPolicyIDForCard(cardID);

    Regression check: verify the in-app "card issued" report-action link (which already passes a real policyID) still navigates correctly, and confirm the OD "show details" deep-link now lands on the ND Expensify Card details page.

  8. melvin-bot commented on Jun 17, 2026

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @QichenZhu (External)

  9. godzillaxbox19982014-lgtm commented on Jun 17, 2026

    @godzillaxbox19982014-lgtm

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Card - User not taken to ND card details page after clicking "show details" in OD

    What is the root cause of that problem?

    I traced this to the path that handles the issue-specific state:

    • src/pages/workspace/expensifyCard/DynamicWorkspaceSettlementAccountPage.tsx:61 (paymentBankAccountNumberFromCardSettings): const paymentBankAccountNumberFromCardSettings = settings?.paymentBankAccountNumber;
    • src/pages/workspace/expensifyCard/DynamicWorkspaceSettlementAccountPage.tsx:63 (paymentBankAccountNumber): const paymentBankAccountNumber = bankAccountsList?.[paymentBankAccountID?.toString() ?? '']?.accountData?.accountNumber ?? paymentBankAccountNumberFromCardSettings ?? '';
    • src/pages/workspace/expensifyCard/DynamicWorkspaceSettlementAccountPage.tsx:109 (translate): alternateText: '${translate('workspace.expensifyCard.accountEndingIn')} ${getLastFourDigits(paymentBankAccountNumberFromCardSettings ?? '')}',
    • The local evidence matches this recurring failure shape: NewDot and OldDot read different default account/card fields. Here, src/pages/workspace/expensifyCard/DynamicWorkspaceSettlementAccountPage.tsx:61 and src/pages/workspace/expensifyCard/DynamicWorkspaceSettlementAccountPage.tsx:63 do not agree on the same the issue-specific state value, so the user-visible path can show a missing or stale state even though nearby data already has the needed context.

    What changes do you think we should make in order to solve the problem?

    • Update src/pages/workspace/expensifyCard/DynamicWorkspaceSettlementAccountPage.tsx:61 to derive the issue-specific state from the card/accounting data source that owns this flow before the value is consumed.
    • Carry the same normalized value through src/pages/workspace/expensifyCard/DynamicWorkspaceSettlementAccountPage.tsx:63; that follows the safer family move to add fallback at the export/mapping layer, so the write/optimistic/read paths agree instead of only changing the visible component.
    • Keep the change inside the Payments, Wallet, Bank, Billing, Cards surface and avoid changing money movement, bank/card/account settings.

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    1. Add or update a regression in tests/unit/Payment*.ts for the exact issue flow: Card - User not taken to ND card details page after clicking "show details" in OD.
    2. Cover the counter-case near src/pages/workspace/expensifyCard/DynamicWorkspaceSettlementAccountPage.tsx:61 so valid existing the issue-specific state behavior still works.
    3. Manually repeat the issue steps after the patch and confirm the visible state/action is no longer stale.

    What alternative solutions did you explore? (Optional)

    • I would not add a broad new condition outside these referenced paths; the safer fix is to keep the issue-specific state consistent at the first read/write boundary shown above.
  10. changed the title [-]Card - User not taken to ND card details page after clicking "show details" in OD[/-] [+][$250] Card - User not taken to ND card details page after clicking "show details" in OD[/+] on Jun 17, 2026
  11. melvin-bot commented on Jun 17, 2026

    @melvin-bot
  12. yusufdeveloper2903 commented on Jun 17, 2026

    @yusufdeveloper2903
    Contributor

    Proposal

    What is the root cause of that problem?

    This is a HybridApp single‑NewDot‑entry problem, and the auto‑linked PR #92837 is the partial fix, not the root cause — it only covered one of the two reveal flows.

    When OD launches NewDot as a single deeplink entry (isSingleNewDotEntry), ScreenWrapper arms a usePreventRemove guard that intercepts the back/dismiss event and ejects the user back to OldDot via closeReactNativeApp:

    const route = useContext(NavigationRouteContext ?? FallbackRouteContext);
    const isMfaOverlayScreen = !!route && MFA_OVERLAY_SCREENS.has(route.name);
    usePreventRemove(isSingleNewDotEntry && doesInitialURLMatchActiveRoute && !shouldBlockSingleEntryOldAppExit && !isMfaOverlayScreen, () => {
    if (!CONFIG.IS_HYBRID_APP) {
    return;
    }
    closeReactNativeApp({shouldSetNVP: false, isTrackingGPS: false});
    });

    The guard is intentionally suppressed for the multifactor‑authentication overlay screens — that is exactly what #92837 added, via the isMfaOverlayScreen term and the MFA_OVERLAY_SCREENS set:

    const MFA_OVERLAY_SCREENS = new Set<string>([
    MFA_INITIAL_SCREEN,
    SCREENS.MULTIFACTOR_AUTHENTICATION.MAGIC_CODE,
    SCREENS.MULTIFACTOR_AUTHENTICATION.PROMPT,
    SCREENS.MULTIFACTOR_AUTHENTICATION.OUTCOME_SUCCESS,
    SCREENS.MULTIFACTOR_AUTHENTICATION.OUTCOME_FAILURE,
    ]);

    The problem: a card reveal has two code paths, and only the MFA one was excluded. In ExpensifyCardPage, a UK/EU card reveals through the MFA overlay (executeScenario(... REVEAL_CARD_DETAILS)), but a USD “Expensify Card” — the card in this report — reveals through the legacy magic‑code RHP route instead:

    if (isUkEuExpensifyCard(card)) {
    executeScenario(CONST.MULTIFACTOR_AUTHENTICATION.SCENARIO.REVEAL_CARD_DETAILS, {
    cardID: String(card.cardID),
    });
    return;
    }
    resetValidateActionCodeSent();
    if (route.name === SCREENS.DOMAIN_CARD.DOMAIN_CARD_DETAIL) {
    Navigation.navigate(ROUTES.SETTINGS_DOMAIN_CARD_CONFIRM_MAGIC_CODE.getRoute(String(card.cardID)));
    return;
    }
    Navigation.navigate(ROUTES.SETTINGS_WALLET_DOMAIN_CARD_CONFIRM_MAGIC_CODE.getRoute(String(card.cardID)));
    }}

    Those magic‑code screens are SCREENS.DOMAIN_CARD.DOMAIN_CARD_CONFIRM_MAGIC_CODE / SCREENS.SETTINGS.WALLET.DOMAIN_CARD_CONFIRM_MAGIC_CODE (rendered by ExpensifyCardVerifyAccountPage), and they are not members of MFA_OVERLAY_SCREENS:

    App/src/SCREENS.ts

    Lines 464 to 469 in 257cd2d

    DOMAIN_CARD: {
    DOMAIN_CARD_DETAIL: 'Domain_Card_Detail',
    DOMAIN_CARD_REPORT_FRAUD: 'Domain_Card_Report_Fraud',
    DOMAIN_CARD_UPDATE_ADDRESS: 'Domain_Card_Update_Address',
    DOMAIN_CARD_CONFIRM_MAGIC_CODE: 'Domain_Card_Confirm_Magic_Code',
    },

    So for the magic‑code reveal that OD’s “Show Details” lands on, isMfaOverlayScreen is false, doesInitialURLMatchActiveRoute is true (it is the deeplinked single entry), and the guard stays active. The moment that screen dismisses — ExpensifyCardVerifyAccountPage calls navigateBack() → Navigation.goBack() on both the success and the close handlers — the active guard preventDefault()s the pop and runs closeReactNativeApp, ejecting the user back to OldDot with the magic‑code field still on screen, instead of revealing the details on the ND card‑details page:

    const navigateBack = () => {
    if (route.name === SCREENS.DOMAIN_CARD.DOMAIN_CARD_CONFIRM_MAGIC_CODE) {
    Navigation.goBack(ROUTES.SETTINGS_DOMAIN_CARD_DETAIL.getRoute(cardID));
    return;
    }
    Navigation.goBack(ROUTES.SETTINGS_WALLET_DOMAIN_CARD.getRoute(cardID));
    };

    So: single‑entry deeplink into the USD‑card reveal → magic‑code screen is not excluded from the single‑entry guard (it’s only excluded for the UK/EU MFA overlay) → goBack/dismiss fires usePreventRemove → closeReactNativeApp → user stranded in OldDot on the magic‑code field. This is native‑only because closeReactNativeApp and isSingleNewDotEntry are HybridApp‑only — matching the iOS/Android‑App‑only reproduction.

    This is the same class of bug #92837 fixed for the Face‑ID (UK/EU) reveal; the magic‑code (USD) reveal is the sibling flow it missed.

    What changes do you think we should make in order to solve the problem?

    Reuse the exclusion mechanism #92837 already wired in, rather than adding new logic. Add the two card‑reveal magic‑code screens to the set the guard already consults via isMfaOverlayScreen:

    const isMfaOverlayScreen = !!route && MFA_OVERLAY_SCREENS.has(route.name);

    i.e. include SCREENS.DOMAIN_CARD.DOMAIN_CARD_CONFIRM_MAGIC_CODE and SCREENS.SETTINGS.WALLET.DOMAIN_CARD_CONFIRM_MAGIC_CODE in MFA_OVERLAY_SCREENS (or, to keep naming honest, introduce a sibling CARD_REVEAL_SCREENS set right next to it and OR it into the isMfaOverlayScreen check). With the guard suppressed on the magic‑code screen, ExpensifyCardVerifyAccountPage’s navigateBack() resolves normally to the ND card‑details route (SETTINGS_DOMAIN_CARD_DETAIL / SETTINGS_WALLET_DOMAIN_CARD) and the revealed PAN/CVV is shown, exactly as the QA steps in #92837 expect — and the existing single‑entry “back from the card‑details page returns to OldDot” behavior is untouched because the card‑details route stays guarded.

    Naming/placement (single shared MFA_OVERLAY_SCREENS vs. a dedicated card set) is a minor detail that can be settled in the PR phase.

    What alternative solutions did you explore? (Optional)

    Have OD deeplink to the card‑details route (settings/card/:cardID) instead of the reveal screen, so the user lands on the guarded card‑details page and triggers the reveal from there (where the magic‑code page is no longer the single entry, so the guard is already inactive on it). That avoids App changes but lives in Mobile‑Expensify, leaves the magic‑code screen guard‑sensitive for any future single‑entry deeplink, and doesn’t generalize; excluding the reveal screens from the guard in App fixes it at the actual convergence point for both deeplink shapes.

    Note to confirm in the PR: whether OD’s “Show Details” deeplinks directly to the magic‑code reveal route or to the card‑details route — the App fix above is correct in both cases, since it only removes the erroneous eject on the magic‑code screen.

  13. 12 remaining items

  14. QichenZhu commented on Jun 17, 2026

    @QichenZhu
    Contributor
  15. oqildev commented on Jun 17, 2026

    @oqildev
    Contributor

    Proposal

    What is the root cause of that problem?

    The magic-code field the tester is staring at is OldDot's own native web reveal form, rendered entirely inside OldDot. NewDot is never launched, so no App code on the reveal path ever runs — there's nothing here to fix.

    It's provably OD's form and not ND's: NewDot's card-reveal magic-code page (ExpensifyCardVerifyAccountPage → ValidateCodeActionContent) renders a HeaderWithBackButton plus a segmented MagicCodeInput, never a single plain text input with a green "Confirm" and a "magic code:" label.

    • ND's reveal page is header + ValidateCodeForm:
      import HeaderWithBackButton from '@components/HeaderWithBackButton';
      import ScreenWrapper from '@components/ScreenWrapper';
      import ScrollView from '@components/ScrollView';
      import Text from '@components/Text';
      import useOnyx from '@hooks/useOnyx';
      import useThemeStyles from '@hooks/useThemeStyles';
      import ONYXKEYS from '@src/ONYXKEYS';
      import type {ValidateCodeActionContentProps} from './type';
      import ValidateCodeForm from './ValidateCodeForm';
    • which renders a segmented MagicCodeInput:
      import MagicCodeInput from '@components/MagicCodeInput';
      import type {AutoCompleteVariant, MagicCodeInputHandle} from '@components/MagicCodeInput';

    The video shows the single-plain-input "Confirm" form, which ND simply doesn't render — so the user never left OldDot.

    The reason OD doesn't hand off is just sequencing: making "tap reveal in OD → land on the ND card-details page" work is a two-repo change — App #92837 (merged) plus Mobile-Expensify #13968 (the OldDot half). The assigned reviewer already pinned it: #13968 has not merged yet. Until it does, OD's Connected Cards "Show Details" keeps invoking its legacy inline reveal — which is exactly why this also repros in production.

    App #92837's two changes can't produce or fix this symptom, because both presuppose ND is already in the foreground:

    • the push-vs-replace for MFA outcome screens only touches the independent MFA overlay navigator, and
    • the single-entry usePreventRemove guard exclusion only runs on a mounted ND ScreenWrapper:
      const doesInitialURLMatchActiveRoute = !!initialURLWithoutParams?.endsWith(Navigation.getActiveRouteWithoutParams() || initialActiveRouteWithoutParams);
      // A multifactor authentication flow (e.g. Face ID to reveal UK/EU card details) renders in an independent navigation tree
      // overlaid above the single NewDot entry, and each MFA screen renders its own ScreenWrapper. Navigation.getActiveRouteWithoutParams()
      // still reports the underlying NewDot route while the overlay is up, so doesInitialURLMatchActiveRoute is true on the MFA screens too.
      // usePreventRemove calls e.preventDefault() unconditionally whenever the guard is active, so guarding these instances would consume the
      // MFA navigator's own stack actions (e.g. replacing the magic-code page with the Face ID prompt, or popping the outcome screen on close),
      // blocking transitions within the flow. Guard only the outer NewDot ScreenWrapper, never the ScreenWrappers inside the MFA overlay.
      // NavigationRouteContext is undefined when tests mock @react-navigation/native without re-exporting it, so fall back to a noop context to keep useContext valid.
      const route = useContext(NavigationRouteContext ?? FallbackRouteContext);
      const isMfaOverlayScreen = !!route && MFA_OVERLAY_SCREENS.has(route.name);
      usePreventRemove(isSingleNewDotEntry && doesInitialURLMatchActiveRoute && !shouldBlockSingleEntryOldAppExit && !isMfaOverlayScreen, () => {
      if (!CONFIG.IS_HYBRID_APP) {
      return;
      }
      closeReactNativeApp({shouldSetNVP: false, isTrackingGPS: false});
      });

    On top of that, the US Expensify Card doesn't even use the MFA overlay — it routes to the legacy magic-code page:

    if (isUkEuExpensifyCard(card)) {
    executeScenario(CONST.MULTIFACTOR_AUTHENTICATION.SCENARIO.REVEAL_CARD_DETAILS, {
    cardID: String(card.cardID),
    });
    return;
    }
    resetValidateActionCodeSent();
    if (route.name === SCREENS.DOMAIN_CARD.DOMAIN_CARD_DETAIL) {
    Navigation.navigate(ROUTES.SETTINGS_DOMAIN_CARD_CONFIRM_MAGIC_CODE.getRoute(String(card.cardID)));
    return;
    }
    Navigation.navigate(ROUTES.SETTINGS_WALLET_DOMAIN_CARD_CONFIRM_MAGIC_CODE.getRoute(String(card.cardID)));
    — and none of that runs when ND never launches.

    What changes do you think we should make in order to solve the problem?

    Fix layer: the OldDot→NewDot handoff in Mobile-Expensify #13968, not App.

    Route the Connected Cards → "Show Details" action (under CONFIG.IS_HYBRID_APP) through the same ND deep-link the Wallet virtual-card "Reveal Details" button already uses, targeting the existing card-details route settings/card/:cardID:

    App/src/ROUTES.ts

    Lines 1209 to 1212 in cbfad7a

    SETTINGS_DOMAIN_CARD_DETAIL: {
    route: 'settings/card/:cardID?',
    getRoute: (cardID: string) => `settings/card/${cardID}` as const,
    },

    Once OD links there, the existing ND flow takes over end to end — card-details page → "Reveal" → magic code (US) / Face ID (UK·EU) → details shown → tapping back returns to OldDot. App #92837 already landed the in-ND half, so no further App change is required.

    One thing I'd double-check on the OD side: that the Connected Cards entry wires up the US magic-code branch and not only the UK/EU Face-ID path, since the repro account is a US Expensify Card.

    What alternative solutions did you explore? (Optional)

    Exclude the card magic-code screens from the single-entry guard in App (the popular take — add DOMAIN_CARD_CONFIRM_MAGIC_CODE to MFA_OVERLAY_SCREENS at

    const MFA_OVERLAY_SCREENS = new Set<string>([
    MFA_INITIAL_SCREEN,
    SCREENS.MULTIFACTOR_AUTHENTICATION.MAGIC_CODE,
    SCREENS.MULTIFACTOR_AUTHENTICATION.PROMPT,
    SCREENS.MULTIFACTOR_AUTHENTICATION.OUTCOME_SUCCESS,
    SCREENS.MULTIFACTOR_AUTHENTICATION.OUTCOME_FAILURE,
    ]);
    ). Rejected twice over. First, ND never mounts in this repro, so the guard never runs — it can't be the cause. Second, it isn't needed even for the corrected flow: when OD deep-links to settings/card/:cardID, the guard's endsWith match (doesInitialURLMatchActiveRoute, ScreenWrapper L195) is true only on the details page; navigating to the child route settings/card/:cardID/confirm-magic-code makes it false, so the guard is already inactive on the magic-code page and navigateBack resolves normally (ExpensifyCardVerifyAccountPage L28-L35). It solves a problem that doesn't exist on the intended path.

    Resolve a missing policyID on the expensify-card-details/:cardID/:policyID route. Rejected: that's the in-app "card issued" report-action deep link — a different route from the settings/card/:cardID handoff the QA steps describe. It isn't on the Connected Cards path at all.

    Redirect the magic-code page to the details page on mount when it's the single NewDot entry. Rejected: it presupposes ND boots into the magic-code page, which isn't happening (ND never boots), and it isn't what #13968 targets — that PR deep-links to the details page directly, so the redirect would be dead code.

  16. github-actions commented on Jun 17, 2026

    @github-actions
    Contributor

    ⚠️ @oqildev 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.

  17. rafecolton commented on Jun 18, 2026

    @rafecolton
    Member
  18. QichenZhu commented on Jun 18, 2026

    @QichenZhu
    Contributor
  19. rafecolton commented on Jun 18, 2026

    @rafecolton
    Member

    @QichenZhu sure, if you could review it as well, that would be great

  20. QichenZhu commented on Jun 18, 2026

    @QichenZhu
    Contributor
  21. melvin-bot commented on Jun 23, 2026

    @melvin-bot

    @QichenZhu Eep! 4 days overdue now. Issues have feelings too...

  22. QichenZhu commented on Jun 24, 2026

    @QichenZhu
    Contributor
  23. melvin-bot commented on Jun 24, 2026

    @melvin-bot

    📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

  24. heekinho commented on Jun 24, 2026

    @heekinho
    Contributor

    This is done and deployed. Did we miss to close it?
    @QichenZhu feel free to reopen if I'm missing something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugDailyExternalHelp Wanted

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions