[NoQA] Show warning for locked HR toggle#89970
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 ts-node ./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 2eb97325..d5c5b12f 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -5742,6 +5742,7 @@ _Für ausführlichere Anweisungen [besuchen Sie unsere Hilfeseite](${CONST.NETSU
subtitle: 'Legen Sie einen abrechnungsfähigen Stundensatz für die Zeiterfassung fest.',
defaultHourlyRate: 'Standardstundensatz',
},
+ hrWarningModal: {disconnectText: 'Um HR zu deaktivieren, trenne bitte zuerst die Verbindung von Gusto mit diesem Workspace.'},
},
reports: {
reportsCustomTitleExamples: 'Beispiele:',
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index a0a522e3..7ca9a7c7 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -5762,6 +5762,7 @@ _Pour des instructions plus détaillées, [visitez notre site d’aide](${CONST.
subtitle: 'Définissez un taux horaire facturable pour le suivi du temps.',
defaultHourlyRate: 'Taux horaire par défaut',
},
+ hrWarningModal: {disconnectText: 'Pour désactiver les RH, veuillez d’abord déconnecter Gusto de cet espace de travail.'},
},
reports: {
reportsCustomTitleExamples: 'Exemples :',
diff --git a/src/languages/it.ts b/src/languages/it.ts
index efcd2228..c44d0975 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -5732,6 +5732,7 @@ _Per istruzioni più dettagliate, [visita il nostro sito di assistenza](${CONST.
subtitle: 'Imposta una tariffa oraria fatturabile per il rilevamento del tempo.',
defaultHourlyRate: 'Tariffa oraria predefinita',
},
+ hrWarningModal: {disconnectText: 'Per disattivare le risorse umane, disconnetti prima Gusto da questo spazio di lavoro.'},
},
reports: {
reportsCustomTitleExamples: 'Esempi:',
diff --git a/src/languages/ja.ts b/src/languages/ja.ts
index ebc08db9..45cef435 100644
--- a/src/languages/ja.ts
+++ b/src/languages/ja.ts
@@ -5665,6 +5665,7 @@ _詳しい手順については、[ヘルプサイトをご覧ください](${CO
subtitle: '時間追跡用の請求可能な時間単価を設定します。',
defaultHourlyRate: 'デフォルトの時給率',
},
+ hrWarningModal: {disconnectText: '人事機能を無効にするには、まずこのワークスペースから Gusto の連携を解除してください。'},
},
reports: {
reportsCustomTitleExamples: '例:',
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index c923ea18..bde5c570 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -5712,6 +5712,7 @@ _Voor meer gedetailleerde instructies, [bezoek onze help-site](${CONST.NETSUITE_
subtitle: 'Stel een factureerbaar uurtarief in voor tijdregistratie.',
defaultHourlyRate: 'Standaard uurtarief',
},
+ hrWarningModal: {disconnectText: 'Om HR uit te schakelen, verbreek eerst de verbinding van Gusto met deze workspace.'},
},
reports: {
reportsCustomTitleExamples: 'Voorbeelden:',
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index adaeeaa9..a784796c 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -5706,6 +5706,7 @@ _Aby uzyskać bardziej szczegółowe instrukcje, [odwiedź naszą stronę pomocy
subtitle: 'Ustaw godzinową stawkę rozliczeniową do śledzenia czasu.',
defaultHourlyRate: 'Domyślna stawka godzinowa',
},
+ hrWarningModal: {disconnectText: 'Aby wyłączyć HR, najpierw odłącz Gusto od tego miejsca pracy.'},
},
reports: {
reportsCustomTitleExamples: 'Przykłady:',
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index af446e4e..83654d5e 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -5712,6 +5712,7 @@ _Para instruções mais detalhadas, [visite nossa central de ajuda](${CONST.NETS
subtitle: 'Defina uma taxa horária faturável para o controle de tempo.',
defaultHourlyRate: 'Taxa horária padrão',
},
+ hrWarningModal: {disconnectText: 'Para desativar o RH, primeiro desconecte o Gusto deste workspace.'},
},
reports: {
reportsCustomTitleExamples: 'Exemplos:',
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index 191caae4..5ba7a59a 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -5567,6 +5567,7 @@ _如需更详细的说明,请[访问我们的帮助网站](${CONST.NETSUITE_IM
subtitle: '为时间跟踪设置可计费的小时费率。',
defaultHourlyRate: '默认时薪',
},
+ hrWarningModal: {disconnectText: '若要禁用人力资源功能,请先将 Gusto 与此工作区断开连接。'},
},
reports: {
reportsCustomTitleExamples: '示例:',
Note You can apply these changes to your branch by copying the patch to your clipboard, then running |
|
@shubham1206agra 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] |
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.
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
| hrWarningModal: { | ||
| disconnectText: 'To disable HR, please disconnect Gusto from this workspace first.', | ||
| }, |
There was a problem hiding this comment.
Eventually this will be parameterized for whatever connection is connected cc @Krishna2323
|
🚧 @yuwenmemon 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! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 9.3.69-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.69-18 🚀
|
Explanation of Change
Shows the standard "Oops! Not so fast..." dialog when the HR toggle is locked because Gusto is connected. This explains that HR cannot be disabled until Gusto is disconnected from the workspace.
Fixed Issues
$ #87011
PROPOSAL: N/A
Tests
Offline tests
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.ScrollViewcomponent to make it scrollable when more elements are added to the page.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
Screen.Recording.2026-05-08.at.4.38.33.AM.mov