You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Awaiting Payment 2025-12-02][$250] RBR badge persists on expense chat after submission (should not appear for non-draft reports) #73154
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorMonthlyKSv2
Version Number: 9.2.35-4 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by:@trjExpensify Slack conversation (hyperlinked to channel name): #Quality
Action Performed:
Create a report and add an expense that triggers an RBR violation (e.g. alcohol category with violation rule)
Submit the report
Check the Left Hand Navigation (LHN) and expense chat for that report
Observe the RBR red dot still showing next to the expense chat
Expected Result:
RBR indicators should not display for submitted (non-draft) reports.
Once a report is no longer editable by the user, RBR should be cleared from the LHN and chat list for that user.
Actual Result:
The RBR badge remains visible on the expense chat even though the report has already been submitted.
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Android: App
Android: mWeb Chrome
iOS: App
iOS: mWeb Safari
iOS: mWeb Chrome
Windows: Chrome
MacOS: Chrome / Safari
MacOS: Desktop
Platforms Tested:
On which of our officially supported platforms was this issue tested:
changed the title [-]RBR badge persists on expense chat after submission (should not appear for non-draft reports)[/-][+][$250] RBR badge persists on expense chat after submission (should not appear for non-draft reports)[/+]on Oct 23, 2025
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: no regression
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Payment Summary:
C: @paulnjs - please accept UW offer and I will process payment
C+: @thesahindia please complete the checklist and I'll organise payment
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorMonthlyKSv2
Activity
melvin-bot commentedon Oct 21, 2025
Triggered auto assignment to @stephanieelliott (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.paulnjs commentedon Oct 21, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
RBR badge persists on expense chat after submission (should not appear for non-draft reports)
What is the root cause of that problem?
In the function
App/src/libs/ReportUtils.ts
Line 8509 in 17b617e
App/src/libs/ReportUtils.ts
Lines 8532 to 8538 in 17b617e
However, the expected behavior is that RBR indicators should not display for submitted (non-draft) reports.
What changes do you think we should make in order to solve the problem?
We should add an early return at this line:
App/src/libs/ReportUtils.ts
Line 8531 in 17b617e
to prevent evaluating violations for non-draft reports. For example:
App/src/libs/ReportUtils.ts
Line 11754 in 17b617e
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
dmkt9 commentedon Oct 22, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
The RBR badge remains visible on the expense chat even though the report has already been submitted.
What is the root cause of that problem?
Currently, when submitting, the
submitReportfunction does not clear theTRANSACTION_VIOLATIONSfor the transactions within the report.App/src/libs/actions/IOU.ts
Line 10732 in 09a7472
What changes do you think we should make in order to solve the problem?
We need to clear the
TRANSACTION_VIOLATIONSof the transactions in the report by updating theoptimisticData,successData, andfailureData.App/src/libs/actions/IOU.ts
Line 10766 in 09a7472
As a result, we also need to adjust related logic accordingly, such as in
buildNextStepNew.Additionally, we must ensure that the backend returns the correct
TRANSACTION_VIOLATIONSdata when the API call succeeds.What alternative solutions did you explore? (Optional)
NA
melvin-bot commentedon Oct 23, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021981442084194388330
[-]RBR badge persists on expense chat after submission (should not appear for non-draft reports)[/-][+][$250] RBR badge persists on expense chat after submission (should not appear for non-draft reports)[/+]melvin-bot commentedon Oct 23, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (
External)melvin-bot commentedon Oct 28, 2025
@thesahindia Huh... This is 4 days overdue. Who can take care of this?
48 remaining items
rlinoz commentedon Dec 8, 2025
Hey @VictoriaExpensify the PR is deployed to production #75231 (comment)
This is just needs the checklist and payment.
VictoriaExpensify commentedon Dec 8, 2025
Thanks for clearing that up @rlinoz !
VictoriaExpensify commentedon Dec 8, 2025
BugZero Checklist:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: no regression
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
VictoriaExpensify commentedon Dec 8, 2025
Payment Summary:
C: @paulnjs - please accept UW offer and I will process payment
C+: @thesahindia please complete the checklist and I'll organise payment
Thanks!
thesahindia commentedon Dec 12, 2025
We just need to add test steps for this. The steps are below:
Pre condition:
VictoriaExpensify commentedon Dec 14, 2025
Raised request to add reg. test to browserstack - https://github.com/Expensify/Expensify/issues/578467
VictoriaExpensify commentedon Dec 14, 2025
Updated payment summary:
Payment Summary:
C: @paulnjs paid $250 via Upwork
C+: @thesahindia owed $250 via NewDot
Thanks!
garrettmknight commentedon May 21, 2026
$250 approved for @thesahindia