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
[$250] Report list is not properly updated after removing multiple expenses #79360
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Version Number: 9.2.99-4 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from BrowserStack: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by:@LukasMod Slack conversation (hyperlinked to channel name): #Expensify Bugs
Action Performed:
Add 3 expenses to workspace
Navigate to Reports => Reports (filter)
Select 2 expenses and delete them
Expected Result:
Show details of last remaining report
Actual Result:
There is only value visible, scroll bar is very short
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Please re-state the problem that we are trying to solve in this issue.
The issue involves the Report Details view incorrectly switching layouts when multiple expenses are deleted, leaving only one remaining expense.
What is the root cause of that problem?
When a report contains multiple transactions (expenses), it is displayed using a "Table View" (MoneyRequestReportActionsList), which lists expenses in a grid.
When expenses are deleted and only one transaction remains, the application logic (shouldDisplayReportTableView in MoneyRequestReportUtils.ts) detects a "Single Transaction Report" and switches the view to a "Chat View" (similar to a 1:1 IOU request).
However, for Group Policy (Workspace) Reports, this "Chat View" does not render the single expense details correctly in this context, resulting in the user seeing "Only value visible" (the report header total) with an apparently empty body (short scroll bar).
What changes do you think we should make in order to solve the problem?
In MoneyRequestReportUtils.ts:
Before:
I updated the imports to include isReportInGroupPolicy and modified shouldDisplayReportTableView to check for group policies.
import {
getMoneyRequestSpendBreakdown,
getNonHeldAndFullAmount,
hasHeldExpenses as hasHeldExpensesReportUtils,
hasOnlyHeldExpenses as hasOnlyHeldExpensesReportUtils,
hasUpdatedTotal,
isInvoiceReport,
isMoneyRequestReport,
isOneTransactionReport,
isReportTransactionThread,
} from './ReportUtils';
// ... lines 112-114 ...
/**
* Returns whether a "table" ReportView/MoneyRequestReportView should be used for the report.
*
* If report is a special "transaction thread" we want to use other Report views.
* Likewise, if report has only 1 connected transaction, then we also use other views.
*/
function shouldDisplayReportTableView(report: OnyxEntry<Report>, transactions: Transaction[]) {
return !isReportTransactionThread(report) && !isSingleTransactionReport(report, transactions);
}
After:
Now, if a report is part of a group policy workspace (isReportInGroupPolicy), it will always display the table view, even if there is only one transaction left. This prevents the view from collapsing into the broken single-transaction state.
import {
getMoneyRequestSpendBreakdown,
getNonHeldAndFullAmount,
hasHeldExpenses as hasHeldExpensesReportUtils,
hasOnlyHeldExpenses as hasOnlyHeldExpensesReportUtils,
hasUpdatedTotal,
isInvoiceReport,
isMoneyRequestReport,
isOneTransactionReport,
isReportInGroupPolicy,
isReportTransactionThread,
} from './ReportUtils';
// ... lines 112-114 ...
/**
* Returns whether a "table" ReportView/MoneyRequestReportView should be used for the report.
*
* If report is a special "transaction thread" we want to use other Report views.
* Likewise, if report has only 1 connected transaction, then we also use other views.
*/
function shouldDisplayReportTableView(report: OnyxEntry<Report>, transactions: Transaction[]) {
return !isReportTransactionThread(report) && (!isSingleTransactionReport(report, transactions) || isReportInGroupPolicy(report));
}
Please re-state the problem that we are trying to solve in this issue.
After deleting expenses from the Reports filter view, the remaining report details are compressed to the bottom of the screen, showing only minimal content with a very short scrollbar.
What is the root cause of that problem?
The issue is in SearchMoneyRequestReportPage.tsx where the report details container uses styles.justifyContentEnd:
The justifyContentEnd style aligns flex children to the bottom of the container. When there are fewer expenses (e.g., 1 remaining after deleting 2), the minimal content is pushed to the bottom, creating the appearance of compressed content with a very short scrollbar.
What changes do you think we should make in order to solve the problem?
Remove styles.justifyContentEnd from the container to allow the report content to fill the available space naturally from the top.
This change allows the MoneyRequestReportView component to properly fill the available space and display all content correctly, regardless of the number of remaining expenses after deletion.
changed the title [-]Report list is not properly updated after removing multiple expenses[/-][+][$250] Report list is not properly updated after removing multiple expenses[/+]on Jan 13, 2026
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Activity
melvin-bot commentedon Jan 12, 2026
Triggered auto assignment to @dylanexpensify (
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.sohrabq commentedon Jan 12, 2026
proposal
Please re-state the problem that we are trying to solve in this issue.
The issue involves the Report Details view incorrectly switching layouts when multiple expenses are deleted, leaving only one remaining expense.
What is the root cause of that problem?
When a report contains multiple transactions (expenses), it is displayed using a "Table View" (MoneyRequestReportActionsList), which lists expenses in a grid.
When expenses are deleted and only one transaction remains, the application logic (shouldDisplayReportTableView in MoneyRequestReportUtils.ts) detects a "Single Transaction Report" and switches the view to a "Chat View" (similar to a 1:1 IOU request).
However, for Group Policy (Workspace) Reports, this "Chat View" does not render the single expense details correctly in this context, resulting in the user seeing "Only value visible" (the report header total) with an apparently empty body (short scroll bar).
What changes do you think we should make in order to solve the problem?
In MoneyRequestReportUtils.ts:
Before:
I updated the imports to include isReportInGroupPolicy and modified shouldDisplayReportTableView to check for group policies.
After:
Now, if a report is part of a group policy workspace (isReportInGroupPolicy), it will always display the table view, even if there is only one transaction left. This prevents the view from collapsing into the broken single-transaction state.
abbasifaizan70 commentedon Jan 12, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
After deleting expenses from the Reports filter view, the remaining report details are compressed to the bottom of the screen, showing only minimal content with a very short scrollbar.
What is the root cause of that problem?
The issue is in
SearchMoneyRequestReportPage.tsxwhere the report details container usesstyles.justifyContentEnd:App/src/pages/Search/SearchMoneyRequestReportPage.tsx
Line 265 in 6c4d125
The
justifyContentEndstyle aligns flex children to the bottom of the container. When there are fewer expenses (e.g., 1 remaining after deleting 2), the minimal content is pushed to the bottom, creating the appearance of compressed content with a very short scrollbar.What changes do you think we should make in order to solve the problem?
Remove
styles.justifyContentEndfrom the container to allow the report content to fill the available space naturally from the top.File:
App/src/pages/Search/SearchMoneyRequestReportPage.tsxApp/src/pages/Search/SearchMoneyRequestReportPage.tsx
Line 265 in 6c4d125
This change allows the
MoneyRequestReportViewcomponent to properly fill the available space and display all content correctly, regardless of the number of remaining expenses after deletion.Demo
Screen.Recording.2026-01-12.at.11.29.12.PM.mov
[-]Report list is not properly updated after removing multiple expenses[/-][+][$250] Report list is not properly updated after removing multiple expenses[/+]melvin-bot commentedon Jan 13, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022011162722544191726
melvin-bot commentedon Jan 13, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (
External)melvin-bot commentedon Jan 16, 2026
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
11 remaining items
mvtglobally commentedon Feb 7, 2026
Issue not reproducible during KI retests. (Second week)
mananjadhav commentedon Feb 7, 2026
@dylanexpensify I think it’s safe to close this one.
melvin-bot commentedon Feb 11, 2026
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
mananjadhav commentedon Feb 15, 2026
Quick bump @dylanexpensify
melvin-bot commentedon Feb 18, 2026
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
melvin-bot commentedon Feb 19, 2026
@mananjadhav Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
mvtglobally commentedon Feb 21, 2026
Issue not reproducible during KI retests. (Third week)