Skip to content

[Payment due @daledah] [no qa] Add violation messages for the ruleViolation type - #103080

Merged
JS00001 merged 19 commits into
mainfrom
jsenyitko-rules-violation
Oct 8, 2026
Merged

JS00001 merged 19 commits into
mainfrom
jsenyitko-rules-violation

Conversation

@JS00001

@JS00001 JS00001 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

Adds support for the rulesViolation violation and builds the message on the FE (localized) matching https://github.com/Expensify/Auth/blob/c05949221e0de370adbfbdba3afd60a325feceae/auth/lib/Violations.cpp#L2233

This violation will not show up on the UI yet, so there is no UI to test. This will come in future PRs

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/682794

Tests

N/A

  • Verify that no errors appear in the JS console

Offline tests

N/A

QA Steps

N/A

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

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

@codecov

codecov Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

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.

Files with missing lines Coverage Δ
src/CONST/index.ts 95.90% <100.00%> (+0.03%) ⬆️
...nents/ReportActionItem/MoneyRequestReceiptView.tsx 72.05% <100.00%> (+0.10%) ⬆️
...c/components/ReportActionItem/MoneyRequestView.tsx 83.65% <100.00%> (+0.03%) ⬆️
...m/TransactionPreview/TransactionPreviewContent.tsx 82.20% <100.00%> (+0.15%) ⬆️
...nents/TransactionItemRow/TransactionItemRowRBR.tsx 97.36% <100.00%> (+0.07%) ⬆️
src/components/ViolationMessages.tsx 0.00% <ø> (ø)
src/libs/DebugUtils.ts 69.24% <ø> (ø)
src/hooks/useViolations.ts 54.54% <0.00%> (-0.72%) ⬇️
src/libs/SearchQueryUtils.ts 89.57% <50.00%> (+0.01%) ⬆️
src/libs/SearchUIUtils.ts 72.47% <90.90%> (+0.02%) ⬆️
... and 1 more
... and 24 files with indirect coverage changes

@OSBotify

This comment has been minimized.

@OSBotify

This comment has been minimized.

@JS00001 JS00001 changed the title stash cahnges Add violation messages for the ruleViolation type Oct 6, 2026
@JS00001
JS00001 marked this pull request as ready for review October 6, 2026 16:13
@JS00001
JS00001 requested review from a team as code owners October 6, 2026 16:13
@melvin-bot
melvin-bot Bot requested review from daledah and trjExpensify and removed request for a team October 6, 2026 16:13
@melvin-bot

melvin-bot Bot commented Oct 6, 2026

Copy link
Copy Markdown

@daledah 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]

@JS00001 JS00001 changed the title Add violation messages for the ruleViolation type [no qa] Add violation messages for the ruleViolation type Oct 6, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T16:22:16.825541Z bd4de40 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Comment thread src/libs/Violations/ViolationsUtils.ts
luacmartins
luacmartins previously approved these changes Oct 7, 2026
@daledah

daledah commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

reviewing it now

Comment thread src/libs/Violations/ViolationsUtils.ts Outdated

@daledah daledah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code changes LGTM, with only one remaining minor comment.

@melvin-bot
melvin-bot Bot requested a review from amyevans October 8, 2026 05:00
@melvin-bot

melvin-bot Bot commented Oct 8, 2026

Copy link
Copy Markdown

@amyevans 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]

@melvin-bot melvin-bot Bot changed the title [no qa] Add violation messages for the ruleViolation type [Payment due @daledah] [no qa] Add violation messages for the ruleViolation type Oct 8, 2026
@melvin-bot

melvin-bot Bot commented Oct 8, 2026

Copy link
Copy Markdown

🎯 @daledah, thanks for reviewing and testing this PR! 🎉

A payment issue will be created for your review once this PR is deployed to production.
E/E issue linked to the PR - https://www.github.com/Expensify/Expensify/issues/682794.

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.

@OSBotify

OSBotify commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

🦜 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 diff
diff --git a/src/languages/de.ts b/src/languages/de.ts
index fe45d4c9..38752e1c 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -10957,14 +10957,14 @@ Fügen Sie weitere Ausgabelimits hinzu, um den Cashflow Ihres Unternehmens zu sc
             expense: (adjectives: string) => (adjectives ? `${adjectives} Ausgabe` : 'Ausgabe'),
             perDiem: 'Tagespauschale',
             notExpenseType: (expenseType: string) => `kein(e) ${expenseType}`,
-            billable: {enabled: 'Abrechenbar', disabled: 'Nicht verrechenbar'},
+            billable: {enabled: 'Abrechenbar', disabled: 'Nicht fakturierbar'},
             reimbursable: {enabled: 'Erstattungsfähig', disabled: 'Nicht erstattungsfähig'},
             withoutCategory: 'ohne Kategorie',
             fromMerchant: (merchant: string) => `von ${merchant}`,
             notFromMerchant: (merchant: string) => `nicht von ${merchant}`,
             fromMerchantsContaining: (merchant: string) => `von Händlern mit ${merchant}`,
-            notFromMerchantsContaining: (merchant: string) => `nicht von Anbietern, die ${merchant} enthalten`,
-            withVendor: (vendor: string) => `mit Händler ${vendor}`,
+            notFromMerchantsContaining: (merchant: string) => `nicht von Anbietern mit ${merchant}`,
+            withVendor: (vendor: string) => `mit Anbieter ${vendor}`,
             withoutVendor: (vendor: string) => `ohne Anbieter ${vendor}`,
             fromVendor: (vendor: string) => `von ${vendor}`,
             notFromVendor: (vendor: string) => `nicht von ${vendor}`,
@@ -10973,7 +10973,7 @@ Fügen Sie weitere Ausgabelimits hinzu, um den Cashflow Ihres Unternehmens zu sc
             underAmount: (amount: string) => `unter ${amount}`,
             amountOrLess: (amount: string) => `${amount} oder weniger`,
             withoutTag: 'ohne Tag',
-            tagged: (tag: string) => `markiert mit ${tag}`,
+            tagged: (tag: string) => `mit Schlagwort ${tag} versehen`,
             inCurrency: (currency: string) => `in ${currency}`,
             notInCurrency: (currency: string) => `nicht in ${currency}`,
             paidInCurrency: (currency: string) => `bezahlt in ${currency}`,
diff --git a/src/languages/el.ts b/src/languages/el.ts
index d41785ed..69586211 100644
--- a/src/languages/el.ts
+++ b/src/languages/el.ts
@@ -11169,10 +11169,10 @@ ${reportName}`,
         ruleViolation: {
             fallback: 'Παραβιάζει την πολιτική εξόδων',
             anyExpense: 'Οποιαδήποτε δαπάνη',
-            expense: (adjectives: string) => (adjectives ? `${adjectives} έξοδο` : 'Έξοδο'),
+            expense: (adjectives: string) => (adjectives ? `${adjectives} δαπάνη` : 'Δαπάνη'),
             perDiem: 'ημερήσια αποζημίωση',
             notExpenseType: (expenseType: string) => `όχι ${expenseType}`,
-            billable: {enabled: 'Χρεώσιμο', disabled: 'Μη τιμολογήσιμα'},
+            billable: {enabled: 'Χρεώσιμο', disabled: 'Μη χρεώσιμη'},
             reimbursable: {enabled: 'Επιστρέψιμο', disabled: 'Μη αποζημιώσιμο'},
             withoutCategory: 'χωρίς κατηγορία',
             fromMerchant: (merchant: string) => `από ${merchant}`,
@@ -11188,17 +11188,17 @@ ${reportName}`,
             underAmount: (amount: string) => `κάτω από ${amount}`,
             amountOrLess: (amount: string) => `${amount} ή λιγότερο`,
             withoutTag: 'χωρίς ετικέτα',
-            tagged: (tag: string) => `με ετικέτα ${tag}`,
+            tagged: (tag: string) => `επισημασμένο με ${tag}`,
             inCurrency: (currency: string) => `σε ${currency}`,
             notInCurrency: (currency: string) => `όχι σε ${currency}`,
             paidInCurrency: (currency: string) => `πληρώθηκε σε ${currency}`,
-            notPaidInCurrency: (currency: string) => `δεν έχουν πληρωθεί σε ${currency}`,
+            notPaidInCurrency: (currency: string) => `δεν πληρώθηκε σε ${currency}`,
             attachment: 'ένα συνημμένο',
             attribute: (attribute: string) => `ένα ${attribute}`,
             withAttributes: (attributes: string) => `με ${attributes}`,
             withoutAttributes: (attributes: string) => `χωρίς ${attributes}`,
             merchantCode: (code: string) => `MCC ${code}`,
-            atMerchantCode: (merchantCode: string) => `στον/στην ${merchantCode}`,
+            atMerchantCode: (merchantCode: string) => `στο ${merchantCode}`,
         },
     },
     reportViolations: {
diff --git a/src/languages/es.ts b/src/languages/es.ts
index 52b4ffbe..1d20d8c7 100644
--- a/src/languages/es.ts
+++ b/src/languages/es.ts
@@ -11153,31 +11153,31 @@ ${reportName}`,
             fallback: 'Infringe la política de gastos',
             anyExpense: 'Cualquier gasto',
             expense: (adjectives: string) => (adjectives ? `gasto ${adjectives}` : 'Gasto'),
-            perDiem: 'Per diem',
-            notExpenseType: (expenseType: string) => `no es un(a) ${expenseType}`,
+            perDiem: 'per diem',
+            notExpenseType: (expenseType: string) => `no es un/una ${expenseType}`,
             billable: {enabled: 'Facturable', disabled: 'No facturable'},
             reimbursable: {enabled: 'Reembolsable', disabled: 'No reembolsable'},
             withoutCategory: 'sin categoría',
             fromMerchant: (merchant: string) => `de ${merchant}`,
-            notFromMerchant: (merchant: string) => `no de ${merchant}`,
-            fromMerchantsContaining: (merchant: string) => `de comerciantes que contengan ${merchant}`,
-            notFromMerchantsContaining: (merchant: string) => `no de comercios que contengan ${merchant}`,
+            notFromMerchant: (merchant: string) => `no es de ${merchant}`,
+            fromMerchantsContaining: (merchant: string) => `de comerciantes que contienen ${merchant}`,
+            notFromMerchantsContaining: (merchant: string) => `que no sean de comercios que contengan ${merchant}`,
             withVendor: (vendor: string) => `con el proveedor ${vendor}`,
             withoutVendor: (vendor: string) => `sin proveedor ${vendor}`,
             fromVendor: (vendor: string) => `de ${vendor}`,
-            notFromVendor: (vendor: string) => `no es de ${vendor}`,
+            notFromVendor: (vendor: string) => `no de ${vendor}`,
             overAmount: (amount: string) => `más de ${amount}`,
             amountOrMore: (amount: string) => `${amount} o más`,
             underAmount: (amount: string) => `menos de ${amount}`,
             amountOrLess: (amount: string) => `${amount} o menos`,
-            withoutTag: 'sin etiqueta',
+            withoutTag: 'sin una etiqueta',
             tagged: (tag: string) => `etiquetado como ${tag}`,
             inCurrency: (currency: string) => `en ${currency}`,
             notInCurrency: (currency: string) => `no en ${currency}`,
             paidInCurrency: (currency: string) => `pagado en ${currency}`,
             notPaidInCurrency: (currency: string) => `no pagado en ${currency}`,
             attachment: 'un archivo adjunto',
-            attribute: (attribute: string) => `un/una ${attribute}`,
+            attribute: (attribute: string) => `un(a) ${attribute}`,
             withAttributes: (attributes: string) => `con ${attributes}`,
             withoutAttributes: (attributes: string) => `sin ${attributes}`,
             merchantCode: (code: string) => `MCC ${code}`,
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index e9a4831f..39c2a00d 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -10975,23 +10975,23 @@ Ajoutez davantage de règles de dépenses pour protéger la trésorerie de l’e
             taxRequired: 'Taux de taxe manquant',
         },
         ruleViolation: {
-            fallback: 'Viole la politique de dépenses',
-            anyExpense: "N'importe quelle dépense",
+            fallback: 'Enfreint la politique de dépenses',
+            anyExpense: 'Toute dépense',
             expense: (adjectives: string) => (adjectives ? `Dépense ${adjectives}` : 'Dépense'),
             perDiem: 'indemnité journalière',
-            notExpenseType: (expenseType: string) => `pas une ${expenseType}`,
-            billable: {enabled: 'Facturable', disabled: 'Non refacturable'},
+            notExpenseType: (expenseType: string) => `n’est pas une ${expenseType}`,
+            billable: {enabled: 'Facturable', disabled: 'Non facturable'},
             reimbursable: {enabled: 'Remboursable', disabled: 'Non remboursable'},
             withoutCategory: 'sans catégorie',
             fromMerchant: (merchant: string) => `de la part de ${merchant}`,
             notFromMerchant: (merchant: string) => `pas de ${merchant}`,
-            fromMerchantsContaining: (merchant: string) => `des marchands contenant ${merchant}`,
-            notFromMerchantsContaining: (merchant: string) => `ne provenant pas de marchands contenant ${merchant}`,
+            fromMerchantsContaining: (merchant: string) => `des commerçants contenant ${merchant}`,
+            notFromMerchantsContaining: (merchant: string) => `ne provenant pas de commerçants contenant ${merchant}`,
             withVendor: (vendor: string) => `avec le fournisseur ${vendor}`,
             withoutVendor: (vendor: string) => `sans fournisseur ${vendor}`,
             fromVendor: (vendor: string) => `de ${vendor}`,
-            notFromVendor: (vendor: string) => `pas de ${vendor}`,
-            overAmount: (amount: string) => `plus de ${amount}`,
+            notFromVendor: (vendor: string) => `non provenant de ${vendor}`,
+            overAmount: (amount: string) => `au-delà de ${amount}`,
             amountOrMore: (amount: string) => `${amount} ou plus`,
             underAmount: (amount: string) => `inférieur à ${amount}`,
             amountOrLess: (amount: string) => `${amount} ou moins`,
diff --git a/src/languages/it.ts b/src/languages/it.ts
index 1908615c..96327c6b 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -10905,31 +10905,31 @@ Aggiungi altre regole di spesa per proteggere il flusso di cassa aziendale.`,
             fallback: 'Viola la politica spese',
             anyExpense: 'Qualsiasi spesa',
             expense: (adjectives: string) => (adjectives ? `spesa ${adjectives}` : 'Spesa'),
-            perDiem: 'indennità di trasferta',
-            notExpenseType: (expenseType: string) => `non è un/una ${expenseType}`,
+            perDiem: 'diaria',
+            notExpenseType: (expenseType: string) => `non è un ${expenseType}`,
             billable: {enabled: 'Fatturabile', disabled: 'Non fatturabile'},
             reimbursable: {enabled: 'Rimborsabile', disabled: 'Non rimborsabile'},
             withoutCategory: 'senza categoria',
             fromMerchant: (merchant: string) => `da ${merchant}`,
             notFromMerchant: (merchant: string) => `non di ${merchant}`,
             fromMerchantsContaining: (merchant: string) => `da esercenti che contengono ${merchant}`,
-            notFromMerchantsContaining: (merchant: string) => `non da esercenti che contengono ${merchant}`,
+            notFromMerchantsContaining: (merchant: string) => `non dai commercianti che contengono ${merchant}`,
             withVendor: (vendor: string) => `con il fornitore ${vendor}`,
             withoutVendor: (vendor: string) => `senza fornitore ${vendor}`,
             fromVendor: (vendor: string) => `da ${vendor}`,
-            notFromVendor: (vendor: string) => `non di ${vendor}`,
+            notFromVendor: (vendor: string) => `non da ${vendor}`,
             overAmount: (amount: string) => `oltre ${amount}`,
             amountOrMore: (amount: string) => `${amount} o più`,
-            underAmount: (amount: string) => `meno di ${amount}`,
+            underAmount: (amount: string) => `inferiore a ${amount}`,
             amountOrLess: (amount: string) => `${amount} o meno`,
             withoutTag: 'senza un tag',
-            tagged: (tag: string) => `contrassegnato con ${tag}`,
+            tagged: (tag: string) => `taggato ${tag}`,
             inCurrency: (currency: string) => `in ${currency}`,
             notInCurrency: (currency: string) => `non in ${currency}`,
             paidInCurrency: (currency: string) => `pagato in ${currency}`,
             notPaidInCurrency: (currency: string) => `non pagato in ${currency}`,
             attachment: 'un allegato',
-            attribute: (attribute: string) => `un*${attribute}*`,
+            attribute: (attribute: string) => `a ${attribute}`,
             withAttributes: (attributes: string) => `con ${attributes}`,
             withoutAttributes: (attributes: string) => `senza ${attributes}`,
             merchantCode: (code: string) => `MCC ${code}`,
diff --git a/src/languages/ja.ts b/src/languages/ja.ts
index 7114b608..f863e0ed 100644
--- a/src/languages/ja.ts
+++ b/src/languages/ja.ts
@@ -10748,33 +10748,33 @@ ${reportName}`,
             expense: (adjectives: string) => (adjectives ? `${adjectives}経費` : '経費'),
             perDiem: '日当',
             notExpenseType: (expenseType: string) => `${expenseType}ではありません`,
-            billable: {enabled: '請求対象', disabled: '請求不可'},
+            billable: {enabled: '請求可能', disabled: '請求対象外'},
             reimbursable: {enabled: '精算対象', disabled: '精算対象外'},
             withoutCategory: 'カテゴリなし',
             fromMerchant: (merchant: string) => `${merchant} から`,
-            notFromMerchant: (merchant: string) => `${merchant} 以外`,
-            fromMerchantsContaining: (merchant: string) => `${merchant} を含む加盟店から`,
-            notFromMerchantsContaining: (merchant: string) => `${merchant} を含まない加盟店からのもの`,
-            withVendor: (vendor: string) => `仕入先 ${vendor} と`,
-            withoutVendor: (vendor: string) => `ベンダー ${vendor} なし`,
+            notFromMerchant: (merchant: string) => `${merchant} からのものではありません`,
+            fromMerchantsContaining: (merchant: string) => `${merchant} を含む店舗から`,
+            notFromMerchantsContaining: (merchant: string) => `${merchant} を含まない加盟店から`,
+            withVendor: (vendor: string) => `取引先 ${vendor} に対して`,
+            withoutVendor: (vendor: string) => `仕入先 ${vendor} なし`,
             fromVendor: (vendor: string) => `${vendor} から`,
-            notFromVendor: (vendor: string) => `${vendor} 以外`,
-            overAmount: (amount: string) => `${amount} を超える`,
+            notFromVendor: (vendor: string) => `${vendor} からのものではありません`,
+            overAmount: (amount: string) => `${amount} を超過`,
             amountOrMore: (amount: string) => `${amount} 以上`,
             underAmount: (amount: string) => `${amount} 未満`,
             amountOrLess: (amount: string) => `${amount} 以下`,
             withoutTag: 'タグなし',
-            tagged: (tag: string) => `${tag} をタグ付けしました`,
+            tagged: (tag: string) => `タグ: ${tag}`,
             inCurrency: (currency: string) => `${currency}建て`,
-            notInCurrency: (currency: string) => `${currency} 以外`,
-            paidInCurrency: (currency: string) => `${currency} で支払済み`,
+            notInCurrency: (currency: string) => `${currency}以外`,
+            paidInCurrency: (currency: string) => `${currency}で支払いました`,
             notPaidInCurrency: (currency: string) => `${currency}で未払い`,
             attachment: '添付ファイル',
-            attribute: (attribute: string) => `${attribute} を 1 つ`,
-            withAttributes: (attributes: string) => `${attributes} 付き`,
+            attribute: (attribute: string) => `${attribute} を追加`,
+            withAttributes: (attributes: string) => `${attributes} を使用`,
             withoutAttributes: (attributes: string) => `${attributes} なし`,
             merchantCode: (code: string) => `MCC ${code}`,
-            atMerchantCode: (merchantCode: string) => `${merchantCode} にて`,
+            atMerchantCode: (merchantCode: string) => `${merchantCode} で`,
         },
     },
     reportViolations: {
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index d75e103e..ccadffa0 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -10870,7 +10870,7 @@ er bestedingsregels toe om de kasstroom van het bedrijf te beschermen.`,
             taxRequired: 'Ontbrekend belastingtarief',
         },
         ruleViolation: {
-            fallback: 'Schendt onkostenbeleid',
+            fallback: 'Schendt declaratiebeleid',
             anyExpense: 'Elke uitgave',
             expense: (adjectives: string) => (adjectives ? `${adjectives} uitgave` : 'Uitgave'),
             perDiem: 'dagvergoeding',
@@ -10880,18 +10880,18 @@ er bestedingsregels toe om de kasstroom van het bedrijf te beschermen.`,
             withoutCategory: 'zonder categorie',
             fromMerchant: (merchant: string) => `van ${merchant}`,
             notFromMerchant: (merchant: string) => `niet van ${merchant}`,
-            fromMerchantsContaining: (merchant: string) => `van handelaren met ${merchant}`,
+            fromMerchantsContaining: (merchant: string) => `van verkopers die ${merchant} bevatten`,
             notFromMerchantsContaining: (merchant: string) => `niet van handelaren met ${merchant}`,
             withVendor: (vendor: string) => `met leverancier ${vendor}`,
             withoutVendor: (vendor: string) => `zonder leverancier ${vendor}`,
             fromVendor: (vendor: string) => `van ${vendor}`,
             notFromVendor: (vendor: string) => `niet van ${vendor}`,
-            overAmount: (amount: string) => `boven ${amount}`,
+            overAmount: (amount: string) => `over ${amount}`,
             amountOrMore: (amount: string) => `${amount} of meer`,
             underAmount: (amount: string) => `onder ${amount}`,
             amountOrLess: (amount: string) => `${amount} of minder`,
-            withoutTag: 'zonder een label',
-            tagged: (tag: string) => `gelabeld met ${tag}`,
+            withoutTag: 'zonder tag',
+            tagged: (tag: string) => `getagd met ${tag}`,
             inCurrency: (currency: string) => `in ${currency}`,
             notInCurrency: (currency: string) => `niet in ${currency}`,
             paidInCurrency: (currency: string) => `betaald in ${currency}`,
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index 6566124a..46dfd5aa 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -10883,8 +10883,8 @@ Dodaj więcej zasad wydatków, żeby chronić płynność finansową firmy.`,
             expense: (adjectives: string) => (adjectives ? `${adjectives} wydatek` : 'Wydatek'),
             perDiem: 'ryczałt dzienny',
             notExpenseType: (expenseType: string) => `nie jest typem ${expenseType}`,
-            billable: {enabled: 'Do refakturowania', disabled: 'Niefakturowalne'},
-            reimbursable: {enabled: 'Podlegające zwrotowi', disabled: 'Nierefundowane'},
+            billable: {enabled: 'Do refakturowania', disabled: 'Niefakturowane'},
+            reimbursable: {enabled: 'Podlegające zwrotowi', disabled: 'Niezwracane'},
             withoutCategory: 'bez kategorii',
             fromMerchant: (merchant: string) => `od ${merchant}`,
             notFromMerchant: (merchant: string) => `nie od ${merchant}`,
@@ -10902,11 +10902,11 @@ Dodaj więcej zasad wydatków, żeby chronić płynność finansową firmy.`,
             tagged: (tag: string) => `oznaczono tagiem ${tag}`,
             inCurrency: (currency: string) => `w ${currency}`,
             notInCurrency: (currency: string) => `nie w ${currency}`,
-            paidInCurrency: (currency: string) => `zapłacone w ${currency}`,
+            paidInCurrency: (currency: string) => `zapłacono w ${currency}`,
             notPaidInCurrency: (currency: string) => `niezapłacone w ${currency}`,
             attachment: 'załącznik',
             attribute: (attribute: string) => `${attribute}`,
-            withAttributes: (attributes: string) => `z atrybutami ${attributes}`,
+            withAttributes: (attributes: string) => `z ${attributes}`,
             withoutAttributes: (attributes: string) => `bez ${attributes}`,
             merchantCode: (code: string) => `MCC ${code}`,
             atMerchantCode: (merchantCode: string) => `u ${merchantCode}`,
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index 5ea9fadd..5753386a 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -10873,21 +10873,21 @@ Adicione mais regras de gasto para proteger o fluxo de caixa da empresa.`,
             reimbursable: {enabled: 'Reembolsável', disabled: 'Não reembolsável'},
             withoutCategory: 'sem categoria',
             fromMerchant: (merchant: string) => `de ${merchant}`,
-            notFromMerchant: (merchant: string) => `não de ${merchant}`,
-            fromMerchantsContaining: (merchant: string) => `de estabelecimentos que contêm ${merchant}`,
-            notFromMerchantsContaining: (merchant: string) => `não de estabelecimentos que contenham ${merchant}`,
+            notFromMerchant: (merchant: string) => `não é de ${merchant}`,
+            fromMerchantsContaining: (merchant: string) => `de estabelecimentos que contenham ${merchant}`,
+            notFromMerchantsContaining: (merchant: string) => `que não sejam de comerciantes contendo ${merchant}`,
             withVendor: (vendor: string) => `com o fornecedor ${vendor}`,
             withoutVendor: (vendor: string) => `sem fornecedor ${vendor}`,
             fromVendor: (vendor: string) => `de ${vendor}`,
             notFromVendor: (vendor: string) => `não é de ${vendor}`,
-            overAmount: (amount: string) => `mais de ${amount}`,
+            overAmount: (amount: string) => `acima de ${amount}`,
             amountOrMore: (amount: string) => `${amount} ou mais`,
             underAmount: (amount: string) => `abaixo de ${amount}`,
             amountOrLess: (amount: string) => `${amount} ou menos`,
             withoutTag: 'sem uma tag',
-            tagged: (tag: string) => `marcado como ${tag}`,
+            tagged: (tag: string) => `marcado com ${tag}`,
             inCurrency: (currency: string) => `em ${currency}`,
-            notInCurrency: (currency: string) => `não em ${currency}`,
+            notInCurrency: (currency: string) => `não está em ${currency}`,
             paidInCurrency: (currency: string) => `pago em ${currency}`,
             notPaidInCurrency: (currency: string) => `não pago em ${currency}`,
             attachment: 'um anexo',
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index 21bc8c5d..534b8cf6 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -10466,31 +10466,31 @@ ${reportName}`,
             anyExpense: '任何报销费用',
             expense: (adjectives: string) => (adjectives ? `${adjectives} 报销费用` : '报销费用'),
             perDiem: '每日津贴',
-            notExpenseType: (expenseType: string) => `不是 ${expenseType}`,
+            notExpenseType: (expenseType: string) => `不是${expenseType}`,
             billable: {enabled: '可计费', disabled: '不可计费'},
             reimbursable: {enabled: '可报销', disabled: '不可报销'},
             withoutCategory: '无类别',
             fromMerchant: (merchant: string) => `来自 ${merchant}`,
             notFromMerchant: (merchant: string) => `非来自 ${merchant}`,
-            fromMerchantsContaining: (merchant: string) => `来自包含 ${merchant} 的商家`,
-            notFromMerchantsContaining: (merchant: string) => `不来自包含 ${merchant} 的商家`,
-            withVendor: (vendor: string) => `与商家 ${vendor}`,
+            fromMerchantsContaining: (merchant: string) => `来自包含「${merchant}」的商家`,
+            notFromMerchantsContaining: (merchant: string) => `商家名称不包含 ${merchant}`,
+            withVendor: (vendor: string) => `与供应商 ${vendor}`,
             withoutVendor: (vendor: string) => `无供应商 ${vendor}`,
             fromVendor: (vendor: string) => `来自 ${vendor}`,
             notFromVendor: (vendor: string) => `非来自 ${vendor}`,
             overAmount: (amount: string) => `超过 ${amount}`,
-            amountOrMore: (amount: string) => `${amount} 或更多`,
+            amountOrMore: (amount: string) => `${amount} 或以上`,
             underAmount: (amount: string) => `低于 ${amount}`,
-            amountOrLess: (amount: string) => `${amount} 或以下`,
+            amountOrLess: (amount: string) => `${amount} 或更少`,
             withoutTag: '没有标签',
-            tagged: (tag: string) => `已添加标签 ${tag}`,
-            inCurrency: (currency: string) => `以 ${currency} 计`,
-            notInCurrency: (currency: string) => `不是以 ${currency} 为单位`,
+            tagged: (tag: string) => `已标记为 ${tag}`,
+            inCurrency: (currency: string) => `以${currency}计`,
+            notInCurrency: (currency: string) => `不是以 ${currency} 计价`,
             paidInCurrency: (currency: string) => `以 ${currency} 支付`,
             notPaidInCurrency: (currency: string) => `未以 ${currency} 支付`,
             attachment: '一个附件',
             attribute: (attribute: string) => `一个 ${attribute}`,
-            withAttributes: (attributes: string) => `带有 ${attributes}`,
+            withAttributes: (attributes: string) => `包含 ${attributes}`,
             withoutAttributes: (attributes: string) => `不含 ${attributes}`,
             merchantCode: (code: string) => `MCC ${code}`,
             atMerchantCode: (merchantCode: string) => `在 ${merchantCode}`,

Note

You can apply these changes to your branch by copying the patch to your clipboard, then running pbpaste | git apply 😉

View workflow run

@JS00001

JS00001 commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

@daledah looks like the reviewer checklist is incomplete

@daledah

daledah commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If the PR adds or modifies the UI:
    • I asked an AI agent to review the changes for accessibility issues and addressed its findings.
    • I tested with a screen reader (VoiceOver on macOS) and verified all new/changed elements are reachable with a logical focus order.
    • I verified all new/changed elements have meaningful accessible names and roles.
    • I verified state changes are announced (e.g. checked/unchecked, expanded/collapsed, selected).
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

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

@daledah

daledah commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

@JS00001 i added the reviewer checklist

@JS00001

JS00001 commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

ty!

@JS00001
JS00001 merged commit b330817 into main Oct 8, 2026
43 of 45 checks passed
@JS00001
JS00001 deleted the jsenyitko-rules-violation branch October 8, 2026 15:15
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

🚧 JS00001 has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify

OSBotify commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify OSBotify mentioned this pull request Oct 8, 2026
90 tasks done
@OSBotify

OSBotify commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/JS00001 in version: 9.5.6-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@MelvinBot

Copy link
Copy Markdown
Contributor

No help site update is needed: this PR only adds the localized message text for the new ruleViolation type, and the PR notes the violation doesn't show in the UI yet, so no existing article is made incorrect.


view run

@OSBotify

OSBotify commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/puneetlath in version: 9.5.6-6 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@melvin-bot

melvin-bot Bot commented Oct 9, 2026

Copy link
Copy Markdown

🤖 Payment issue created: #103659

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants