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] Card - User not taken to ND card details page after clicking "show details" in OD #93775
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: 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:
Navigate to settings
Tap "connected Cards"
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
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)
ND deep-link target exists and is correctly wired. OD should open SETTINGS_DOMAIN_CARD_DETAIL (settings/card/:cardID) → screen Domain_Card_Detail, rendered by ExpensifyCardPage. The route, linking config, and screen factory are all present.
HybridApp bridge is intact. OD→ND deep-links flow through HybridAppModule.getInitialURL() (src/setup/hybridApp/index.native.ts:9) and are consumed by DeepLinkHandler.tsx:53-94. For this to fire, OD must first hand control to ND — it apparently doesn't for this button.
US vs UK/EU reveal split is App-side and correct.ExpensifyCardPage/index.tsx:483-494: UK/EU cards use the MFA overlay; US cards navigate to the magic-code RHP page. This only runs inside ND, after handoff.
Adjust MFA flow for hybrid #92837 cannot be the cause. Its two changed files (mfaNavigation.ts HybridApp push-vs-replace for outcome screens, and ScreenWrapper/index.tsx usePreventRemove guard) only affect the in-ND MFA overlay (UK/EU/biometric path). The US magic-code page isn't in MFA_OVERLAY_SCREENS, and neither file touches the OD "Show Details" entry path.
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.
🚨 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:
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):
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:
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:
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.
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:
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 cardIDconstresolvedPolicyID=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.
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?
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.
Cover the counter-case near src/pages/workspace/expensifyCard/DynamicWorkspaceSettlementAccountPage.tsx:61 so valid existing the issue-specific state behavior still works.
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.
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
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:
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:
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:
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:
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:
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:
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.
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.
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:
// 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.
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:
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
). 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.
⚠️@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.
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
applause-bot commentedon Jun 17, 2026
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
MelvinBot commentedon Jun 17, 2026
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)
SETTINGS_DOMAIN_CARD_DETAIL(settings/card/:cardID) → screenDomain_Card_Detail, rendered byExpensifyCardPage. The route, linking config, and screen factory are all present.HybridAppModule.getInitialURL()(src/setup/hybridApp/index.native.ts:9) and are consumed byDeepLinkHandler.tsx:53-94. For this to fire, OD must first hand control to ND — it apparently doesn't for this button.ExpensifyCardPage/index.tsx:483-494: UK/EU cards use the MFA overlay; US cards navigate to the magic-code RHP page. This only runs inside ND, after handoff.mfaNavigation.tsHybridApp push-vs-replace for outcome screens, andScreenWrapper/index.tsxusePreventRemove guard) only affect the in-ND MFA overlay (UK/EU/biometric path). The US magic-code page isn't inMFA_OVERLAY_SCREENS, and neither file touches the OD "Show Details" entry path.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.David-2002065 commentedon Jun 17, 2026
🚨 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:
settings/card/:cardIDresolves toExpensifyCardPage:App/src/ROUTES.ts
Lines 1209 to 1212 in fda079c
SETTINGS_DOMAIN_CARD_CONFIRM_MAGIC_CODE):App/src/pages/settings/Wallet/ExpensifyCardPage/index.tsx
Lines 483 to 492 in fda079c
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 ofMFA_OVERLAY_SCREENS:App/src/components/ScreenWrapper/index.tsx
Lines 193 to 197 in fda079c
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: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 toSETTINGS_DOMAIN_CARD_DETAILis the correct target.ahmdshrif commentedon Jun 17, 2026
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 bothcardIDandpolicyIDpath segments to resolve:App/src/ROUTES.ts
Lines 588 to 592 in 7dbf6a5
The link text is built in
getCardIssuedMessage, wherepolicyIDdefaults to'-1'when it is not supplied, and the route is composed from that value:App/src/libs/ReportActionsUtils.ts
Lines 4477 to 4480 in 7dbf6a5
When the OD link arrives without a real
policyID(OD knows thecardIDbut not the NDpolicyID), the produced URL isexpensify-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
cardIDalone, then derive thepolicyIDfrom the card's own data at resolution time, rather than requiring a validpolicyIDin the incoming OD link.Concretely, in the EXPENSIFY_CARD_DETAILS dynamic route / its resolver, when
policyIDis missing or-1, look up the policy from the card record (e.g. via the card'sfundID/domainName→ policy mapping) before building the navigation state: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.melvin-bot commentedon Jun 17, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @QichenZhu (
External)godzillaxbox19982014-lgtm commentedon Jun 17, 2026
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:paymentBankAccountNumberFromCardSettings):const paymentBankAccountNumberFromCardSettings = settings?.paymentBankAccountNumber;paymentBankAccountNumber):const paymentBankAccountNumber = bankAccountsList?.[paymentBankAccountID?.toString() ?? '']?.accountData?.accountNumber ?? paymentBankAccountNumberFromCardSettings ?? '';translate):alternateText: '${translate('workspace.expensifyCard.accountEndingIn')} ${getLastFourDigits(paymentBankAccountNumberFromCardSettings ?? '')}',src/pages/workspace/expensifyCard/DynamicWorkspaceSettlementAccountPage.tsx:61andsrc/pages/workspace/expensifyCard/DynamicWorkspaceSettlementAccountPage.tsx:63do not agree on the samethe issue-specific statevalue, 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?
src/pages/workspace/expensifyCard/DynamicWorkspaceSettlementAccountPage.tsx:61to derivethe issue-specific statefrom the card/accounting data source that owns this flow before the value is consumed.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.What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
tests/unit/Payment*.tsfor the exact issue flow: Card - User not taken to ND card details page after clicking "show details" in OD.src/pages/workspace/expensifyCard/DynamicWorkspaceSettlementAccountPage.tsx:61so valid existingthe issue-specific statebehavior still works.What alternative solutions did you explore? (Optional)
the issue-specific stateconsistent at the first read/write boundary shown above.[-]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[/+]melvin-bot commentedon Jun 17, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022067157864789538003
yusufdeveloper2903 commentedon Jun 17, 2026
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),ScreenWrapperarms ausePreventRemoveguard that intercepts the back/dismiss event and ejects the user back to OldDot viacloseReactNativeApp:App/src/components/ScreenWrapper/index.tsx
Lines 204 to 213 in 257cd2d
The guard is intentionally suppressed for the multifactor‑authentication overlay screens — that is exactly what #92837 added, via the
isMfaOverlayScreenterm and theMFA_OVERLAY_SCREENSset:App/src/components/MultifactorAuthentication/mfaNavigation.ts
Lines 27 to 33 in 257cd2d
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:App/src/pages/settings/Wallet/ExpensifyCardPage/index.tsx
Lines 483 to 496 in 257cd2d
Those magic‑code screens are
SCREENS.DOMAIN_CARD.DOMAIN_CARD_CONFIRM_MAGIC_CODE/SCREENS.SETTINGS.WALLET.DOMAIN_CARD_CONFIRM_MAGIC_CODE(rendered byExpensifyCardVerifyAccountPage), and they are not members ofMFA_OVERLAY_SCREENS:App/src/SCREENS.ts
Lines 464 to 469 in 257cd2d
So for the magic‑code reveal that OD’s “Show Details” lands on,
isMfaOverlayScreenisfalse,doesInitialURLMatchActiveRouteistrue(it is the deeplinked single entry), and the guard stays active. The moment that screen dismisses —ExpensifyCardVerifyAccountPagecallsnavigateBack()→Navigation.goBack()on both the success and the close handlers — the active guardpreventDefault()s the pop and runscloseReactNativeApp, 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:App/src/pages/settings/Wallet/ExpensifyCardPage/ExpensifyCardVerifyAccountPage.tsx
Lines 29 to 35 in 257cd2d
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 firesusePreventRemove→closeReactNativeApp→ user stranded in OldDot on the magic‑code field. This is native‑only becausecloseReactNativeAppandisSingleNewDotEntryare 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:App/src/components/ScreenWrapper/index.tsx
Line 205 in 257cd2d
i.e. include
SCREENS.DOMAIN_CARD.DOMAIN_CARD_CONFIRM_MAGIC_CODEandSCREENS.SETTINGS.WALLET.DOMAIN_CARD_CONFIRM_MAGIC_CODEinMFA_OVERLAY_SCREENS(or, to keep naming honest, introduce a siblingCARD_REVEAL_SCREENSset right next to it and OR it into theisMfaOverlayScreencheck). With the guard suppressed on the magic‑code screen,ExpensifyCardVerifyAccountPage’snavigateBack()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_SCREENSvs. 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.12 remaining items
QichenZhu commentedon Jun 17, 2026
This PR has not been merged yet: https://github.com/Expensify/Mobile-Expensify/pull/13968.
cc @heekinho @madmax330
oqildev commentedon Jun 17, 2026
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 aHeaderWithBackButtonplus a segmentedMagicCodeInput, never a single plain text input with a green "Confirm" and a "magic code:" label.ValidateCodeForm:App/src/components/ValidateCodeActionModal/ValidateCodeActionContent.tsx
Lines 3 to 11 in cbfad7a
MagicCodeInput:App/src/components/ValidateCodeActionModal/ValidateCodeForm/BaseValidateCodeForm.tsx
Lines 8 to 9 in cbfad7a
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:
usePreventRemoveguard exclusion only runs on a mounted NDScreenWrapper:App/src/components/ScreenWrapper/index.tsx
Lines 195 to 213 in cbfad7a
On top of that, the US Expensify Card doesn't even use the MFA overlay — it routes to the legacy magic-code page:
App/src/pages/settings/Wallet/ExpensifyCardPage/index.tsx
Lines 483 to 495 in cbfad7a
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 routesettings/card/:cardID:App/src/ROUTES.ts
Lines 1209 to 1212 in cbfad7a
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_CODEtoMFA_OVERLAY_SCREENSatApp/src/components/MultifactorAuthentication/mfaNavigation.ts
Lines 27 to 33 in cbfad7a
settings/card/:cardID, the guard'sendsWithmatch (doesInitialURLMatchActiveRoute, ScreenWrapper L195) is true only on the details page; navigating to the child routesettings/card/:cardID/confirm-magic-codemakes it false, so the guard is already inactive on the magic-code page andnavigateBackresolves normally (ExpensifyCardVerifyAccountPage L28-L35). It solves a problem that doesn't exist on the intended path.Resolve a missing
policyIDon theexpensify-card-details/:cardID/:policyIDroute. Rejected: that's the in-app "card issued" report-action deep link — a different route from thesettings/card/:cardIDhandoff 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.
github-actions commentedon Jun 17, 2026
rafecolton commentedon Jun 18, 2026
@heekinho is this already fixed by https://github.com/Expensify/Mobile-Expensify/pull/13968?
QichenZhu commentedon Jun 18, 2026
@rafecolton I can help test https://github.com/Expensify/Mobile-Expensify/pull/13968 if needed.
rafecolton commentedon Jun 18, 2026
@QichenZhu sure, if you could review it as well, that would be great
QichenZhu commentedon Jun 18, 2026
On it! @rafecolton
melvin-bot commentedon Jun 23, 2026
@QichenZhu Eep! 4 days overdue now. Issues have feelings too...
QichenZhu commentedon Jun 24, 2026
Fixed via https://github.com/Expensify/Mobile-Expensify/pull/13968.
melvin-bot commentedon Jun 24, 2026
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
heekinho commentedon Jun 24, 2026
This is done and deployed. Did we miss to close it?
@QichenZhu feel free to reopen if I'm missing something.