Repository navigation
Conversation
Co-authored-by: dmkt9 <dmkt9@users.noreply.github.com>
🦜 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 diffdiff --git a/src/languages/de.ts b/src/languages/de.ts
index ae52154a..3c848f11 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -4131,7 +4131,7 @@ ${amount} für ${merchant} – ${date}`,
subtitle: (workEmail: string | undefined) =>
`Wir konnten ${workEmail} nicht hinzufügen. Bitte versuche es später in den Einstellungen erneut oder chatte mit Concierge, um Unterstützung zu erhalten.`,
validatedPublicDomainSubtitle: (workEmail: string | undefined) =>
- `Melden Sie sich mit ${workEmail} an und führen Sie dieses Konto unter Konto > Sicherheit > Konten zusammenführen zusammen.`,
+ `Melden Sie sich mit ${workEmail} an und führen Sie dieses Konto über Konto > Sicherheit > Konten zusammenführen zusammen.`,
workAccountClosedSubtitle:
'Das Arbeitskonto, das mit dieser E-Mail-Adresse verknüpft ist, wurde geschlossen. Bitte wenden Sie sich an Ihre Unternehmensadministratorin bzw. Ihren Unternehmensadministrator, um es zu reaktivieren, oder registrieren Sie sich mit einer anderen E-Mail-Adresse.',
domainControlledSubtitle: (workEmail: string | undefined) => `${workEmail} ist ein domänengesteuerter Login für ein bestehendes Expensify-Konto.`,
diff --git a/src/languages/el.ts b/src/languages/el.ts
index 7ee58852..53b3d132 100644
--- a/src/languages/el.ts
+++ b/src/languages/el.ts
@@ -4185,7 +4185,7 @@ ${amount} για ${merchant} - ${date}`,
title: 'Δεν ήταν δυνατή η προσθήκη της εργασιακής διεύθυνσης email',
subtitle: (workEmail: string | undefined) => `Δεν ήταν δυνατή η προσθήκη του ${workEmail}. Δοκιμάστε ξανά αργότερα στις ρυθμίσεις ή συνομιλήστε με το Concierge για καθοδήγηση.`,
validatedPublicDomainSubtitle: (workEmail: string | undefined) =>
- `Συνδεθείτε με το ${workEmail} και συγχωνεύστε αυτόν τον λογαριασμό από Λογαριασμός > Ασφάλεια > Συγχώνευση λογαριασμών.`,
+ `Συνδεθείτε με το ${workEmail} και συγχωνεύστε αυτόν τον λογαριασμό από Λογαριασμός > Ασφάλεια > Συγχώνευση λογαριασμών.`,
workAccountClosedSubtitle:
'Ο επαγγελματικός λογαριασμός που σχετίζεται με αυτό το email είναι κλειστός. Παρακαλούμε επικοινωνήστε με τον διαχειριστή της εταιρείας σας για να τον επανενεργοποιήσει ή εγγραφείτε με διαφορετικό email.',
domainControlledSubtitle: (workEmail: string | undefined) => `${workEmail} είναι ένα στοιχείο σύνδεσης ελεγχόμενο από τομέα για έναν υπάρχοντα λογαριασμό Expensify.`,
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index 6ef9f1b8..c8dd65e9 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -4137,7 +4137,7 @@ ${amount} pour ${merchant} - ${date}`,
title: 'Impossible d’ajouter l’adresse e-mail professionnelle',
subtitle: (workEmail: string | undefined) =>
`Nous n’avons pas pu ajouter ${workEmail}. Veuillez réessayer plus tard dans les Paramètres ou discuter avec Concierge pour obtenir de l’aide.`,
- validatedPublicDomainSubtitle: (workEmail: string | undefined) => `Connectez-vous avec ${workEmail} et fusionnez ce compte depuis Compte > Sécurité > Fusionner les comptes.`,
+ validatedPublicDomainSubtitle: (workEmail: string | undefined) => `Connectez-vous avec ${workEmail} et fusionnez ce compte via Compte > Sécurité > Fusionner les comptes.`,
workAccountClosedSubtitle:
'Le compte professionnel associé à cet e-mail est fermé. Veuillez contacter l’administrateur de votre entreprise pour le réactiver, ou inscrivez-vous avec un autre e-mail.',
domainControlledSubtitle: (workEmail: string | undefined) => `${workEmail} est un identifiant contrôlé par domaine pour un compte Expensify existant.`,
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index d193c88c..36617559 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -4111,7 +4111,7 @@ ${amount} voor ${merchant} - ${date}`,
mergeBlockScreen: {
title: 'Werkmail kon niet worden toegevoegd',
subtitle: (workEmail: string | undefined) => `We konden ${workEmail} niet toevoegen. Probeer het later opnieuw in Instellingen of chat met Concierge voor hulp.`,
- validatedPublicDomainSubtitle: (workEmail: string | undefined) => `Log in met ${workEmail} en voeg dit account samen via Account > Beveiliging > Accounts samenvoegen.`,
+ validatedPublicDomainSubtitle: (workEmail: string | undefined) => `Log in met ${workEmail} en voeg deze account samen via Account > Beveiliging > Accounts samenvoegen.`,
workAccountClosedSubtitle:
'De zakelijke account die aan dit e-mailadres is gekoppeld, is gesloten. Neem contact op met de beheerder van je bedrijf om het opnieuw te activeren, of meld je aan met een ander e-mailadres.',
domainControlledSubtitle: (workEmail: string | undefined) => `${workEmail} is een door het domein beheerde login voor een bestaand Expensify-account.`,
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index 6c9c4d35..0a0b3e20 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -4156,7 +4156,7 @@ ${amount} dla ${merchant} - ${date}`,
mergeBlockScreen: {
title: 'Nie udało się dodać służbowego adresu e-mail',
subtitle: (workEmail: string | undefined) => `Nie udało się dodać ${workEmail}. Spróbuj ponownie później w Ustawieniach lub porozmawiaj z Concierge, aby uzyskać pomoc.`,
- validatedPublicDomainSubtitle: (workEmail: string | undefined) => `Zaloguj się za pomocą ${workEmail} i scal to konto w Konto > Zabezpieczenia > Scal konta.`,
+ validatedPublicDomainSubtitle: (workEmail: string | undefined) => `Zaloguj się przy użyciu ${workEmail} i połącz to konto w Ustawienia konta > Zabezpieczenia > Scal konta.`,
workAccountClosedSubtitle:
'Konto służbowe powiązane z tym adresem e‑mail jest zamknięte. Skontaktuj się z administratorem w swojej firmie, żeby je ponownie aktywować, albo zarejestruj się przy użyciu innego adresu e‑mail.',
domainControlledSubtitle: (workEmail: string | undefined) => `${workEmail} to login kontrolowany przez domenę dla istniejącego konta Expensify.`,
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index 7ad5444d..68b49202 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -4113,7 +4113,7 @@ ${amount} para ${merchant} - ${date}`,
title: 'Não foi possível adicionar o e-mail de trabalho',
subtitle: (workEmail: string | undefined) =>
`Não foi possível adicionar ${workEmail}. Tente novamente mais tarde em Configurações ou converse com o Concierge para obter orientação.`,
- validatedPublicDomainSubtitle: (workEmail: string | undefined) => `Entre com ${workEmail} e mescle esta conta em Conta > Segurança > Mesclar contas.`,
+ validatedPublicDomainSubtitle: (workEmail: string | undefined) => `Acesse com ${workEmail} e mescle esta conta em Conta > Segurança > Mesclar contas.`,
workAccountClosedSubtitle:
'A conta de trabalho associada a este e-mail foi encerrada. Entre em contato com o administrador da sua empresa para reativá-la ou inscreva-se com um e-mail diferente.',
domainControlledSubtitle: (workEmail: string | undefined) => `${workEmail} é um login controlado por domínio de uma conta existente do Expensify.`,
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index 5e24a736..5ca43c3b 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -3969,7 +3969,7 @@ ${amount},商户:${merchant} - 日期:${date}`,
mergeBlockScreen: {
title: '无法添加工作邮箱',
subtitle: (workEmail: string | undefined) => `我们无法添加 ${workEmail}。请稍后在设置中重试,或与 Concierge 聊天以获取指导。`,
- validatedPublicDomainSubtitle: (workEmail: string | undefined) => `请使用 ${workEmail} 登录,并从“账户 > 安全 > 合并账户”合并此账户。`,
+ validatedPublicDomainSubtitle: (workEmail: string | undefined) => `使用 ${workEmail} 登录,然后前往“账户 > 安全 > 合并账户”来合并此账户。`,
workAccountClosedSubtitle: '与此邮箱关联的工作账户已被关闭。请联系您公司的管理员以重新激活该账户,或使用其他邮箱注册。',
domainControlledSubtitle: (workEmail: string | undefined) => `${workEmail} 是现有 Expensify 账户的域控制登录。`,
},
Note You can apply these changes to your branch by copying the patch to your clipboard, then running |
|
🤖 Android test steps verification results: ❌ fail Blocked on standalone Android NewDot, not a demonstrated PR defect. The supplied account already completed onboarding, and available tools cannot restore the required onboarding state.
|
|
🤖 Web test steps verification results: ❌ fail Blocked on dev NewDot web: the supplied account already completed onboarding. Available tools cannot restore add-work-email onboarding or provision the required existing-account fixture, so this is not a demonstrated PR defect.
|
|
@MelvinBot merge the latest main branch |
Co-authored-by: dmkt9 <dmkt9@users.noreply.github.com>
|
@MelvinBot apply this #108176 (comment) |
|
|
| if (response?.message === CONST.MERGE_ACCOUNT_INVALID_CODE_ERROR || response?.title === CONST.MERGE_ACCOUNT_INVALID_CODE_ERROR) { | ||
| Onyx.merge(ONYXKEYS.ONBOARDING_ERROR_MESSAGE_TRANSLATION_KEY, 'contacts.genericFailureMessages.validateSecondaryLogin'); | ||
| } else { | ||
| Onyx.merge(ONYXKEYS.ONBOARDING_ERROR_MESSAGE_TRANSLATION_KEY, getBlockedMergeErrorTranslationKey(response?.message)); |
There was a problem hiding this comment.
@MelvinBot src/pages/OnboardingWorkEmail/BaseOnboardingWorkEmail.tsx:131 — Reloading the page causes the specific merge guidance to be lost.
useOnyx(ONYXKEYS.NVP_ONBOARDING) returns undefined with status: 'loading' while Onyx.init() has not yet completed hydration.
The current effect only checks onboardingValues?.isMergingAccountBlocked. On the first render after reloading, this value is undefined, causing setOnboardingErrorMessage(null) to be called.
Once NVP_ONBOARDING is hydrated with isMergingAccountBlocked: true, the blocked screen is still displayed, but ONBOARDING_ERROR_MESSAGE_TRANSLATION_KEY has already been cleared.
As a result, OnboardingMergingAccountBlockedView.tsx falls back to onboarding.mergeBlockScreen.subtitle instead of displaying validatedPublicDomainSubtitle.
There was a problem hiding this comment.
Pushed 28f8145: cleanup now waits for onboarding data and preserves guidance while merging is blocked.
Added regression coverage for the reported loading sequence and normal unblocked cleanup. All 63 targeted tests and static checks passed; the full suite timed out. Browser reload behavior wasn’t independently reproduced.
Co-authored-by: dmkt9 <dmkt9@users.noreply.github.com>
|
@MelvinBot update your checklist:
|
Co-authored-by: dmkt9 <dmkt9@users.noreply.github.com>
|
Updated the PR description: checked all checkboxes on your behalf, set |


Explanation of Change
Show actionable sign-in-and-merge guidance when an existing work account blocks onboarding, including the
jsonCode: 501response delivered throughonyxDataand666failures other than invalid codes. Preserve specific 2FA/SSO/invalid-code errors and the generic fallback for unknown AddWorkEmail failures. Update the guidance in all 11 supported locales.Regression testing also exposed a completion effect that cleared the guidance and navigated away when the backend marked a blocked merge step completed. Guard that effect while the merge is blocked so confirmation remains under user control.
AI Tests
Earlier translation and implementation verification:
Cannot read properties of undefined (reading 'fileExists'); the legacy Prettier script is absent, with formatting covered by Oxfmt instead. No new browser verification was performed for these translation-only replacements.Earlier implementation verification:
This draft uses an upstream branch because no accessible contributor fork was found. To copy the branch to your fork:
Fixed Issues
$ #105015
PROPOSAL: #105015 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Browser verification blocker (not evidence of the corrected onboarding screen):

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari