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
[Due for payment 2025-10-07] [$250] Android - Reports -When deleting expense while offline, selection mode is applied on preview #68716
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Prerequisite: Account has at least one workspace available.
Open the Expensify app.
Open any workspace chat.
Create two manual expenses.
Navigate to Reports.
If you are not on "Submit" section, navigate to it.
Turn off internet connection.
Open the report of the just created expenses.
Long tap and select the expense displayed on top.
Delete the expense.
Use the device´s back button to return to "Reports"
Note that when you land on "Reports", selection mode is applied on expenses preview.
Expected Result:
When deleting an expense from a report while offline, selection mode shouldn´t be applied on the report preview when returning.
Actual Result:
When opening a report and deleting an expense while offline on "Submit" section, selection mode is applied on the report preview when using device´s back button to return.
Please re-state the problem that we are trying to solve in this issue.
When opening a report and deleting an expense while offline on "Submit" section, selection mode is applied on the report preview when using device´s back button to return.
What is the root cause of that problem?
In offline, the delete transaction is marked as pending delete, then after deleting the transaction offline, the selection mode is not turned off. We can see that the header of the report is still in the selection mode.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
changed the title [-]Android - Reports -When deleting expense while offline, selection mode is applied on preview[/-][+][Hold https://github.com/Expensify/App/pull/67216] Android - Reports -When deleting expense while offline, selection mode is applied on preview[/+]on Aug 22, 2025
changed the title [-][$250] Android - Reports -When deleting expense while offline, selection mode is applied on preview[/-][+][Due for payment 2025-10-07] [$250] Android - Reports -When deleting expense while offline, selection mode is applied on preview[/+]on Sep 30, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.20-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@rushatgabhane@trjExpensify The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[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: Not critical
[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.
Regression Test Proposal Template
[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
Precondition:
Test:
Open any workspace chat.
Create two manual expenses.
Navigate to Reports.
If you are not on "Submit" section, navigate to it.
Turn off internet connection.
Open the report of the just created expenses.
Long tap and select the expense displayed on top.
Delete the expense.
Back to "Reports"
Verify that when you land on "Reports", selection mode is not applied on expenses preview (On mobile device)
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
melvin-bot commentedon Aug 19, 2025
Triggered auto assignment to @trjExpensify (
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.mkzie2 commentedon Aug 19, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
When opening a report and deleting an expense while offline on "Submit" section, selection mode is applied on the report preview when using device´s back button to return.
What is the root cause of that problem?
In offline, the delete transaction is marked as pending delete, then after deleting the transaction offline, the selection mode is not turned off. We can see that the header of the report is still in the selection mode.
App/src/components/MoneyReportHeader.tsx
Lines 1052 to 1056 in b7b6678
That's why the selection mode is enabled when we go back to Reports
What changes do you think we should make in order to solve the problem?
We need to check the visible transaction length instead
App/src/components/MoneyReportHeader.tsx
Lines 1052 to 1056 in b7b6678
And we also need to turn off the selection mode when the
MoneyReportHeaderis unmounted to prevent the same bug.What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
trjExpensify commentedon Aug 20, 2025
Asking if this will be fixed by #66028 (comment)
[-]Android - Reports -When deleting expense while offline, selection mode is applied on preview[/-][+][Hold https://github.com/Expensify/App/pull/67216] Android - Reports -When deleting expense while offline, selection mode is applied on preview[/+]trjExpensify commentedon Aug 22, 2025
Held on #67216
melvin-bot commentedon Aug 25, 2025
@trjExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
trjExpensify commentedon Aug 26, 2025
Deployed to staging. This can be retested.
51 remaining items
[-][$250] Android - Reports -When deleting expense while offline, selection mode is applied on preview[/-][+][Due for payment 2025-10-07] [$250] Android - Reports -When deleting expense while offline, selection mode is applied on preview[/+]melvin-bot commentedon Sep 30, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Sep 30, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.20-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2025-10-07. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Sep 30, 2025
@rushatgabhane @trjExpensify The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
Fix: User is navigated to the other report the expense was moved to
rushatgabhane commentedon Oct 1, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[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: 26d0cd0#r166900645
[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: Not critical
[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.
Regression Test Proposal Template
[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
Precondition:
Test:
Do we agree 👍 or 👎
trjExpensify commentedon Oct 13, 2025
Payment summary as follows:
trjExpensify commentedon Oct 14, 2025
Paid @mkzie2, closing!
quinthar commentedon Oct 18, 2025
Approved $250 to @rushatgabhane