Skip to content

Reveal PIN + Change pin#84120

Open
DylanDylann wants to merge 27 commits intoExpensify:mainfrom
DylanDylann:release-3-change-pin
Open

Reveal PIN + Change pin#84120
DylanDylann wants to merge 27 commits intoExpensify:mainfrom
DylanDylann:release-3-change-pin

Conversation

@DylanDylann
Copy link
Contributor

@DylanDylann DylanDylann commented Mar 4, 2026

Explanation of Change

This PR implements the "Reveal PIN" feature and "Change PIN" feature for UK/EU Expensify Card holders
Document: Release 2 of UK/EU PIN Management

Fixed Issues

$ #80553
PROPOSAL:

Tests

  • Verify that no errors appear in the JS console

Offline tests

QA Steps

// TODO: These must be filled out, or the issue title must include "[No 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

Reveal PIN

Screen.Recording.2026-03-17.at.01.34.40.mov
Screen.Recording.2026-03-17.at.01.34.54.mov

Change PIN

Screen.Recording.2026-03-17.at.01.51.51.mov
Screen.Recording.2026-03-17.at.01.51.24.mov

@DylanDylann DylanDylann requested review from a team as code owners March 4, 2026 08:40
@melvin-bot melvin-bot bot requested review from ChavdaSachin and joekaufmanexpensify and removed request for a team March 4, 2026 08:40
@melvin-bot
Copy link

melvin-bot bot commented Mar 4, 2026

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

@melvin-bot
Copy link

melvin-bot bot commented Mar 4, 2026

@ChavdaSachin 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]

@melvin-bot melvin-bot bot removed the request for review from a team March 4, 2026 08:40
@DylanDylann
Copy link
Contributor Author

@ChavdaSachin Please ignore this PR

@codecov
Copy link

codecov bot commented Mar 4, 2026

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
src/SCREENS.ts 100.00% <ø> (ø)
...actorAuthentication/config/scenarios/ChangePIN.tsx 100.00% <100.00%> (ø)
...uthentication/config/scenarios/SetPINOrderCard.tsx 63.63% <100.00%> (ø)
...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 83.46% <100.00%> (ø)
...ibs/MultifactorAuthentication/Biometrics/VALUES.ts 100.00% <ø> (ø)
...bs/MultifactorAuthentication/Biometrics/helpers.ts 97.14% <100.00%> (ø)
...on/AppNavigator/Navigators/RightModalNavigator.tsx 5.49% <ø> (ø)
... and 12 more
... and 12 files with indirect coverage changes

Copy link

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

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: e6bc0f58ff

ℹ️ 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 DylanDylann force-pushed the release-3-change-pin branch from e6bc0f5 to 4ad284c Compare March 4, 2026 10:36
@DylanDylann
Copy link
Contributor Author

@chuckdries @JakubKorytko @dariusz-biela Please only review one last commit because I checked out from the reveal-pin branch

Copy link
Contributor

@JakubKorytko JakubKorytko left a comment

Choose a reason for hiding this comment

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

Some comments, otherwise LGTM

@DylanDylann DylanDylann changed the title Change pin Reveal PIN + Change pin Mar 12, 2026
@DylanDylann
Copy link
Contributor Author

@codex review

@DylanDylann
Copy link
Contributor Author

@MelvinBot Please review the PR

@github-actions
Copy link
Contributor

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

@MelvinBot
Copy link
Contributor

🔍 PR Review

Overall the architecture is solid — using useSyncExternalStore for the in-memory PIN store (PCI compliance), gating features via supportsPINManagementFeatures, and following the existing MultifactorAuthentication scenario pattern. A few issues to address:


1. Bug: Swapped title labels in ChangePinPage.tsx

File: src/pages/settings/Wallet/ExpensifyCardPage/ChangePinPage.tsx:81

The ternary for the title text is backwards:

// Current (wrong):
const title = isConfirmStep ? translate('cardPage.changeYourPin') : translate('cardPage.confirmYourChangedPin');

// Should be:
const title = isConfirmStep ? translate('cardPage.confirmYourChangedPin') : translate('cardPage.changeYourPin');

When isConfirmStep is false (first step), users see "Confirm your new PIN" instead of "Enter a new PIN for your card." When isConfirmStep is true (confirm step), they see "Enter a new PIN" instead of "Confirm your new PIN."

Evidence: The button text ternary on line 131 (isConfirmStep ? 'Confirm' : 'Next') and the handlePinChange logic (line 35: isConfirmStep ? setConfirmPin : setEnteredPin) both correctly map isConfirmStep=false → first step and isConfirmStep=true → confirm step, but the title does the opposite.


2. Stale JSDoc + dead code in ChangePin.tsx

File: src/components/MultifactorAuthentication/config/scenarios/ChangePin.tsx

The JSDoc comment says:

Success: Navigate to ExpensifyCardPage and return SKIP_OUTCOME_SCREEN

But the actual callback returns SHOW_OUTCOME_SCREEN on both branches with no navigation:

callback: async (isSuccessful, _callbackInput, payload) => {
    if (isSuccessful && isChangePinPayload(payload)) {
        return CONST.MULTIFACTOR_AUTHENTICATION.CALLBACK_RESPONSE.SHOW_OUTCOME_SCREEN;
    }
    return CONST.MULTIFACTOR_AUTHENTICATION.CALLBACK_RESPONSE.SHOW_OUTCOME_SCREEN;
},

Both branches return the same value, making the if check dead code. Either:

  • The comment is stale and the callback should be simplified to just return SHOW_OUTCOME_SCREEN
  • Or the success path was intended to do something different (navigate + SKIP_OUTCOME_SCREEN like RevealPin does)

3. Minor: Export ordering in Expensicons.ts

File: src/components/Icon/Expensicons.ts

The import is placed alphabetically (between Invoice and LinkCopy), but the export puts Key between Flag and FlagLevelOne, breaking alphabetical order. It should be placed near the other K-prefixed exports.


4. Minor: Trailing space in translation string

File: src/languages/en.ts

changePinAtATMDescription: 'This is required in your region. ',

There's a trailing space before the closing quote. This is intentional for concatenation with the TextLink that follows, but a cleaner approach would be to add the space in the JSX rather than embedding it in the translation string, since translators may accidentally remove it.


5. Translations

Non-English locale files contain English placeholder text for the new strings (e.g., changePin, pinChanged, changePinAtATM, etc.). Per melvin-bot's comment, this is expected for a fork PR — the translation workflow should be triggered by an Expensify employee once the code changes are approved.


Summary

# Severity Issue
1 High Title labels swapped in ChangePinPage.tsx
2 Medium Stale JSDoc + redundant callback branches in ChangePin.tsx
3 Low Export ordering in Expensicons.ts
4 Low Trailing space in translation string
5 Info Non-English translations need generation

Items 1 and 2 should be fixed before merge. The rest are minor/informational.

@github-actions

This comment has been minimized.

@OSBotify
Copy link
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 fdb745a7..03b3bca8 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -750,10 +750,8 @@ const translations: TranslationDeepObject<typeof en> = {
         },
         verificationFailed: 'Überprüfung fehlgeschlagen',
         setPin: {didNotShipCard: 'Wir haben Ihre Karte nicht versendet. Bitte versuchen Sie es erneut.'},
-        revealPin: {authenticationCanceled: "We couldn't reveal your PIN. Please try again."},
-        changePin: {
-            authenticationCanceled: 'We couldn’t change your PIN. Please try again.',
-        },
+        revealPin: {authenticationCanceled: 'Wir konnten Ihre PIN nicht anzeigen. Bitte versuchen Sie es erneut.'},
+        changePin: {authenticationCanceled: 'Wir haben Ihre PIN nicht geändert. Bitte versuchen Sie es erneut.'},
     },
     validateCodeModal: {
         successfulSignInTitle: dedent(`
@@ -2372,22 +2370,22 @@ ${amount} für ${merchant} – ${date}`,
         },
         setYourPin: 'Legen Sie Ihre PIN fest.',
         confirmYourPin: 'Bestätigen Sie Ihre PIN.',
-        changeYourPin: 'Enter a new PIN for your card.',
-        confirmYourChangedPin: 'Confirm your new PIN.',
+        changeYourPin: 'Geben Sie eine neue PIN für Ihre Karte ein.',
+        confirmYourChangedPin: 'Bestätigen Sie Ihre neue PIN.',
         pinMustBeFourDigits: 'Die PIN muss genau 4 Ziffern lang sein.',
         invalidPin: 'Bitte wählen Sie eine sicherere PIN.',
         pinMismatch: 'PINs stimmen nicht überein. Bitte versuchen Sie es erneut.',
         revealPin: 'PIN anzeigen',
         hidePin: 'PIN ausblenden',
         pin: 'PIN',
-        changePin: 'Change PIN',
-        pinChanged: 'PIN changed',
-        pinChangedHeader: 'PIN changed',
-        pinChangedDescription: 'Your card PIN has been changed successfully.',
-        changePinAtATM: 'Change your PIN at any ATM',
-        changePinAtATMDescription: 'This is required in your region. ',
-        changePinAtATMConciergeLink: 'Reach out to Concierge',
-        changePinAtATMSuffix: ' if you have any questions.',
+        changePin: 'PIN ändern',
+        pinChanged: 'PIN geändert!',
+        pinChangedHeader: 'PIN geändert',
+        pinChangedDescription: 'Sie können Ihre PIN jetzt verwenden.',
+        changePinAtATM: 'Ändern Sie Ihre PIN an jedem Geldautomaten',
+        changePinAtATMDescription: 'Dies ist in Ihrer Region erforderlich.',
+        changePinAtATMConciergeLink: 'Kontaktieren Sie Concierge',
+        changePinAtATMSuffix: 'falls Sie Fragen haben.',
         freezeCard: 'Karte sperren',
         unfreeze: 'Entsperren',
         unfreezeCard: 'Karte entsperren',
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index c70342d8..1eae5b2a 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -753,10 +753,8 @@ const translations: TranslationDeepObject<typeof en> = {
         },
         verificationFailed: 'Échec de la vérification',
         setPin: {didNotShipCard: 'Nous n’avons pas envoyé votre carte. Veuillez réessayer.'},
-        revealPin: {authenticationCanceled: "We couldn't reveal your PIN. Please try again."},
-        changePin: {
-            authenticationCanceled: 'We couldn’t change your PIN. Please try again.',
-        },
+        revealPin: {authenticationCanceled: 'Nous n’avons pas pu afficher votre code PIN. Veuillez réessayer.'},
+        changePin: {authenticationCanceled: 'Nous n’avons pas modifié votre code PIN. Veuillez réessayer.'},
     },
     validateCodeModal: {
         successfulSignInTitle: dedent(`
@@ -2377,22 +2375,22 @@ ${amount} pour ${merchant} - ${date}`,
         },
         setYourPin: 'Définir votre code PIN.',
         confirmYourPin: 'Confirmez votre code PIN.',
-        changeYourPin: 'Enter a new PIN for your card.',
-        confirmYourChangedPin: 'Confirm your new PIN.',
+        changeYourPin: 'Saisissez un nouveau code PIN pour votre carte.',
+        confirmYourChangedPin: 'Confirmez votre nouveau code PIN.',
         pinMustBeFourDigits: 'Le code PIN doit comporter exactement 4 chiffres.',
         invalidPin: 'Veuillez choisir un code PIN plus sécurisé.',
         pinMismatch: 'Les codes PIN ne correspondent pas. Veuillez réessayer.',
         revealPin: 'Afficher le code PIN',
         hidePin: 'Masquer le code PIN',
         pin: 'Code PIN',
-        changePin: 'Change PIN',
-        pinChanged: 'PIN changed',
-        pinChangedHeader: 'PIN changed',
-        pinChangedDescription: 'Your card PIN has been changed successfully.',
-        changePinAtATM: 'Change your PIN at any ATM',
-        changePinAtATMDescription: 'This is required in your region. ',
-        changePinAtATMConciergeLink: 'Reach out to Concierge',
-        changePinAtATMSuffix: ' if you have any questions.',
+        changePin: 'Modifier le code PIN',
+        pinChanged: 'Code PIN modifié !',
+        pinChangedHeader: 'Code PIN modifié',
+        pinChangedDescription: 'Vous êtes maintenant prêt à utiliser votre code PIN.',
+        changePinAtATM: 'Modifiez votre code PIN à n’importe quel distributeur automatique de billets',
+        changePinAtATMDescription: 'Ceci est obligatoire dans votre région.',
+        changePinAtATMConciergeLink: 'Contacter Concierge',
+        changePinAtATMSuffix: 'si vous avez des questions.',
         freezeCard: 'Geler la carte',
         unfreeze: 'Dégeler',
         unfreezeCard: 'Dégeler la carte',
diff --git a/src/languages/it.ts b/src/languages/it.ts
index 9eef130d..2820b662 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -751,10 +751,8 @@ const translations: TranslationDeepObject<typeof en> = {
         },
         verificationFailed: 'Verifica non riuscita',
         setPin: {didNotShipCard: 'Non abbiamo spedito la tua carta. Riprova.'},
-        revealPin: {authenticationCanceled: "We couldn't reveal your PIN. Please try again."},
-        changePin: {
-            authenticationCanceled: 'We couldn’t change your PIN. Please try again.',
-        },
+        revealPin: {authenticationCanceled: 'Non siamo riusciti a mostrare il tuo PIN. Riprova.'},
+        changePin: {authenticationCanceled: 'Non abbiamo modificato il tuo PIN. Riprova.'},
     },
     validateCodeModal: {
         successfulSignInTitle: dedent(`
@@ -2367,22 +2365,22 @@ ${amount} per ${merchant} - ${date}`,
         },
         setYourPin: 'Imposta il tuo PIN.',
         confirmYourPin: 'Conferma il tuo PIN.',
-        changeYourPin: 'Enter a new PIN for your card.',
-        confirmYourChangedPin: 'Confirm your new PIN.',
+        changeYourPin: 'Inserisci un nuovo PIN per la tua carta.',
+        confirmYourChangedPin: 'Conferma il tuo nuovo PIN.',
         pinMustBeFourDigits: 'Il PIN deve essere composto da esattamente 4 cifre.',
         invalidPin: 'Scegli un PIN più sicuro.',
         pinMismatch: 'I PIN non corrispondono. Riprova.',
         revealPin: 'Mostra PIN',
         hidePin: 'Nascondi PIN',
         pin: 'PIN',
-        changePin: 'Change PIN',
-        pinChanged: 'PIN changed',
-        pinChangedHeader: 'PIN changed',
-        pinChangedDescription: 'Your card PIN has been changed successfully.',
-        changePinAtATM: 'Change your PIN at any ATM',
-        changePinAtATMDescription: 'This is required in your region. ',
-        changePinAtATMConciergeLink: 'Reach out to Concierge',
-        changePinAtATMSuffix: ' if you have any questions.',
+        changePin: 'Cambia PIN',
+        pinChanged: 'PIN cambiato!',
+        pinChangedHeader: 'PIN modificato',
+        pinChangedDescription: 'Ora sei pronto a usare il tuo PIN.',
+        changePinAtATM: 'Cambia il tuo PIN a qualsiasi bancomat',
+        changePinAtATMDescription: 'Questo è obbligatorio nella tua regione.',
+        changePinAtATMConciergeLink: 'Contatta Concierge',
+        changePinAtATMSuffix: 'se hai domande.',
         freezeCard: 'Blocca carta',
         unfreeze: 'Sblocca',
         unfreezeCard: 'Sblocca carta',
diff --git a/src/languages/ja.ts b/src/languages/ja.ts
index c0e4fd73..fd42cec3 100644
--- a/src/languages/ja.ts
+++ b/src/languages/ja.ts
@@ -748,10 +748,8 @@ const translations: TranslationDeepObject<typeof en> = {
         },
         verificationFailed: '認証に失敗しました',
         setPin: {didNotShipCard: 'カードを発送できませんでした。もう一度お試しください。'},
-        revealPin: {authenticationCanceled: "We couldn't reveal your PIN. Please try again."},
-        changePin: {
-            authenticationCanceled: 'We couldn’t change your PIN. Please try again.',
-        },
+        revealPin: {authenticationCanceled: 'PIN を表示できませんでした。もう一度お試しください。'},
+        changePin: {authenticationCanceled: 'お客様の暗証番号は変更されていません。もう一度お試しください。'},
     },
     validateCodeModal: {
         successfulSignInTitle: dedent(`
@@ -2349,22 +2347,22 @@ ${date} の ${merchant} への ${amount}`,
         },
         setYourPin: 'PIN を設定.',
         confirmYourPin: 'PIN を確認してください.',
-        changeYourPin: 'Enter a new PIN for your card.',
-        confirmYourChangedPin: 'Confirm your new PIN.',
+        changeYourPin: 'カードの新しい暗証番号を入力してください。',
+        confirmYourChangedPin: '新しい暗証番号を確認してください。',
         pinMustBeFourDigits: 'PIN は 4 桁で入力してください。',
         invalidPin: 'より安全な暗証番号を選択してください。',
         pinMismatch: 'PIN が一致しません。もう一度お試しください。',
         revealPin: 'PIN を表示',
         hidePin: 'PIN を非表示',
         pin: 'PIN',
-        changePin: 'Change PIN',
-        pinChanged: 'PIN changed',
-        pinChangedHeader: 'PIN changed',
-        pinChangedDescription: 'Your card PIN has been changed successfully.',
-        changePinAtATM: 'Change your PIN at any ATM',
-        changePinAtATMDescription: 'This is required in your region. ',
-        changePinAtATMConciergeLink: 'Reach out to Concierge',
-        changePinAtATMSuffix: ' if you have any questions.',
+        changePin: 'PIN を変更',
+        pinChanged: 'PIN を変更しました!',
+        pinChangedHeader: 'PIN を変更しました',
+        pinChangedDescription: 'これで暗証番号をすぐにご利用いただけます。',
+        changePinAtATM: 'PIN は任意の ATM で変更できます',
+        changePinAtATMDescription: 'これはお住まいの地域では必須です。',
+        changePinAtATMConciergeLink: 'Concierge に連絡する',
+        changePinAtATMSuffix: 'ご不明な点がある場合。',
         freezeCard: 'カードを一時停止',
         unfreeze: '再開',
         unfreezeCard: 'カードの一時停止を解除',
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index 47c40fa4..5466867a 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -749,10 +749,8 @@ const translations: TranslationDeepObject<typeof en> = {
         },
         verificationFailed: 'Verificatie mislukt',
         setPin: {didNotShipCard: 'We hebben je kaart niet verzonden. Probeer het opnieuw.'},
-        revealPin: {authenticationCanceled: "We couldn't reveal your PIN. Please try again."},
-        changePin: {
-            authenticationCanceled: 'We couldn’t change your PIN. Please try again.',
-        },
+        revealPin: {authenticationCanceled: 'We konden je pincode niet tonen. Probeer het opnieuw.'},
+        changePin: {authenticationCanceled: 'We hebben je pincode niet gewijzigd. Probeer het opnieuw.'},
     },
     validateCodeModal: {
         successfulSignInTitle: dedent(`
@@ -2366,22 +2364,22 @@ ${amount} voor ${merchant} - ${date}`,
         },
         setYourPin: 'Stel je pincode in.',
         confirmYourPin: 'Bevestig je pincode.',
-        changeYourPin: 'Enter a new PIN for your card.',
-        confirmYourChangedPin: 'Confirm your new PIN.',
+        changeYourPin: 'Voer een nieuwe pincode in voor je kaart.',
+        confirmYourChangedPin: 'Bevestig je nieuwe pincode.',
         pinMustBeFourDigits: 'Pincode moet precies 4 cijfers bevatten.',
         invalidPin: 'Kies alsjeblieft een veiligere pincode.',
         pinMismatch: 'Pincodes komen niet overeen. Probeer het opnieuw.',
         revealPin: 'Pincode weergeven',
         hidePin: 'Pincode verbergen',
         pin: 'Pincode',
-        changePin: 'Change PIN',
-        pinChanged: 'PIN changed',
-        pinChangedHeader: 'PIN changed',
-        pinChangedDescription: 'Your card PIN has been changed successfully.',
-        changePinAtATM: 'Change your PIN at any ATM',
-        changePinAtATMDescription: 'This is required in your region. ',
-        changePinAtATMConciergeLink: 'Reach out to Concierge',
-        changePinAtATMSuffix: ' if you have any questions.',
+        changePin: 'Pincode wijzigen',
+        pinChanged: 'Pincode gewijzigd!',
+        pinChangedHeader: 'Pincode gewijzigd',
+        pinChangedDescription: 'Je bent helemaal klaar om je pincode te gebruiken.',
+        changePinAtATM: 'Wijzig je pincode bij elke geldautomaat',
+        changePinAtATMDescription: 'Dit is vereist in jouw regio.',
+        changePinAtATMConciergeLink: 'Neem contact op met Concierge',
+        changePinAtATMSuffix: 'als je vragen hebt.',
         freezeCard: 'Kaart blokkeren',
         unfreeze: 'Deblokkeren',
         unfreezeCard: 'Kaart deblokkeren',
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index 533aadd0..53dc49c1 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -750,10 +750,8 @@ const translations: TranslationDeepObject<typeof en> = {
         },
         verificationFailed: 'Weryfikacja nie powiodła się',
         setPin: {didNotShipCard: 'Nie wysłaliśmy twojej karty. Spróbuj ponownie.'},
-        revealPin: {authenticationCanceled: "We couldn't reveal your PIN. Please try again."},
-        changePin: {
-            authenticationCanceled: 'We couldn’t change your PIN. Please try again.',
-        },
+        revealPin: {authenticationCanceled: 'Nie udało się wyświetlić twojego PIN-u. Spróbuj ponownie.'},
+        changePin: {authenticationCanceled: 'Nie zmieniliśmy twojego PIN-u. Spróbuj ponownie.'},
     },
     validateCodeModal: {
         successfulSignInTitle: dedent(`
@@ -2361,22 +2359,22 @@ ${amount} dla ${merchant} - ${date}`,
         },
         setYourPin: 'Ustaw swój PIN.',
         confirmYourPin: 'Potwierdź swój PIN.',
-        changeYourPin: 'Enter a new PIN for your card.',
-        confirmYourChangedPin: 'Confirm your new PIN.',
+        changeYourPin: 'Wprowadź nowy PIN do swojej karty.',
+        confirmYourChangedPin: 'Potwierdź swój nowy PIN.',
         pinMustBeFourDigits: 'PIN musi mieć dokładnie 4 cyfry.',
         invalidPin: 'Wybierz proszę bardziej bezpieczny PIN.',
         pinMismatch: 'Kody PIN nie są takie same. Spróbuj ponownie.',
         revealPin: 'Pokaż PIN',
         hidePin: 'Ukryj PIN',
         pin: 'PIN',
-        changePin: 'Change PIN',
-        pinChanged: 'PIN changed',
-        pinChangedHeader: 'PIN changed',
-        pinChangedDescription: 'Your card PIN has been changed successfully.',
-        changePinAtATM: 'Change your PIN at any ATM',
-        changePinAtATMDescription: 'This is required in your region. ',
-        changePinAtATMConciergeLink: 'Reach out to Concierge',
-        changePinAtATMSuffix: ' if you have any questions.',
+        changePin: 'Zmień PIN',
+        pinChanged: 'PIN zmieniony!',
+        pinChangedHeader: 'PIN został zmieniony',
+        pinChangedDescription: 'Możesz już teraz używać swojego PIN-u.',
+        changePinAtATM: 'Zmień swój PIN w dowolnym bankomacie',
+        changePinAtATMDescription: 'To jest wymagane w twoim regionie.',
+        changePinAtATMConciergeLink: 'Skontaktuj się z Concierge',
+        changePinAtATMSuffix: 'jeśli masz jakieś pytania.',
         freezeCard: 'Zamroź kartę',
         unfreeze: 'Odmroź',
         unfreezeCard: 'Odmroź kartę',
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index b3d19320..0ad92ab8 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -748,10 +748,8 @@ const translations: TranslationDeepObject<typeof en> = {
         },
         verificationFailed: 'Falha na verificação',
         setPin: {didNotShipCard: 'Não enviamos seu cartão. Tente novamente.'},
-        revealPin: {authenticationCanceled: "We couldn't reveal your PIN. Please try again."},
-        changePin: {
-            authenticationCanceled: 'We couldn’t change your PIN. Please try again.',
-        },
+        revealPin: {authenticationCanceled: 'Não foi possível revelar seu PIN. Tente novamente.'},
+        changePin: {authenticationCanceled: 'Nós não alteramos seu PIN. Tente novamente.'},
     },
     validateCodeModal: {
         successfulSignInTitle: dedent(`
@@ -2359,22 +2357,22 @@ ${amount} para ${merchant} - ${date}`,
         },
         setYourPin: 'Defina seu PIN.',
         confirmYourPin: 'Confirme seu PIN.',
-        changeYourPin: 'Enter a new PIN for your card.',
-        confirmYourChangedPin: 'Confirm your new PIN.',
+        changeYourPin: 'Digite um novo PIN para o seu cartão.',
+        confirmYourChangedPin: 'Confirme seu novo PIN.',
         pinMustBeFourDigits: 'O PIN deve ter exatamente 4 dígitos.',
         invalidPin: 'Escolha um PIN mais seguro.',
         pinMismatch: 'Os PINs não coincidem. Tente novamente.',
         revealPin: 'Revelar PIN',
         hidePin: 'Ocultar PIN',
         pin: 'PIN',
-        changePin: 'Change PIN',
-        pinChanged: 'PIN changed',
-        pinChangedHeader: 'PIN changed',
-        pinChangedDescription: 'Your card PIN has been changed successfully.',
-        changePinAtATM: 'Change your PIN at any ATM',
-        changePinAtATMDescription: 'This is required in your region. ',
-        changePinAtATMConciergeLink: 'Reach out to Concierge',
-        changePinAtATMSuffix: ' if you have any questions.',
+        changePin: 'Alterar PIN',
+        pinChanged: 'PIN alterado!',
+        pinChangedHeader: 'PIN alterado',
+        pinChangedDescription: 'Tudo pronto para você usar seu PIN agora.',
+        changePinAtATM: 'Altere seu PIN em qualquer caixa eletrônico',
+        changePinAtATMDescription: 'Isso é obrigatório na sua região.',
+        changePinAtATMConciergeLink: 'Falar com a Concierge',
+        changePinAtATMSuffix: 'se você tiver alguma dúvida.',
         freezeCard: 'Bloquear cartão',
         unfreeze: 'Desbloquear',
         unfreezeCard: 'Desbloquear cartão',
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index 1c528409..4b0c0344 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -741,10 +741,8 @@ const translations: TranslationDeepObject<typeof en> = {
         },
         verificationFailed: '验证失败',
         setPin: {didNotShipCard: '我们未能寄出您的卡。请重试。'},
-        revealPin: {authenticationCanceled: "We couldn't reveal your PIN. Please try again."},
-        changePin: {
-            authenticationCanceled: 'We couldn’t change your PIN. Please try again.',
-        },
+        revealPin: {authenticationCanceled: '我们无法显示您的 PIN。请重试。'},
+        changePin: {authenticationCanceled: '我们未更改您的 PIN。请重试。'},
     },
     validateCodeModal: {
         successfulSignInTitle: dedent(`
@@ -2313,22 +2311,22 @@ ${amount},商户:${merchant} - 日期:${date}`,
         },
         setYourPin: '设置您的 PIN.',
         confirmYourPin: '确认您的 PIN.',
-        changeYourPin: 'Enter a new PIN for your card.',
-        confirmYourChangedPin: 'Confirm your new PIN.',
+        changeYourPin: '为您的银行卡输入新 PIN 码。',
+        confirmYourChangedPin: '确认您的新 PIN。',
         pinMustBeFourDigits: 'PIN 必须正好为 4 位数字。',
         invalidPin: '请选择一个更安全的 PIN。',
         pinMismatch: 'PIN 不匹配。请重试。',
         revealPin: '显示 PIN',
         hidePin: '隐藏 PIN',
         pin: 'PIN',
-        changePin: 'Change PIN',
-        pinChanged: 'PIN changed',
-        pinChangedHeader: 'PIN changed',
-        pinChangedDescription: 'Your card PIN has been changed successfully.',
-        changePinAtATM: 'Change your PIN at any ATM',
-        changePinAtATMDescription: 'This is required in your region. ',
-        changePinAtATMConciergeLink: 'Reach out to Concierge',
-        changePinAtATMSuffix: ' if you have any questions.',
+        changePin: '更改 PIN',
+        pinChanged: 'PIN 已更改!',
+        pinChangedHeader: 'PIN 已更改',
+        pinChangedDescription: '现在您可以开始使用您的 PIN 了。',
+        changePinAtATM: '在任意 ATM 更改您的 PIN',
+        changePinAtATMDescription: '这是您所在地区的必填项。',
+        changePinAtATMConciergeLink: '联系 Concierge',
+        changePinAtATMSuffix: '如果你有任何问题。',
         freezeCard: '冻结卡片',
         unfreeze: '解冻',
         unfreezeCard: '解冻卡片',

Note

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

View workflow run

Copy link

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

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: 3e15e43301

ℹ️ 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".

Copy link
Contributor

@chuckdries chuckdries left a comment

Choose a reason for hiding this comment

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

High level question about CardPinStore, and a note about translations, but overall looking pretty solid to me! I notice the pin input is the wide version, will we get the narrower version for free by merging main?

@DylanDylann
Copy link
Contributor Author

@shawnborton Could you test on this adhoc build?

@DylanDylann
Copy link
Contributor Author

Otherwise, I’ll update the screenshots/videos in the OP later today.

@shawnborton
Copy link
Contributor

I can't get adhoc builds to work on my phone right now, so I will await new recordings.

@joekaufmanexpensify
Copy link
Contributor

Asking for design team's review. @joekaufmanexpensify any concerns with issuing the design team physical cards so they can test?

Sure, we can do this. Sounds like Shawn may be having some issues accessing the build, but if/when anyone from the design team is able to queue up the adhoc build on mobile, let me know and I will issue you a card to test. Once you order the card, I can help you activate it remotely so you can test both these features, and then we can cancel the card before it actually ships.

@joekaufmanexpensify
Copy link
Contributor

I can't get adhoc builds to work on my phone right now, so I will await new recordings.

Is it just an issue with this build Shawn? If you can't access adhoc iOS builds generally, could be an issue with your device not being added. I know Vit just recently updated the list of iOS devices that can test adhoc builds.

@shawnborton
Copy link
Contributor

(We're all good now, I fixed it on my phone and now I can access the builds.)

That being said, I don't see the Reveal PIN button - is there a beta I need or a certain card type? Again, happy to wait for updated recordings if that is easier.

@joekaufmanexpensify
Copy link
Contributor

That being said, I don't see the Reveal PIN button - is there a beta I need or a certain card type? Again, happy to wait for updated recordings if that is easier.

What type of card are you looking at it for and on what account? There is a beta for this, but all expensifail.com and cardtest.expensify.com accounts are on it. The button will only show up for physical UK/EU Expensify Cards that are activated.

@shawnborton
Copy link
Contributor

I was just looking at my own Expensify Card in my own account.

@joekaufmanexpensify
Copy link
Contributor

I was just looking at my own Expensify Card in my own account.

Got it. If you want to test this on an adhoc, let me know your test account email and I can get you setup with a physical UK/EU card @shawnborton. Also totally fine if you just want to view the recordings too. Just LMK!

@shawnborton
Copy link
Contributor

Happy to wait for recordings, no worries!

@DylanDylann
Copy link
Contributor Author

@shawnborton I updated the videos in the PR description

@shawnborton
Copy link
Contributor

@DylanDylann can you review my comments about the illustration being cut off, as well as making sure the bottom buttons/spacing are good?

@DylanDylann
Copy link
Contributor Author

DylanDylann commented Mar 16, 2026

as well as making sure the bottom buttons/spacing are good?

This looks good now

@DylanDylann
Copy link
Contributor Author

can you review my comments about the illustration being cut off

I am checking again

@rafecolton
Copy link
Member

@DylanDylann can you merge main please?

Copy link
Member

@rafecolton rafecolton left a comment

Choose a reason for hiding this comment

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

Tested locally and it worked well overall - including with passkey 😄 I'm a little concern that errors are not handled correctly so I tagged Dariusz for a second opinion.

/** Server failure screen generally represents "unknown error" so also show when status is unknown (e.g. network/parse error). */
function isServerError(error: ErrorState): boolean {
return error.httpStatusCode === undefined || error.httpStatusCode >= 500;
return !!error.httpStatusCode && error.httpStatusCode >= 500;
Copy link
Member

Choose a reason for hiding this comment

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

👎 this is not correct. This changes the logic so that undefined local errors are treated as client client failures, when they should be treated as server errors (i.e. show humpty dumpty). Similarly, the lines you added below should not be needed either. I wonder if I was wrong above and you do need to define certain default errors as client errors. @dariusz-biela can you please advise on this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rafecolton httpStatusCode is not set if the user cancels the flow themselves, and I think we should show the client error screen in this case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I’ve reverted the changes in this file, but I’d like to get more thoughts on the concern above

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