Skip to content

Show report submit errors in the Search row and make them dismissible in the report - #103547

Merged
mountiny merged 8 commits into
mainfrom
claude-searchReportSubmitErrorsInRow
Nov 3, 2026
Merged

mountiny merged 8 commits into
mainfrom
claude-searchReportSubmitErrorsInRow

Conversation

@MelvinBot

@MelvinBot MelvinBot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

When a report failed to submit, Search showed report.errors as a separate red-dot line under the report row. It was unclear which report the error belonged to, and the X on it did nothing. The report itself never showed report.errors.

This PR changes that:

  • Search row: ExpenseReportListItem now passes the item to the shared row without errors, so no separate error line appears. When the report has errors, the row message adds "Report has errors." It is joined with "Report contains expenses with violations." when both apply. The sentence is generic, so it fits any action that writes to report.errors (submit, pay, approve, export). The row reads live Onyx errors first, so the sentence goes away after the error is dismissed in the report.
  • Report view: MoneyRequestReportView and ReportScreen fall back to report.errors when there are no report-creation errors. Dismissing that error calls the new clearReportErrors(reportID) action and keeps you on the report. Report-creation errors still go back and remove the failed report, as before.
  • Retry: submitMoneyRequestOnSearch and submitReport now clear report.errors in their optimistic data, so an old error doesn't stay after a successful retry.
  • Translations: I added reportViolations.reportHasErrors to every locale. The non-English strings are my own translations, so please check them.

Unit tests cover the optimistic error reset for both submit paths.

Not verified in the UI: the automated web test couldn't start because the test browser session loaded a blank page. The Search report row, report view, and report screen changes still need a manual check.

The Merge reports page has the same separate error line (Spend - Error message appears below report row on Merge reports and cannot be dismissed). I left it out because an open PR already changes that page.

Fixed Issues

$ #103444
PROPOSAL: #103444 (comment)

Tests

Precondition: Have a DEW workspace and add GENERIC_NON_REIMBURSABLE_CASH processor

  1. Create a non-reimbursable expense in GENERIC_NON_REIMBURSABLE_CASH report
  2. Submit the report
  3. Open Spend > Draft
  4. Verify that the report row shows a red dot with Report has errors text
  5. Open the report
  6. Verify that the detail error appears
  • Verify that no errors appear in the JS console

Offline tests

Same as test

QA Steps

Same as test

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover 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 tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (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 followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • 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 new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • 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).
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user 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.

Screenshots/Videos

Android: Native
Screen.Recording.2026-10-14.at.16.29.31.mov
Android: mWeb Chrome
Screen.Recording.2026-10-14.at.16.26.18.mov
iOS: Native
Screen.Recording.2026-10-14.at.17.06.27.mov
iOS: mWeb Safari
Screen.Recording.2026-10-14.at.16.25.26.mov
MacOS: Chrome / Safari
Screen.Recording.2026-10-14.at.16.23.32.mov

…ible in the report

- Stop showing report errors as a separate RBR under Search report rows
- Add 'Report failed to submit because of errors.' to the row message
- Show report.errors in the report view and add clearReportErrors to dismiss them
- Clear report.errors optimistically when submitting again

Co-authored-by: nkdengineer <nkdengineer@users.noreply.github.com>
@MelvinBot
MelvinBot requested a review from a team October 9, 2026 05:05
@melvin-bot melvin-bot Bot added Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web labels Oct 9, 2026
@MelvinBot

Copy link
Copy Markdown
Contributor Author

I created this PR from an upstream branch because I can't push to your fork.

To take over this branch and push updates, run:

git remote add upstream https://github.com/Expensify/App.git
git fetch upstream claude-searchReportSubmitErrorsInRow
git checkout -b claude-searchReportSubmitErrorsInRow upstream/claude-searchReportSubmitErrorsInRow
git push -u origin claude-searchReportSubmitErrorsInRow

Then you can close this PR and open a new one from your fork.

@OSBotify

This comment has been minimized.

@codecov

codecov Bot commented Oct 9, 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/libs/actions/IOU/ReportWorkflow.ts 75.17% <ø> (ø)
src/libs/actions/Report/index.ts 75.98% <100.00%> (+0.31%) ⬆️
.../MoneyRequestReportView/MoneyRequestReportView.tsx 73.21% <75.00%> (-1.10%) ⬇️
src/libs/actions/Search.ts 67.12% <66.66%> (-0.19%) ⬇️
src/pages/inbox/ReportScreen.tsx 93.33% <80.00%> (-3.10%) ⬇️
...arch/SearchList/ListItem/ExpenseReportListItem.tsx 0.00% <0.00%> (ø)
... and 440 files with indirect coverage changes

descriptionMessages.push(translate('reportViolations.reportContainsExpensesWithViolations'));
}
if (hasReportErrors) {
descriptionMessages.push(translate('reportViolations.reportFailedToSubmit'));

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.

@MelvinBot Let's update this with a more generic sentence like Report has errors instead of a special error for all cases.

@MelvinBot

MelvinBot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Android test steps verification results: ✅ pass

On Android, Search > Reports now shows "Report failed to submit because of errors." inside the report row instead of a separate red-dot line, and the full error inside the report dismisses with X while you stay on the report. The PR's Tests section is empty, so I took the steps from the linked issue's expected result, and I simulated the failed submit by setting report.errors directly in Onyx (no DEW policy was available).
Search Reports row after error dismissal

Step Status
Search > Reports: report with errors shows no separate red-dot error line below its rowThe row shows one inline message line with its dot indicator. No extra error line appears below the row.
Search Reports row showing inline failed-to-submit message
✅
Report row message includes "Report failed to submit because of errors."The row reads "Report failed to submit because of errors." The report had no violations, so the violations sentence correctly did not appear.
Search Reports row showing inline failed-to-submit message
✅
Opening the report shows the full error message with a dismiss (X) controlThe report view shows "Unexpected error submitting report. Please try again." with an X next to it.
Full error message and dismiss X inside the report
✅
Tapping X dismisses the error and stays on the reportThe error disappeared. The screen stayed on "Expense Report 2026-10-09", and the Submit button and $25.00 expense were still there.
Report view after dismissing the error
✅
Back on Search > Reports, the row no longer contains the failed-to-submit sentenceThe row shows only "Draft, $25.00, Oct 9, 1 expense", which matches the pre-error baseline.
Search Reports row after error dismissal
✅
A report without errors shows no failed-to-submit sentence (no regression)Before the error was set, the row showed only "Draft, $25.00, Oct 9, 1 expense".
Baseline Search Reports row with no errors
✅

view run · view recording

Co-authored-by: nkdengineer <nkdengineer@users.noreply.github.com>
@MelvinBot

Copy link
Copy Markdown
Contributor Author

Done. The Search report row now shows the generic sentence "Report has errors." instead of "Report failed to submit because of errors." It still follows "Report contains expenses with violations." when both apply.

This also settles the open question from the description: failed pay, approve, and export actions no longer say "failed to submit".

What changed
  • Renamed reportViolations.reportFailedToSubmit to reportViolations.reportHasErrors in ExpenseReportListItem.tsx.
  • Updated the string in all 11 locales. The non-English strings are my translations, so please check them:
    • en: Report has errors.
    • de: Der Bericht enthält Fehler.
    • el: Η αναφορά έχει σφάλματα.
    • es: El informe tiene errores.
    • fr: La note de frais contient des erreurs.
    • it: Il report contiene errori.
    • ja: レポートにエラーがあります。
    • nl: Rapport bevat fouten.
    • pl: Raport zawiera błędy.
    • pt-BR: O relatório contém erros.
    • zh-hans: 报表有错误。
  • Updated a test comment and the PR description to match.

I couldn't run typecheck or lint locally in this run. A search confirms no references to the old key remain, and CI will run the full checks.


view run

@OSBotify

OSBotify commented Oct 9, 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/it.ts b/src/languages/it.ts
index 0ca7c309..46fd2ec5 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -11011,7 +11011,7 @@ Aggiungi altre regole di spesa per proteggere il flusso di cassa aziendale.`,
     reportViolations: {
         [CONST.REPORT_VIOLATIONS.FIELD_REQUIRED]: (fieldName: string) => `${fieldName} è obbligatorio`,
         reportContainsExpensesWithViolations: 'Il report contiene spese con violazioni.',
-        reportHasErrors: 'Il report contiene errori.',
+        reportHasErrors: 'Il report contiene degli errori.',
     },
     violationDismissal: {
         rter: {
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index 555701ef..259f6afa 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -10973,7 +10973,7 @@ Adicione mais regras de gasto para proteger o fluxo de caixa da empresa.`,
     reportViolations: {
         [CONST.REPORT_VIOLATIONS.FIELD_REQUIRED]: (fieldName: string) => `${fieldName} é obrigatório`,
         reportContainsExpensesWithViolations: 'O relatório contém despesas com violações.',
-        reportHasErrors: 'O relatório contém erros.',
+        reportHasErrors: 'O relatório tem erros.',
     },
     violationDismissal: {
         rter: {
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index 7e9d711e..c90d34e3 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -10573,7 +10573,7 @@ ${reportName}`,
     reportViolations: {
         [CONST.REPORT_VIOLATIONS.FIELD_REQUIRED]: (fieldName: string) => `${fieldName} 为必填项`,
         reportContainsExpensesWithViolations: '报表包含有违规的报销。',
-        reportHasErrors: '报表有错误。',
+        reportHasErrors: '报表存在错误。',
     },
     violationDismissal: {
         rter: {

Note

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

View workflow run

@nkdengineer

Copy link
Copy Markdown
Contributor

@MelvinBot Update translation based on this

Co-authored-by: nkdengineer <nkdengineer@users.noreply.github.com>
@MelvinBot

Copy link
Copy Markdown
Contributor Author

I applied the translation updates from the Polyglot Parrot comment in d1e3667. reportHasErrors now reads:

  • it: 'Il report contiene degli errori.'
  • pt-BR: 'O relatório tem erros.'
  • zh-hans: '报表存在错误。'

No other lines changed.


view run

@nkdengineer

Copy link
Copy Markdown
Contributor

@MelvinBot, fill out the Test section

Precondition: Have a DEW workspace and add GENERIC_NON_REIMBURSABLE_CASH processor

  1. Create a non-reimbursable expense in GENERIC_NON_REIMBURSABLE_CASH report
  2. Submit the report
  3. Open Spend > Draft
  4. Verify that the report row shows a red dot with Report has errors text
  5. Open the report
  6. Verify that the detail error appears

Then update Offline tests and QA Steps to Same as test text

@MelvinBot

Copy link
Copy Markdown
Contributor Author

I updated the PR description:

  • Tests: I added your precondition and the 6 steps. The two TODO lines are gone, and the JS console checkbox is still there.
  • Offline tests: Set to "Same as test".
  • QA Steps: Set to "Same as test". The JS console checkbox is still there.

view run

@nkdengineer

Copy link
Copy Markdown
Contributor

@MelvinBot, fill the Screenshots/Videos

Screenshots/Videos

Android: Native
Screen.Recording.2026-10-14.at.16.29.31.mov
Android: mWeb Chrome
Screen.Recording.2026-10-14.at.16.26.18.mov
iOS: Native
Screen.Recording.2026-10-14.at.17.06.27.mov
iOS: mWeb Safari
Screen.Recording.2026-10-14.at.16.25.26.mov
MacOS: Chrome / Safari
Screen.Recording.2026-10-14.at.16.23.32.mov

@MelvinBot

Copy link
Copy Markdown
Contributor Author

I filled out the Screenshots/Videos section of the PR description. Each of the 5 platforms now has your video, and I left the rest of the description unchanged.


view run

@nkdengineer

Copy link
Copy Markdown
Contributor

@MelvinBot, Update the Author Checklist section. Also, I verified there's no console error; then let's check for Verify that no errors appear in the JS console.. After that mark the PR as ready.

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover 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 tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (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 followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • 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 new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • 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).
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user 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.

@MelvinBot
MelvinBot marked this pull request as ready for review October 14, 2026 10:24
@MelvinBot
MelvinBot requested a review from a team as a code owner October 14, 2026 10:24
@melvin-bot
melvin-bot Bot requested a review from nkdengineer October 14, 2026 10:24
@MelvinBot

Copy link
Copy Markdown
Contributor Author

Done. I updated the PR description and marked the PR ready for review.

  • PR Author Checklist: Replaced with your version, with every item checked.
  • Tests and QA Steps: Checked "Verify that no errors appear in the JS console" in both sections.
  • Screenshots/Videos: Your 5 platform videos are unchanged.

view run

@melvin-bot
melvin-bot Bot requested review from garrettmknight and removed request for a team October 14, 2026 10:24
@melvin-bot

melvin-bot Bot commented Oct 14, 2026

Copy link
Copy Markdown

@nkdengineer 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 removed the request for review from a team October 14, 2026 10:24
@MelvinBot

Copy link
Copy Markdown
Contributor Author

I resolved the merge conflict with main and pushed it in fad6c01.

The only conflict was in ExpenseReportListItem.tsx. main removed the useMemo around getDescription, since React Compiler now handles memoization, and changed it to a plain let with an if/else. I kept that structure and added this PR's logic to it: rejected reports show the rejected message. Other rows combine the violations message and the new reportHasErrors message.

TypeScript reports no errors in the files this PR changes.

@nkdengineer

Copy link
Copy Markdown
Contributor

@mountiny All yours.

@mountiny mountiny 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.

(Vit's agent) Requesting changes for one regression in the Search row. Details are in the inline comment.

Blocker

  • After a failed resubmit, a rejected report shows no error in the Search row. See the inline comment on ExpenseReportListItem.tsx.

Needs a product call (not blocking from me)

  • For a DEW failure, the report now shows the same message twice: once in the DEWSUBMITFAILED system message, and once in the new error row at the bottom. The backend puts the DEW message itself into report.errors. On the native apps, the row text also starts with "Report cannot be submitted: ".
  • trjExpensify asked why DEW needs another dismissible error (comment). The later agreement on bottom placement covered "general" API errors (comment). The test steps here use DEW, so please confirm that DEW failures should also show the bottom row.

Nice to have

  • MoneyRequestReportView keeps the single-transaction guard on line 142. When the transaction in a one-expense report has errors, that guard drops report.errors. The Search row then says "Report has errors." with nothing to dismiss in the Search side panel. This is the case from the second Codex comment.
  • The PR description still says "Not verified in the UI", but the videos are attached now.

Checked and fine

  • The local dismiss in clearReportErrors is enough. The backend sends report.errors only in the failed API response and never stores it, so the error does not come back on the next OpenReport.
  • The optimistic errors: null in submitReport and submitMoneyRequestOnSearch matches the shape of the existing failure data.

const hasReportErrors = !isEmptyObject(parentReport ? parentReport.errors : item.errors);

let getDescription;
if (reportItem?.isRejectedReport) {

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.

(Vit's agent) Blocker: after a failed resubmit, a rejected report shows no error in this row.

  • This branch runs before the new hasReportErrors check, so "Report has errors." is never added.
  • Line 433 strips errors from every item, so the separate error line is gone too.

This case does happen. The backend keeps the rejected next step until a submit action is newer than the rejection. A failed submit does not add one, and the DEW failed submit action does not count. On the client, the submitReport failure data restores the old nextStep, and submitMoneyRequestOnSearch never changes it. So isRejectedReport stays true.

On main, the todo searches (Submit, Approve, Pay, Export) still show the separate error line for this row, because those rows use the live report. So this is a regression there. The first Codex comment flagged it. The reply says the row now shows the general message, but that is not true for this branch.

Suggested fix: build the message list once, so a rejected report can also show "Report has errors.". This also removes the duplicated View/Icon/Text block.

const descriptionMessages: string[] = [];
if (reportItem?.isRejectedReport) {
    descriptionMessages.push(translate('iou.rejectReport.rejectedReportMessage'));
} else if (shouldShowViolationsMessage) {
    descriptionMessages.push(translate('reportViolations.reportContainsExpensesWithViolations'));
}
if (hasReportErrors) {
    descriptionMessages.push(translate('reportViolations.reportHasErrors'));
}

Then render the existing row once when descriptionMessages.length > 0, with {descriptionMessages.join(' ')} as the text.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated in 617c0f3.

The row now builds one message list. A rejected report with errors shows "This report was rejected. Report has errors." The rejected and violations messages still don't appear together. The duplicated View/Icon/Text block is gone.

Typecheck, ESLint (no new violations), the React Compiler check, and the related Search Jest tests pass. I didn't test it in the UI.


view run

@nkdengineer

Copy link
Copy Markdown
Contributor

@MelvinBot Please update this

Co-authored-by: nkdengineer <nkdengineer@users.noreply.github.com>
@MelvinBot

Copy link
Copy Markdown
Contributor Author

⚠️ MelvinBot CI Fix Loop Detected

MelvinBot has made 7 consecutive commits trying to fix CI failures. Automatic CI fix dispatches are now paused for this PR.

Next steps: A human should review the recent commits and resolve the conflicting CI errors manually.

Co-authored-by: nkdengineer <nkdengineer@users.noreply.github.com>
@melvin-bot
melvin-bot Bot requested a review from mountiny November 2, 2026 14:36
@nkdengineer

Copy link
Copy Markdown
Contributor

@mountiny I updated.

@mountiny mountiny 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.

Thanks! lets give it a go

@mountiny
mountiny merged commit 2536128 into main Nov 3, 2026
48 of 50 checks passed
@mountiny
mountiny deleted the claude-searchReportSubmitErrorsInRow branch November 3, 2026 05:09
@OSBotify

OSBotify commented Nov 3, 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.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

@izarutskaya

izarutskaya commented Nov 3, 2026 •

Copy link
Copy Markdown

@nkdengineer @mountiny @MelvinBot Can we use expensifail account for testing this? applausetester+rg_46@applause.expensifail.com
or we need specific settings in workspace? Thank you

Precondition: Have a DEW workspace and add GENERIC_NON_REIMBURSABLE_CASH processor

@OSBotify

OSBotify commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/mountiny in version: 9.5.31-0 🚀

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

@MelvinBot

Copy link
Copy Markdown
Contributor Author

No help site update needed — this PR fixes report error display and dismissal without adding a new workflow or making an existing article incorrect.

@OSBotify

OSBotify commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/mountiny in version: 9.5.31-0 🚀

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

@izarutskaya

Copy link
Copy Markdown

@MelvinBot Can we use expensifail account for testing this? applausetester+rg_46@applause.expensifail.com
or we need specific settings in workspace? Thank you

Precondition: Have a DEW workspace and add GENERIC_NON_REIMBURSABLE_CASH processor

@MelvinBot

Copy link
Copy Markdown
Contributor Author

You can use that account if it belongs to a workspace configured for DEW with the GENERIC_NON_REIMBURSABLE_CASH processor. An expensifail email alone does not satisfy the test precondition.

I haven’t verified that account’s workspace configuration. Ask nkdengineer or mountiny to confirm the setup or provide a configured workspace before testing.

@nkdengineer

Copy link
Copy Markdown
Contributor

@izarutskaya I think @mountiny or @trjExpensify can help to config GENERIC_NON_REIMBURSABLE_CASH processor in the WS

@izarutskaya

Copy link
Copy Markdown

We have few accounts with DEW, but I am not sure if we have correct workspace in some of these:

applausetester+rg_46@applause.expensifail.com
applausetester+piyozx@applause.expensifail.com
applausetester+ndk80@applause.expensifail.com

Also just in case created new account - applausetester+dews@applause.expensifail.com

@OSBotify

OSBotify commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/blimpich in version: 9.5.31-4 🚀

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

Bundle Size Analysis (Sentry):

@trjExpensify

Copy link
Copy Markdown
Contributor

applausetester+rg_46@applause.expensifail.com

@izarutskaya I've put the GENERIC_NON_REIMBURSABLE_CASH DEW processor on this account and this workspace:

@mountiny

mountiny commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Thanks!

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

Labels

Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants