Repository navigation
fix: name the account button, chat senders and feature switches correctly - #107951
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 |
|
@gijoe0295 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] |
Codex Review Summary: ✅ CompletedThis 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. |
|
@mountiny I need to run parrot here. It only change |
🦜 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 10c9d5ae..d342b233 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -11940,6 +11940,7 @@ Fügen Sie weitere Ausgabelimits hinzu, um den Cashflow Ihres Unternehmens zu sc
selectAllMembers: 'Alle Mitglieder auswählen',
selectAllValues: 'Alle Werte auswählen',
selectAllRules: 'Alle Regeln auswählen',
+ chatDetails: (chatName: string) => `${chatName}-Details`,
},
parentReportAction: {
deletedReport: 'Gelöschter Bericht',
diff --git a/src/languages/el.ts b/src/languages/el.ts
index 4cbd2706..dacf222a 100644
--- a/src/languages/el.ts
+++ b/src/languages/el.ts
@@ -12135,6 +12135,7 @@ ${reportName}`,
selectAllMembers: 'Επιλέξτε όλα τα μέλη',
selectAllValues: 'Επιλέξτε όλες τις τιμές',
selectAllRules: 'Επιλέξτε όλους τους κανόνες',
+ chatDetails: (chatName: string) => `Λεπτομέρειες ${chatName}`,
},
parentReportAction: {
deletedReport: 'Διαγραμμένη αναφορά',
diff --git a/src/languages/es.ts b/src/languages/es.ts
index 8750e6e3..2040ade1 100644
--- a/src/languages/es.ts
+++ b/src/languages/es.ts
@@ -12281,6 +12281,7 @@ ${reportName}`,
selectAllMembers: 'Seleccionar todos los miembros',
selectAllValues: 'Seleccionar todos los valores',
selectAllRules: 'Seleccionar todas las reglas',
+ chatDetails: (chatName: string) => `Detalles de ${chatName}`,
},
parentReportAction: {
deletedReport: 'Informe eliminado',
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index 523ef3d9..f3eafe9c 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -11970,6 +11970,7 @@ Ajoutez davantage de règles de dépenses pour protéger la trésorerie de l’e
selectAllMembers: 'Sélectionner tous les membres',
selectAllValues: 'Sélectionner toutes les valeurs',
selectAllRules: 'Sélectionner toutes les règles',
+ chatDetails: (chatName: string) => `Détails de ${chatName}`,
},
parentReportAction: {
deletedReport: 'Note de frais supprimée',
diff --git a/src/languages/it.ts b/src/languages/it.ts
index 3baef0d3..2527b068 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -11886,6 +11886,7 @@ Aggiungi altre regole di spesa per proteggere il flusso di cassa aziendale.`,
selectAllMembers: 'Seleziona tutti i membri',
selectAllValues: 'Seleziona tutti i valori',
selectAllRules: 'Seleziona tutte le regole',
+ chatDetails: (chatName: string) => `Dettagli ${chatName}`,
},
parentReportAction: {
deletedReport: 'Report eliminato',
diff --git a/src/languages/ja.ts b/src/languages/ja.ts
index 74c1221c..04afeb64 100644
--- a/src/languages/ja.ts
+++ b/src/languages/ja.ts
@@ -11692,6 +11692,7 @@ ${reportName}`,
selectAllMembers: 'すべてのメンバーを選択',
selectAllValues: 'すべての値を選択',
selectAllRules: 'すべてのルールを選択',
+ chatDetails: (chatName: string) => `${chatName}の詳細`,
},
parentReportAction: {
deletedReport: '削除されたレポート',
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index da41f59e..d438b28b 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -11855,6 +11855,7 @@ er bestedingsregels toe om de kasstroom van het bedrijf te beschermen.`,
selectAllMembers: 'Alle leden selecteren',
selectAllValues: 'Selecteer alle waarden',
selectAllRules: 'Selecteer alle regels',
+ chatDetails: (chatName: string) => `Details van ${chatName}`,
},
parentReportAction: {
deletedReport: 'Verwijderd rapport',
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index 01eceffe..5f2c2726 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -11904,6 +11904,7 @@ Dodaj więcej zasad wydatków, żeby chronić płynność finansową firmy.`,
selectAllMembers: 'Zaznacz wszystkich członków',
selectAllValues: 'Zaznacz wszystkie wartości',
selectAllRules: 'Zaznacz wszystkie reguły',
+ chatDetails: (chatName: string) => `Szczegóły: ${chatName}`,
},
parentReportAction: {
deletedReport: 'Usunięty raport',
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index 908742d4..3f792ba5 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -11864,6 +11864,7 @@ Adicione mais regras de gasto para proteger o fluxo de caixa da empresa.`,
selectAllMembers: 'Selecionar todos os membros',
selectAllValues: 'Selecionar todos os valores',
selectAllRules: 'Selecionar todas as regras',
+ chatDetails: (chatName: string) => `Detalhes de ${chatName}`,
},
parentReportAction: {
deletedReport: 'Relatório excluído',
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index 251125b2..3403f693 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -11393,6 +11393,7 @@ ${reportName}`,
selectAllMembers: '全选所有成员',
selectAllValues: '选择所有值',
selectAllRules: '选择所有规则',
+ chatDetails: (chatName: string) => `${chatName} 详情`,
},
parentReportAction: {
deletedReport: '已删除的报告',
Note You can apply these changes to your branch by copying the patch to your clipboard, then running |
| titleStyle={styles.textStrong} | ||
| subtitle={subtitle} | ||
| switchAccessibilityLabel={subtitle} | ||
| switchAccessibilityLabel={title} |
There was a problem hiding this comment.
Before this PR, we'd have only 2 stops: title → switch that read Categories → Track and organize spend., Button, Toggle, Track and organize spend.
Now we have 3 stops: title → description → switch that read Categories → Track and organize spend. → Categories, Track and organize spend., 1, Button, Toggle, Categories, Track and organize spend.. So both the title and description are announced twice.
I don't know which one is better. I remember in the past we have some attemps to fix bugs regarding labels being announced twice in title & switch.
cc @trjExpensify or anyone with accessibility exp here.
Before:
Untitled.mov
After:
Untitled2.mov
There was a problem hiding this comment.
The switch now says what it turns on, the same as the other toggle rows in the app, which also read title and description again on the switch. Removing that repetition means changing the shared ToggleSettingsOptionRow, which touches over a hundred rows, so I'd keep it out of this PR. Happy to follow up separately if trjExpensify wants that.
| isWorkspaceActor, | ||
| shouldDisplayAllActors: displayAllActors, | ||
| actorHint: String(isWorkspaceActor && !!resolvedPrimaryAvatar.id ? resolvedPrimaryAvatar.id : login || defaultDisplayName).replaceAll(CONST.REGEX.MERGED_ACCOUNT_PREFIX, ''), | ||
| actorHint: isWorkspaceActor && resolvedPrimaryAvatar.name ? resolvedPrimaryAvatar.name : personActorHint, |
There was a problem hiding this comment.
Gap: When a report preview has several senders, the heading shows "Alice & Bob" (here). But actorHint (or personActionHint) is only one person. So screen readers say "Alice" while the screen shows "Alice & Bob".
There was a problem hiding this comment.
Good find. The heading buttons now read both names when the preview shows two senders.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-11-30.at.21.33.13.movAndroid: mWeb ChromeMacOS: Chrome / SafariScreen.Recording.2026-11-30.at.21.27.01.mov |
|
Conflicts |
|
@mountiny Conflicts resolved. |
|
🚧 mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
@BartekObudzinski @mountiny This PR seems to a11Y testing which is OOO, could this be verified internally? |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.5.57-0 🚀
|
|
No help site update needed — this PR corrects screen-reader labels for existing controls without changing workflows or making any existing article sentence incorrect. |
|
@kavimuru can you just let them know to test it once they are back? Or can some other testers do this? I don't think this is anything complicated to set up, is it? |








Explanation of Change
Four accessibility labels named the wrong thing.
getTabAccessibilityLabellike the other tabs and reads "Account".accessibilityHints.chatDetailskey, and falls back to "Details" when the chat has no name. Onlyen.tshas the key, so the translation workflow needs to run on this PR to add it to the other locales.Fixed Issues
$ #108003
PROPOSAL:
Tests
Offline tests
Same as tests. The labels come from data already on the device.
QA Steps
Same as tests.
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
Accessibility tree from
agent-device snapshoton iOS 27.2:[button] "Account."[button] "Account"[button] "Details"[button] "Concierge details"[switch] "Track and organize spend."[switch] "Categories, Track and organize spend."On iOS the message sender avatar is merged into the message row, so the sender label change shows on Android.
iOS: mWeb Safari
MacOS: Chrome / Safari
🤖 Generated with Claude Code