Skip to content

Apply MFA flow to revealing virtual card details for EU/UK cards - #91228

Merged
chuckdries merged 6 commits into
Expensify:mainfrom
DylanDylann:reveal-card-details-sca
May 22, 2026
Merged

Apply MFA flow to revealing virtual card details for EU/UK cards#91228
chuckdries merged 6 commits into
Expensify:mainfrom
DylanDylann:reveal-card-details-sca

Conversation

@DylanDylann

@DylanDylann DylanDylann commented May 20, 2026

Copy link
Copy Markdown
Contributor

Explanation of Change

Fixed Issues

$ #91028
PROPOSAL:

Tests

  • Verify that no errors appear in the JS console

Offline tests

QA Steps

Assign to @joekaufmanexpensify for QA

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
      • If any non-english text was added/modified, I used JaimeGPT to get English > Spanish translation. I then posted it in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Screen.Recording.2026-05-21.at.16.04.36.mov
Screen.Recording.2026-05-21.at.16.01.26.mov
Screen.Recording.2026-05-21.at.16.01.26.mov

@DylanDylann
DylanDylann requested review from a team as code owners May 20, 2026 18:08
@melvin-bot
melvin-bot Bot requested review from abzokhattab and trjExpensify and removed request for a team May 20, 2026 18:08
@melvin-bot

melvin-bot Bot commented May 20, 2026

Copy link
Copy Markdown

@abzokhattab Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@DylanDylann
DylanDylann marked this pull request as draft May 20, 2026 18:13
Comment thread src/libs/CardUtils.ts

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 60ea2d1323

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

const cvv = typeof callbackInput.body?.cvv === 'string' ? callbackInput.body.cvv : '';
setRevealedCardDetails(payload.cardID, {pan, expiration, cvv});
Navigation.closeRHPFlow();
Navigation.navigate(ROUTES.SETTINGS_WALLET_DOMAIN_CARD.getRoute(String(payload.cardID)));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve source navigator after successful SCA reveal

After a successful SCA reveal, this callback always routes to SETTINGS_WALLET_DOMAIN_CARD, which changes behavior for users who started from SCREENS.DOMAIN_CARD.DOMAIN_CARD_DETAIL (RHP flow). The previous magic-code flow preserved context by navigating back within the current navigator, so this introduces a UX/navigation regression where domain-card users are forced out of their current stack after reveal.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine to navigate to SETTINGS_WALLET_DOMAIN_CARD in both cases, like we do in other scenarios. I'll revisit this if anyone disagrees

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine too but unresolving so @joekaufmanexpensify can review

@codecov

codecov Bot commented May 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.

Files with missing lines Coverage Δ
...ultifactorAuthentication/config/scenarios/index.ts 100.00% <ø> (ø)
...ultifactorAuthentication/config/scenarios/names.ts 100.00% <ø> (ø)
src/libs/API/types.ts 100.00% <ø> (ø)
src/libs/CardUtils.ts 81.54% <100.00%> (ø)
...rc/libs/MultifactorAuthentication/shared/VALUES.ts 100.00% <ø> (ø)
...actorAuthentication/config/scenarios/RevealPIN.tsx 16.66% <0.00%> (ø)
src/selectors/Card.ts 89.47% <0.00%> (-0.27%) ⬇️
src/libs/RevealedCardSecretsStore.ts 86.66% <86.66%> (ø)
.../pages/settings/Wallet/ExpensifyCardPage/index.tsx 73.40% <54.54%> (-0.23%) ⬇️
...rc/libs/actions/MultifactorAuthentication/index.ts 13.93% <0.00%> (-1.39%) ⬇️
... and 1 more
... and 69 files with indirect coverage changes

@melvin-bot

melvin-bot Bot commented May 21, 2026

Copy link
Copy Markdown

Hey, I noticed you changed src/languages/en.ts in a PR from a fork. For security reasons, translations are not generated automatically for PRs from forks.

If you want to automatically generate translations for other locales, an Expensify employee will have to:

  1. Look at the code and make sure there are no malicious changes.
  2. Run the Generate static translations GitHub workflow. If you have write access and the K2 extension, you can simply click: [this button]

Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running:

npx ts-node ./scripts/generateTranslations.ts --help

Typically, you'd want to translate only what you changed by running npx ts-node ./scripts/generateTranslations.ts --compare-ref main

@DylanDylann
DylanDylann marked this pull request as ready for review May 21, 2026 08:55
@DylanDylann

Copy link
Copy Markdown
Contributor Author

@abzokhattab Let's ignore this PR

@DylanDylann

Copy link
Copy Markdown
Contributor Author

@chuckdries Could you review this PR?

@DylanDylann

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e82463ac88

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@DylanDylann

Copy link
Copy Markdown
Contributor Author

Apply translation diff will resolve all failed checks

@OSBotify

Copy link
Copy Markdown
Contributor

🦜 Polyglot Parrot! 🦜

Squawk! Looks like you added some shiny new English strings. Allow me to parrot them back to you in other tongues:

View the translation diff
diff --git a/src/languages/de.ts b/src/languages/de.ts
index c77a6ba1..da1c4b30 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -694,6 +694,7 @@ const translations: TranslationDeepObject<typeof en> = {
         setPin: {didNotShipCard: 'Wir haben Ihre Karte nicht versendet. Bitte versuchen Sie es erneut.'},
         revealPin: {couldNotReveal: 'Wir konnten Ihre PIN nicht anzeigen. Bitte versuchen Sie es erneut.'},
         changePin: {didNotChange: 'Wir haben Ihre PIN nicht geändert. Bitte versuchen Sie es erneut.'},
+        revealCardDetail: {couldNotReveal: 'Wir konnten Ihre Kartendaten nicht anzeigen. Bitte versuchen Sie es noch einmal.'},
     },
     validateCodeModal: {
         successfulSignInTitle: dedent(`
diff --git a/src/languages/es.ts b/src/languages/es.ts
index cfcfe238..b857d546 100644
--- a/src/languages/es.ts
+++ b/src/languages/es.ts
@@ -652,6 +652,7 @@ const translations: TranslationDeepObject<typeof en> = {
         changePin: {
             didNotChange: 'No pudimos cambiar tu PIN. Por favor, inténtalo de nuevo.',
         },
+        revealCardDetail: {couldNotReveal: 'No hemos podido mostrar los datos de tu tarjeta. Por favor, inténtalo de nuevo.'},
     },
     validateCodeModal: {
         successfulSignInTitle: 'Abracadabra,\n¡sesión iniciada!',
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index f217296b..b31fd42e 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -696,6 +696,7 @@ const translations: TranslationDeepObject<typeof en> = {
         setPin: {didNotShipCard: 'Nous n’avons pas envoyé votre carte. Veuillez réessayer.'},
         revealPin: {couldNotReveal: "Nous n'avons pas pu afficher votre code PIN. Veuillez réessayer."},
         changePin: {didNotChange: "Nous n'avons pas modifié votre code PIN. Veuillez réessayer."},
+        revealCardDetail: {couldNotReveal: 'Nous n’avons pas pu afficher les détails de votre carte. Veuillez réessayer.'},
     },
     validateCodeModal: {
         successfulSignInTitle: dedent(`
diff --git a/src/languages/it.ts b/src/languages/it.ts
index 04714349..2eaf05bb 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -695,6 +695,7 @@ const translations: TranslationDeepObject<typeof en> = {
         setPin: {didNotShipCard: 'Non abbiamo spedito la tua carta. Riprova.'},
         revealPin: {couldNotReveal: 'Non siamo riusciti a mostrare il tuo PIN. Riprova.'},
         changePin: {didNotChange: 'Non abbiamo modificato il tuo PIN. Riprova.'},
+        revealCardDetail: {couldNotReveal: 'Non siamo riusciti a mostrare i dettagli della tua carta. Riprova.'},
     },
     validateCodeModal: {
         successfulSignInTitle: dedent(`
diff --git a/src/languages/ja.ts b/src/languages/ja.ts
index c6ee83df..281c3b62 100644
--- a/src/languages/ja.ts
+++ b/src/languages/ja.ts
@@ -683,6 +683,7 @@ const translations: TranslationDeepObject<typeof en> = {
         setPin: {didNotShipCard: 'カードを発送できませんでした。もう一度お試しください。'},
         revealPin: {couldNotReveal: 'PIN を表示できませんでした。もう一度お試しください。'},
         changePin: {didNotChange: 'お客様の暗証番号は変更されていません。もう一度お試しください。'},
+        revealCardDetail: {couldNotReveal: 'カード情報を表示できませんでした。もう一度お試しください。'},
     },
     validateCodeModal: {
         successfulSignInTitle: dedent(`
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index 891386fd..3159959a 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -693,6 +693,7 @@ const translations: TranslationDeepObject<typeof en> = {
         setPin: {didNotShipCard: 'We hebben je kaart niet verzonden. Probeer het opnieuw.'},
         revealPin: {couldNotReveal: 'We konden je pincode niet tonen. Probeer het opnieuw.'},
         changePin: {didNotChange: 'We hebben je pincode niet gewijzigd. Probeer het opnieuw.'},
+        revealCardDetail: {couldNotReveal: 'We konden je kaartgegevens niet weergeven. Probeer het opnieuw.'},
     },
     validateCodeModal: {
         successfulSignInTitle: dedent(`
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index 91459e08..68c68fb0 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -694,6 +694,7 @@ const translations: TranslationDeepObject<typeof en> = {
         setPin: {didNotShipCard: 'Nie wysłaliśmy twojej karty. Spróbuj ponownie.'},
         revealPin: {couldNotReveal: 'Nie udało się wyświetlić twojego PIN-u. Spróbuj ponownie.'},
         changePin: {didNotChange: 'Nie zmieniliśmy twojego PIN-u. Spróbuj ponownie.'},
+        revealCardDetail: {couldNotReveal: 'Nie udało się wyświetlić szczegółów Twojej karty. Spróbuj ponownie.'},
     },
     validateCodeModal: {
         successfulSignInTitle: dedent(`
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index 535659f2..ecfa4dfe 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -692,6 +692,7 @@ const translations: TranslationDeepObject<typeof en> = {
         setPin: {didNotShipCard: 'Não enviamos seu cartão. Tente novamente.'},
         revealPin: {couldNotReveal: 'Não foi possível revelar seu PIN. Tente novamente.'},
         changePin: {didNotChange: 'Nós não alteramos seu PIN. Tente novamente.'},
+        revealCardDetail: {couldNotReveal: 'Não foi possível exibir os detalhes do seu cartão. Tente novamente.'},
     },
     validateCodeModal: {
         successfulSignInTitle: dedent(`
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index 3c9e8607..e8a84a0b 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -673,6 +673,7 @@ const translations: TranslationDeepObject<typeof en> = {
         setPin: {didNotShipCard: '我们未能寄出您的卡。请重试。'},
         revealPin: {couldNotReveal: '我们无法显示您的 PIN。请重试。'},
         changePin: {didNotChange: '我们未更改您的 PIN。请重试。'},
+        revealCardDetail: {couldNotReveal: '我们无法显示您的卡片详情。请重试。'},
     },
     validateCodeModal: {
         successfulSignInTitle: dedent(`

Note

You can apply these changes to your branch by copying the patch to your clipboard, then running pbpaste | git apply 😉

View workflow run

@rafecolton rafecolton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only thing I notice is that when authentication fails and I tap Got it, it closes the RHP, which navigates the user away from the card details. Would it be possible to have the user return to the card details page instead?

NAB though. Assigning a few other reviewers

const cvv = typeof callbackInput.body?.cvv === 'string' ? callbackInput.body.cvv : '';
setRevealedCardDetails(payload.cardID, {pan, expiration, cvv});
Navigation.closeRHPFlow();
Navigation.navigate(ROUTES.SETTINGS_WALLET_DOMAIN_CARD.getRoute(String(payload.cardID)));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine too but unresolving so @joekaufmanexpensify can review

@rafecolton
rafecolton requested review from a team and joekaufmanexpensify and removed request for trjExpensify May 21, 2026 17:00
@rafecolton
rafecolton requested a review from chuckdries May 21, 2026 17:01
@rafecolton

Copy link
Copy Markdown
Member

@abzokhattab ready for you to complete the reviewer checklist 😊

@chuckdries

Copy link
Copy Markdown
Contributor

Only thing I notice is that when authentication fails and I tap Got it, it closes the RHP, which navigates the user away from the card details. Would it be possible to have the user return to the card details page instead?

This will probably be fixed when we rebase #89992

@chuckdries

Copy link
Copy Markdown
Contributor

I'll take care of the checklist - I don't think @abzokhattab has access to UK E-cards and I still haven't gotten a sandbox workspace working in staging yet

@chuckdries

Copy link
Copy Markdown
Contributor

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp
MFA.for.reveal.card.details.android.mp4
Android: mWeb Chrome
MFA.for.reveal.card.details.android.chrome.mp4
iOS: HybridApp
MFA.for.reveal.card.details.ios.mp4
iOS: mWeb Safari
MFA.for.reveal.card.details.ios.safari.mp4
MacOS: Chrome / Safari
MFA.for.reveal.card.details.macos.chrome.mp4

@github-actions

Copy link
Copy Markdown
Contributor

🚧 @rafecolton has triggered a test Expensify/App build. You can view the workflow run here.

@dannymcclain

dannymcclain commented May 21, 2026

Copy link
Copy Markdown
Contributor

Looking good! I agree with Rafe's comment about the RHP, but NAB.

@github-actions

This comment has been minimized.

@joekaufmanexpensify

Copy link
Copy Markdown
Contributor

Changes are generally working well for me. One thing I did notice testing on web is the screen "flashes" a bit when transitioning from the passkey authentication modal to showing the virtual card details with UK/EU on the adhoc. It's not really an issue per se, but it's definitely noticeable if you test it right after revealing card details on a US virtual card. Is anyone else seeing this?

@chuckdries

Copy link
Copy Markdown
Contributor

on web is the screen "flashes" a bit when transitioning from the passkey authentication modal to showing the virtual card details with UK/EU

I didn't actually notice this when I was testing yesterday, but looking back at the videos I recorded I do see it.

@joekaufmanexpensify

Copy link
Copy Markdown
Contributor

Not a huge deal, but if we can easily fix it, that feels ideal IMO.

@chuckdries

chuckdries commented May 22, 2026

Copy link
Copy Markdown
Contributor

If nobody objects by 11am PST, I am going to merge this PR despite the NABs. It's going to cause conflicts on #89992, but that PR totally changes the structure of MFA navigation in a way that will change how both of the NABs need to be handled, and this PR is further along than that one so I think it makes sense to merge first.

@DylanDylann

Copy link
Copy Markdown
Contributor Author

@joekaufmanexpensify I didn't notice this problem. Could you please clarify it? It would be helpful if you could point it out in the video. From my initial assessment, I think this flaky problem might be resolved by #89992

@chuckdries

chuckdries commented May 22, 2026

Copy link
Copy Markdown
Contributor

@DylanDylann it's visible in the macos chrome video in my review checklist. The whole page flashes just before the MFA prompt page starts to animate away after the passkey auth succeeds. I've recorded video of me scrubbing through the screen recording to try to show it better

mfa.for.reveal.card.details.flash.mp4

@joekaufmanexpensify

Copy link
Copy Markdown
Contributor

I am hesitant to post a video from my staging account because it contains real cards. What I am describing is visible in the web video you posted screenshots/videos section of the PR. Right after authenticating via passkeys the entire screen flashes as the modal is closing. LMK if that helps!

@DylanDylann

Copy link
Copy Markdown
Contributor Author

Ah, we're seeing a flash on the background. I'm not 100% sure about the root cause, but I think it's caused by triggering the RHP modal dismissal right after navigating to a new screen. This navigation logic will change after the MFA navigation refactor. Should we move forward here and revisit this in the MFA navigation PR?

@chuckdries
chuckdries merged commit 0b7e3a9 into Expensify:main May 22, 2026
40 of 42 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🚧 @chuckdries has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/chuckdries in version: 9.3.80-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@MelvinBot

Copy link
Copy Markdown
Contributor

I reviewed the PR changes and the existing help site documentation.

Finding: No help site changes are required.

The relevant article (Cardholder Settings and Features) describes the "View your virtual card details" flow as:

  1. Go to Account > Wallet
  2. Click your Expensify Card
  3. Click Reveal Details

This PR changes the backend authentication mechanism for EU/UK cards (magic code → biometric MFA), but the user-visible steps, button labels, and navigation paths remain the same. The existing docs don't mention the specific authentication method, so they remain accurate.

@kavimuru

Copy link
Copy Markdown

@joekaufmanexpensify tagging you as per the QA step.

@rafecolton

Copy link
Copy Markdown
Member

@kavimuru this one passes QA ✅

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.81-2 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants