Repository navigation
Conversation
The table, the rule editor and the tax picker each treated a rate that is disabled, has become the workspace default, or has left the workspace differently, so a rule could name a rate the picker refused to offer, or read as unset while the table showed its raw ID. The rate a rule holds is now always shown. The picker keeps the selected rate whatever state it is in; the editor only ignores the workspace default on a new rule, since a saved rule's rate can become the default later and is still what that rule applies; and the table shares the editor's check so an unresolvable rate reads blank instead of as an ID. Fixes Expensify#100504 Fixes Expensify#100532 Fixes Expensify#100530 Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@JmillsExpensify Please confirm the translations, three new strings:
|
|
@chiragsalian 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] |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
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 |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari100504.mov100530.mov100532.mov100536-1.mov100536-2.mov100546.mov |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a0776b6e68
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Looks good overall. I'd slightly change the strings for the third one though. For instance:
|
|
Please fix conflict |
…egory-tax-rate-display Signed-off-by: krishna2323 <belivethatkg@gmail.com> # Conflicts: # src/pages/workspace/categories/CategorySettingsPage.tsx
|
@situchan resolved |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@JS00001 please run translations script when you get a chance. Thanks! |
|
#100530: it's expected to show |
situchan
left a comment
There was a problem hiding this comment.
LGTM
NAB comments and just waiting for translations
|
🎯 @situchan, 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. |
Signed-off-by: krishna2323 <belivethatkg@gmail.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 15f3f73d..7deeaabb 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -8053,6 +8053,11 @@ Fordern Sie Spesendetails wie Belege und Beschreibungen an, legen Sie Limits und
turnOnTaxesFirstPrompt: 'Kategorienregeln legen einen Standardsteuersatz fest. Aktivieren Sie Steuern in Ihren Workspace-Einstellungen, um sie zu verwenden.',
categoryRulesApplyGoingForwardTitle: 'Kategorienregeln gelten ab jetzt',
categoryRulesApplyGoingForwardPrompt: 'Ein Standardsatz für Steuern gilt für neue Ausgaben in dieser Kategorie. Bereits vorhandene Ausgaben werden nicht geändert.',
+ confirmErrorCategoryTaxMoveIsWorkspaceDefault:
+ 'Der ausgewählte Steuersatz ist jetzt die Voreinstellung für Ihren Workspace, daher ist diese Regel nicht mehr gültig. Wählen Sie einen anderen Steuersatz.',
+ addTaxRateFirstTitle: 'Fügen Sie zuerst einen Steuersatz hinzu',
+ addTaxRateFirstPrompt:
+ 'Kategorienregeln legen einen standardmäßigen Steuersatz fest. Fügen Sie einen anderen Steuersatz als den Standard Ihres Arbeitsbereichs hinzu, um sie zu verwenden.',
},
categoryRules: {
title: 'Kategorienregeln',
diff --git a/src/languages/el.ts b/src/languages/el.ts
index 8f3ffb09..4d085bed 100644
--- a/src/languages/el.ts
+++ b/src/languages/el.ts
@@ -8381,6 +8381,11 @@ ${reportName}`,
categoryRulesApplyGoingForwardTitle: 'Οι κανόνες κατηγορίας ισχύουν από εδώ και στο εξής',
categoryRulesApplyGoingForwardPrompt:
'Ένας προεπιλεγμένος φορολογικός συντελεστής εφαρμόζεται σε νέες δαπάνες σε αυτή την κατηγορία. Οι δαπάνες που υπάρχουν ήδη δεν θα αλλάξουν.',
+ confirmErrorCategoryTaxMoveIsWorkspaceDefault:
+ 'Ο επιλεγμένος φορολογικός συντελεστής είναι πλέον η προεπιλογή για τον χώρο εργασίας σας, επομένως αυτός ο κανόνας δεν είναι πλέον έγκυρος. Επιλέξτε έναν διαφορετικό φορολογικό συντελεστή.',
+ addTaxRateFirstTitle: 'Προσθέστε πρώτα έναν φορολογικό συντελεστή',
+ addTaxRateFirstPrompt:
+ 'Οι κανόνες κατηγορίας ορίζουν έναν προεπιλεγμένο φορολογικό συντελεστή. Προσθέστε έναν φορολογικό συντελεστή διαφορετικό από την προεπιλογή του χώρου εργασίας σας για να τους χρησιμοποιήσετε.',
},
newRule: {
title: 'Νέος κανόνας',
diff --git a/src/languages/es.ts b/src/languages/es.ts
index 5a7b4058..f4e56be8 100644
--- a/src/languages/es.ts
+++ b/src/languages/es.ts
@@ -8052,6 +8052,11 @@ ${reportName}`,
'Las reglas de categoría establecen una tasa de impuesto predeterminada. Activa los impuestos en la configuración de tu espacio de trabajo para usarlos.',
categoryRulesApplyGoingForwardTitle: 'Las reglas de categoría se aplican de ahora en adelante',
categoryRulesApplyGoingForwardPrompt: 'Se aplica una tasa de impuesto predeterminada a los nuevos gastos de esta categoría. Los gastos que ya existen no cambiarán.',
+ confirmErrorCategoryTaxMoveIsWorkspaceDefault:
+ 'El tipo impositivo seleccionado es ahora el predeterminado de tu espacio de trabajo, por lo que esta regla ya no es válida. Elige un tipo impositivo diferente.',
+ addTaxRateFirstTitle: 'Añade primero una tasa de impuesto',
+ addTaxRateFirstPrompt:
+ 'Las reglas de categoría establecen una tasa de impuestos predeterminada. Añade una tasa de impuestos distinta de la predeterminada de tu espacio de trabajo para poder usarlas.',
},
categoryRules: {
title: 'Reglas de categoría',
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index bdf279a0..d38b4b69 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -8076,6 +8076,11 @@ Rendez obligatoires des informations de dépense comme les reçus et les descrip
categoryRulesApplyGoingForwardTitle: 'Les règles de catégorie s’appliquent à partir de maintenant',
categoryRulesApplyGoingForwardPrompt:
'Un taux de taxe par défaut s’applique aux nouvelles dépenses de cette catégorie. Les dépenses déjà existantes ne seront pas modifiées.',
+ confirmErrorCategoryTaxMoveIsWorkspaceDefault:
+ 'Le taux de taxe sélectionné est désormais le taux par défaut de votre espace de travail, cette règle n’est donc plus valide. Choisissez un autre taux de taxe.',
+ addTaxRateFirstTitle: 'Ajoutez d’abord un taux de taxe',
+ addTaxRateFirstPrompt:
+ 'Les règles de catégorie définissent un taux de taxe par défaut. Ajoutez un taux de taxe autre que le taux par défaut de votre espace de travail pour les utiliser.',
},
categoryRules: {
title: 'Règles de catégorie',
diff --git a/src/languages/it.ts b/src/languages/it.ts
index b7a0dfeb..6affb234 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -8012,6 +8012,11 @@ Richiedi dettagli sulle spese come ricevute e descrizioni, imposta limiti e valo
turnOnTaxesFirstPrompt: 'Le regole di categoria impostano un’aliquota fiscale predefinita. Attiva le imposte nelle impostazioni dello spazio di lavoro per usarle.',
categoryRulesApplyGoingForwardTitle: 'Le regole di categoria si applicano da ora in poi',
categoryRulesApplyGoingForwardPrompt: 'Un’aliquota fiscale predefinita viene applicata alle nuove spese in questa categoria. Le spese già esistenti non verranno modificate.',
+ confirmErrorCategoryTaxMoveIsWorkspaceDefault:
+ 'L’aliquota fiscale selezionata è ora quella predefinita del tuo workspace, quindi questa regola non è più valida. Scegli un’altra aliquota fiscale.',
+ addTaxRateFirstTitle: "Aggiungi prima un'aliquota fiscale",
+ addTaxRateFirstPrompt:
+ 'Le regole di categoria impostano un’aliquota fiscale predefinita. Aggiungi un’aliquota diversa da quella predefinita dello spazio di lavoro per poterle usare.',
},
categoryRules: {
title: 'Regole di categoria',
diff --git a/src/languages/ja.ts b/src/languages/ja.ts
index f03f8b24..415243b4 100644
--- a/src/languages/ja.ts
+++ b/src/languages/ja.ts
@@ -7909,6 +7909,9 @@ ${reportName}`,
turnOnTaxesFirstPrompt: 'カテゴリルールでは、デフォルトの税率を設定できます。利用するには、ワークスペース設定で税金を有効にしてください。',
categoryRulesApplyGoingForwardTitle: 'カテゴリルールは今後に適用されます',
categoryRulesApplyGoingForwardPrompt: 'このカテゴリーの新しい経費には、デフォルトの税率が適用されます。既存の経費は変更されません。',
+ confirmErrorCategoryTaxMoveIsWorkspaceDefault: '選択した税率がワークスペースのデフォルトになっているため、このルールは無効になりました。別の税率を選択してください。',
+ addTaxRateFirstTitle: '先に税率を追加してください',
+ addTaxRateFirstPrompt: 'カテゴリルールではデフォルトの税率が設定されます。ワークスペースのデフォルト以外の税率を追加してから、カテゴリルールを使用してください。',
},
categoryRules: {
title: 'カテゴリルール',
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index 03f90048..6f40888a 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -7988,6 +7988,10 @@ Vereis onkostendetails zoals bonnen en beschrijvingen, stel limieten en standaar
turnOnTaxesFirstPrompt: 'Categorischregels stellen een standaardbelastingtarief in. Schakel belastingen in bij de instellingen van je workspace om ze te gebruiken.',
categoryRulesApplyGoingForwardTitle: 'Categoriegregels gelden vanaf nu',
categoryRulesApplyGoingForwardPrompt: 'Een standaardbelastingtarief is van toepassing op nieuwe uitgaven in deze categorie. Bestaande uitgaven veranderen niet.',
+ confirmErrorCategoryTaxMoveIsWorkspaceDefault:
+ 'Het geselecteerde belastingtarief is nu de standaard voor je werkruimte, waardoor deze regel niet meer geldig is. Kies een ander belastingtarief.',
+ addTaxRateFirstTitle: 'Voeg eerst een belastingtarief toe',
+ addTaxRateFirstPrompt: 'Categorielimieten stellen een standaardbelastingtarief in. Voeg een ander belastingtarief toe dan de standaard van je werkruimte om ze te gebruiken.',
},
categoryRules: {
title: 'Categorisatieregels',
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index 9c5b5ee5..29e3c858 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -8013,6 +8013,10 @@ Wymagaj szczegółów wydatków, takich jak paragony i opisy, ustawiaj limity i
turnOnTaxesFirstPrompt: 'Reguły kategorii ustawiają domyślną stawkę podatku. Włącz podatki w ustawieniach swojego workspace, aby z nich korzystać.',
categoryRulesApplyGoingForwardTitle: 'Reguły kategorii będą stosowane od teraz',
categoryRulesApplyGoingForwardPrompt: 'Domyślna stawka podatku będzie stosowana do nowych wydatków w tej kategorii. Istniejące wydatki nie zostaną zmienione.',
+ confirmErrorCategoryTaxMoveIsWorkspaceDefault:
+ 'Wybrana stawka podatku jest teraz domyślną stawką w twoim zespole, więc ta reguła nie jest już prawidłowa. Wybierz inną stawkę podatku.',
+ addTaxRateFirstTitle: 'Najpierw dodaj stawkę podatku',
+ addTaxRateFirstPrompt: 'Reguły kategorii ustawiają domyślną stawkę podatku. Dodaj stawkę podatku inną niż domyślna w twoim obszarze roboczym, żeby z nich korzystać.',
},
categoryRules: {
title: 'Reguły kategorii',
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index 1bae84e6..e09db721 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -7996,6 +7996,10 @@ Exija dados de despesas como recibos e descrições, defina limites e padrões e
turnOnTaxesFirstPrompt: 'As regras de categoria definem uma alíquota de imposto padrão. Ative os impostos nas configurações do seu workspace para usá-los.',
categoryRulesApplyGoingForwardTitle: 'As regras de categoria se aplicam daqui em diante',
categoryRulesApplyGoingForwardPrompt: 'Uma taxa de imposto padrão se aplica às novas despesas desta categoria. As despesas que já existem não serão alteradas.',
+ confirmErrorCategoryTaxMoveIsWorkspaceDefault:
+ 'A alíquota de imposto selecionada agora é o padrão do seu workspace, então esta regra não é mais válida. Escolha uma alíquota de imposto diferente.',
+ addTaxRateFirstTitle: 'Adicione uma alíquota de imposto primeiro',
+ addTaxRateFirstPrompt: 'As regras de categoria definem uma taxa de imposto padrão. Adicione uma taxa diferente da padrão do seu espaço de trabalho para usá-las.',
},
categoryRules: {
title: 'Regras de categoria',
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index 7de11143..dd5e32ac 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -7713,6 +7713,9 @@ ${reportName}`,
turnOnTaxesFirstPrompt: '类别规则会设置默认税率。请在工作区设置中启用税费以使用此功能。',
categoryRulesApplyGoingForwardTitle: '类别规则将从现在起生效',
categoryRulesApplyGoingForwardPrompt: '此类别中的新报销将应用默认税率,已存在的报销不会改变。',
+ confirmErrorCategoryTaxMoveIsWorkspaceDefault: '所选税率现在已成为您的工作区默认税率,因此此规则不再有效。请选择其他税率。',
+ addTaxRateFirstTitle: '请先添加税率',
+ addTaxRateFirstPrompt: '类别规则会设置一个默认税率。请添加一个不同于工作区默认值的税率以使用类别规则。',
},
categoryRules: {
title: '类别规则',
Note You can apply these changes to your branch by copying the patch to your clipboard, then running |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
…egory-tax-rate-display Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
🚧 JS00001 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/JS00001 in version: 9.4.76-0 🚀
|
|
🤖 No help site changes are required for this PR, so I did not create a docs PR. Every admin-visible change here is gated behind the Why each change is beta-only
What will need updating when
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.4.76-1 🚀
Bundle Size Analysis (Sentry): |
|
🤖 Payment issue created: #100997 |


Explanation of Change
$ #100504
$ #100532
$ #100530
$ #100536
$ #100546
PROPOSAL:
Tests
Prereqs: Control workspace,
rulesRevampbeta on, Taxes and Rules enabled, at least two taxrates besides the default (e.g. 5% and 10%).
Selected rate stays listed once disabled (#100504)
Selected rate stays listed once it becomes the workspace default (#100532)
Deleted rate reads blank, never as an ID (#100530)
id_TAX_RATE_1.Choosing a rate is unchanged (regression)
Search
Category is locked when no rate a category rule can use is left (#100536)
(Settings > Workspace default).
default tax rate. Add a tax rate other than your workspace default to use them.",
and that dismissing it leaves you on Apply expense defaults.
Locked for a disabled rate too (#100536)
shows the "Add a tax rate first" modal.
Taxes off keeps its own explainer (regression)
modal reads "Turn on taxes first" / "Category rules set a default tax rate. Turn on
taxes in your workspace settings to use them.", NOT the add-a-rate copy.
Category settings no longer sets a tax default under the revamp (#100546)
still listed and still open.
and edited there.
rulesRevampbeta off, reopen the category from Step 40, and verify the"Default tax rate" row IS still there, so nothing changes for production.
Offline tests
QA Steps
Same as tests
Verify that no errors appear in the JS console
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
Monosnap.screencast.2026-09-09.19-56-53.1.mp4