Repository navigation
[Payment due @ZhenjaHorbach] [Wise][Release 1] Business - UI - GR enabled on US account (Wallet Page) - #105491
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
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 bun ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
🦜 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 c7ea8d0d..d21ec755 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -3125,6 +3125,7 @@ const translations: TranslationDeepObject<typeof en> = {
payingReportSubtitle: 'Die Bankkonten des Unternehmens und der Mitarbeitenden verwenden unterschiedliche Währungen.',
},
wiseGlobalReimbursementsBanner: {title: 'Weltweit bezahlen', subtitle: 'Aktivieren Sie globale Erstattungen auf Ihrem USD-Konto.'},
+ globalReimbursementsEnabled: 'Globale Rückerstattungen aktiviert',
},
addCardToDigitalWallet: {
title: ({walletName}: {walletName: string}) => `Karte zu ${walletName} hinzufügen`,
diff --git a/src/languages/el.ts b/src/languages/el.ts
index 05a4b0d8..061db47b 100644
--- a/src/languages/el.ts
+++ b/src/languages/el.ts
@@ -3177,6 +3177,7 @@ const translations: TranslationDeepObject<typeof en> = {
payingReportSubtitle: 'Οι τραπεζικοί λογαριασμοί της εταιρείας και των εργαζομένων χρησιμοποιούν διαφορετικά νομίσματα.',
},
wiseGlobalReimbursementsBanner: {title: 'Πληρώστε ανθρώπους παγκοσμίως', subtitle: 'Ενεργοποιήστε τις παγκόσμιες αποζημιώσεις στον λογαριασμό USD σας.'},
+ globalReimbursementsEnabled: 'Έγινε ενεργοποίηση των παγκόσμιων αποζημιώσεων',
},
addCardToDigitalWallet: {
title: ({walletName}: {walletName: string}) => `Προσθήκη κάρτας στο ${walletName}`,
diff --git a/src/languages/es.ts b/src/languages/es.ts
index e2997c44..c075c17c 100644
--- a/src/languages/es.ts
+++ b/src/languages/es.ts
@@ -3027,6 +3027,7 @@ const translations: TranslationDeepObject<typeof en> = {
payingReportSubtitle: 'Las cuentas bancarias de la empresa y del empleado usan monedas diferentes.',
},
wiseGlobalReimbursementsBanner: {title: 'Paga a personas de todo el mundo', subtitle: 'Habilita los reembolsos globales en tu cuenta en USD.'},
+ globalReimbursementsEnabled: 'Reembolsos globales habilitados',
},
addCardToDigitalWallet: {
title: ({walletName}: {walletName: string}) => `Añadir tarjeta a ${walletName}`,
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index 50358123..228ac7ea 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -3130,6 +3130,7 @@ const translations: TranslationDeepObject<typeof en> = {
payingReportSubtitle: 'Les comptes bancaires de l’entreprise et de l’employé utilisent des devises différentes.',
},
wiseGlobalReimbursementsBanner: {title: 'Payer des personnes dans le monde entier', subtitle: 'Activez les remboursements globaux sur votre compte en USD.'},
+ globalReimbursementsEnabled: 'Remboursements globaux activés',
},
addCardToDigitalWallet: {
title: ({walletName}: {walletName: string}) => `Ajouter la carte à ${walletName}`,
diff --git a/src/languages/it.ts b/src/languages/it.ts
index c9a293f0..a89d3339 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -3114,6 +3114,7 @@ const translations: TranslationDeepObject<typeof en> = {
payingReportSubtitle: 'I conti bancari dell’azienda e del dipendente utilizzano valute diverse.',
},
wiseGlobalReimbursementsBanner: {title: 'Paga persone in tutto il mondo', subtitle: 'Abilita i rimborsi globali sul tuo conto in USD.'},
+ globalReimbursementsEnabled: 'Rimborsi globali abilitati',
},
addCardToDigitalWallet: {
title: ({walletName}: {walletName: string}) => `Aggiungi carta a ${walletName}`,
diff --git a/src/languages/ja.ts b/src/languages/ja.ts
index a2f6cc60..0a7c9a84 100644
--- a/src/languages/ja.ts
+++ b/src/languages/ja.ts
@@ -3093,6 +3093,7 @@ const translations: TranslationDeepObject<typeof en> = {
payingReportSubtitle: '会社と従業員の銀行口座は異なる通貨を使用しています。',
},
wiseGlobalReimbursementsBanner: {title: '世界中の人に支払いましょう', subtitle: 'USD アカウントでグローバル払い戻しを有効にします。'},
+ globalReimbursementsEnabled: 'グローバル精算が有効になりました',
},
addCardToDigitalWallet: {
title: ({walletName}: {walletName: string}) => `${walletName} にカードを追加`,
@@ -7454,7 +7455,6 @@ _詳しい手順については、[ヘルプサイトをご覧ください](${CO
title: 'メンバーをコピー',
prompt: ({count, targetWorkspaceName}: {count: number; targetWorkspaceName: string}) => ({
one: `${targetWorkspaceName}のメンバーをこのワークスペースのメンバーで置き換えてもよろしいですか?`,
- // Japanese has no "one" plural category, so handle the single-workspace case here
other:
count === 1
? `${targetWorkspaceName}のメンバーをこのワークスペースのメンバーで置き換えてもよろしいですか?`
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index 9723637e..8d61102a 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -3117,6 +3117,7 @@ const translations: TranslationDeepObject<typeof en> = {
payingReportSubtitle: 'De bankrekeningen van het bedrijf en de medewerker gebruiken verschillende valuta.',
},
wiseGlobalReimbursementsBanner: {title: 'Betaal mensen wereldwijd', subtitle: 'Schakel wereldwijde terugbetalingen in op je USD-rekening.'},
+ globalReimbursementsEnabled: 'Wereldwijde terugbetalingen ingeschakeld',
},
addCardToDigitalWallet: {
title: ({walletName}: {walletName: string}) => `Kaart toevoegen aan ${walletName}`,
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index acac974e..f2bcc6eb 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -3153,6 +3153,7 @@ const translations: TranslationDeepObject<typeof en> = {
payingReportSubtitle: 'Konta bankowe firmy i pracownika są w różnych walutach.',
},
wiseGlobalReimbursementsBanner: {title: 'Płać ludziom na całym świecie', subtitle: 'Włącz globalne zwroty wydatków na swoim koncie w USD.'},
+ globalReimbursementsEnabled: 'Włączono globalne zwroty',
},
addCardToDigitalWallet: {
title: ({walletName}: {walletName: string}) => `Dodaj kartę do ${walletName}`,
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index 72d4ca61..82ae30ed 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -3117,6 +3117,7 @@ const translations: TranslationDeepObject<typeof en> = {
payingReportSubtitle: 'As contas bancárias da empresa e do funcionário usam moedas diferentes.',
},
wiseGlobalReimbursementsBanner: {title: 'Pague pessoas no mundo todo', subtitle: 'Ative reembolsos globais na sua conta em USD.'},
+ globalReimbursementsEnabled: 'Reembolsos globais ativados',
},
addCardToDigitalWallet: {
title: ({walletName}: {walletName: string}) => `Adicionar cartão à ${walletName}`,
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index d853af9d..a42266fa 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -3018,6 +3018,7 @@ const translations: TranslationDeepObject<typeof en> = {
payingReportSubtitle: '公司账户和员工账户使用的货币不同。',
},
wiseGlobalReimbursementsBanner: {title: '向全球付款', subtitle: '在您的美元账户中启用全球报销。'},
+ globalReimbursementsEnabled: '已启用全球报销',
},
addCardToDigitalWallet: {
title: ({walletName}: {walletName: string}) => `将卡添加到 ${walletName}`,
@@ -7281,7 +7282,6 @@ _如需更详细的说明,请[访问我们的帮助网站](${CONST.NETSUITE_IM
title: '复制成员',
prompt: ({count, targetWorkspaceName}: {count: number; targetWorkspaceName: string}) => ({
one: `确定要用此工作区的成员替换 ${targetWorkspaceName} 的成员吗?`,
- // Chinese has no "one" plural category, so handle the single-workspace case here
other: count === 1 ? `确定要用此工作区的成员替换 ${targetWorkspaceName} 的成员吗?` : `确定要用此工作区的成员替换 ${count} 个工作区的成员吗?`,
}),
},
Note You can apply these changes to your branch by copying the patch to your clipboard, then running |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@codex review |
|
@MelvinBot review this |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
ReviewThe logic changes look correct. I found one bug on native: the globe tooltip works the first time, but after that a tap outside no longer closes it. Bug: on native, the tooltip can't be closed after the first long-press
How to reproduce:
Test 2 in the PR only runs one long-press, so it doesn't catch this. Suggested fix: in What I checked and found correct
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0dd4b920c5
ℹ️ 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".
| <GenericTooltip | ||
| text={label} | ||
| // A tap anywhere outside the tooltip closes it | ||
| shouldUseOverlay |
There was a problem hiding this comment.
Restore the overlay before reopening the native tooltip
After a user dismisses this tooltip once by tapping outside on iOS or Android, a second long-press cannot be dismissed: GenericTooltip.onPressOverlay() sets its internal shouldUseOverlay state to false (src/components/Tooltip/GenericTooltip.tsx:160-165), and this child never receives or uses hideTooltip. Because the icon remains mounted, the second showTooltip() has neither an overlay nor another hide path, leaving the tooltip visible until the row or page unmounts; reset the overlay for each show or wire a repeatable hide path.
Useful? React with 👍 / 👎.
| const menuItemProps: React.ComponentProps<typeof MenuItem> = { | ||
| onPress: handleRowPress, | ||
| title: item.title, | ||
| titleAddon: item.isGlobalReimbursementsEnabled ? <GlobalReimbursementsEnabledIcon onPress={handleRowPress} /> : undefined, |
There was a problem hiding this comment.
Announce the enabled state in the row's accessibility label
For screen-reader users on web or desktop, the new state is exposed only as titleAddon, but MenuItem sets an explicit accessible label built solely from title and description (src/components/MenuItem/MenuItem.tsx:627-645,903-906), and the add-on image is a non-focusable descendant of that button. Consequently an enabled account is announced exactly like an account without global reimbursements and the hover tooltip is unreachable; include the translated enabled text in the row's accessible label or description, or expose a separately focusable control.
Useful? React with 👍 / 👎.
|
@ZhenjaHorbach 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ebaebe651b
ℹ️ 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".
| setIsRendered(true); | ||
| setIsVisible(true); | ||
| // Bring the overlay back, since a tap on it turned it off for the last showing | ||
| setShouldUseOverlay(shouldUseOverlayProp); |
There was a problem hiding this comment.
I'm a little worried 😅
Will this break other tooltips?
There was a problem hiding this comment.
It shouldn't actually :) It only affects tooltips that pass shouldUseOverlay, and the globe icon is the only one in the app that does. Every other tooltip defaults it to false, so showTooltip just sets false again, which changes nothing for them. For tooltips with the overlay, it brings the overlay back on each show, since tapping it turned it off for good before. GenericTooltipTest covers that
|
🚧 grgia has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-11-03.at.18.10.45.movAndroid: mWeb ChromeScreen.Recording.2026-11-03.at.18.10.45.moviOS: HybridAppScreen.Recording.2026-11-03.at.18.10.45.movScreen.Recording.2026-11-03.at.18.16.21.moviOS: mWeb SafariScreen.Recording.2026-11-03.at.18.10.45.movMacOS: Chrome / SafariScreen.Recording.2026-11-03.at.18.09.57.mov |
|
🎯 @ZhenjaHorbach, thanks for reviewing and testing this PR! 🎉 A payment issue will be created for your review once this PR is deployed to production. If payment is not needed (e.g., regression PR review fix etc), react with 👎 to this comment to prevent the payment issue from being created. |
|
Actually, one small comment Screen.Recording.2026-11-03.at.18.16.21.mov |
Thanks! That’s existing behavior of the shared |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 grgia has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.5.31-0 🚀
|
|
No help site update needed. The new indicator remains beta-gated, while the setup eligibility and tooltip fixes restore expected behavior without making existing instructions incorrect. |
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.5.31-0 🚀
|
|
@WojtekBoman @ZhenjaHorbach We used script for the Web and it's passed, but for app tried workaround and Global globe icon is not displayed. Is it expected?
No.Globe.mp4 |
|
It's okay |
|
Thank you, will check this off |
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.5.31-4 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Behind the

wiseReimbursementsbeta, Wallet bank rows withisGlobalReimbursementEnabled: trueshow a globe after the name. Its tooltip appears on hover on web and on long-press on native. These accounts also stop being eligible for setup, so "Enable Global Reimbursements", the GR banners and the Wise intro no longer offer a setup that is already done.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/692503
PROPOSAL:
Tests
Setup: an account with at least two verified (OPEN) USD business bank accounts. The backend webhook that sets the flag after Wise approval (https://github.com/Expensify/Expensify/issues/690517) is not live yet, so enable the beta and set the flag on the first account from the JS console once Wallet has loaded:
Leaving Wallet refetches the bank account list and resets the flag, so run the second line again after navigating away.
Test 1: Globe and tooltip (web / desktop)
Test 2: Long-press tooltip (iOS / Android)
Test 3: No setup offered for an account that already has global reimbursements
Onyx.merge('betaOverrides', {wiseReimbursements: false})Offline tests
QA Steps
Same as tests. QA needs an account on the
wiseReimbursementsbeta with a USD business bank account that hasisGlobalReimbursementEnabled: true. Until https://github.com/Expensify/Expensify/issues/690517 is deployed, that has to be a Corpay-enabled account or one where the flag was set by hand.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari