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 2026-01-23] Reports - Select all checkbox is not clickable when user can select the empty report #79610
Version Number: 9.3.2-0 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack:#75261 Email or phone of affected tester (no customers):oisdjsjdodsjdojsnoidj@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.1 / Chrome App Component: Search
Action Performed:
Go to staging.new.expensify.com
Log in with a new account.
Create a workspace.
Go to workspace chat.
Create a report.
Go to Reports > Reports.
Select the empty report via checkbox.
Click Select all checkbox.
Expected Result:
Select all checkbox should be clickable because user can select the empty report.
Actual Result:
Select all checkbox is not clickable when user can select the empty report.
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Classification: Frontend bug Causing PR: #75261 - "Can't select an empty report from the Reports > Reports page" by @lorretheboy (High confidence) Related Issues: Original issue fixed by PR: #70591
Recommendation: ROLL FORWARD
The fix is straightforward and surgical. PR #75261 successfully enabled empty report selection via individual checkboxes, but missed updating the "Select all" checkbox disabled state. The fix requires changing one line in src/components/Search/SearchList/index.tsx from disabled={flattenedItems.length === 0} to disabled={totalItems === 0} to account for empty reports.
Reverting would reintroduce the original bug where users cannot select empty reports at all, which is worse than the current state where individual selection works but "Select all" doesn't.
Labels: Removed DeployBlocker label. This is a frontend bug in App code - the fix needs to happen in the Expensify/App repository. Kept DeployBlockerCash to block the App deploy until this is resolved.
Detailed Analysis
Evidence
PR #75261 was merged on 2026-01-14 at 16:33:39 UTC to fix issue #70591 where users couldn't select empty reports from the Reports page. The bug reported in this issue appeared in version 9.3.2-0, which includes PR #75261 in the deploy checklist.
Root Cause
The PR added support for selecting empty reports by:
Creating a separate emptyReports array to track reports with no transactions
Updating selectedItemsLength to count selected empty reports
Updating totalItems to include both empty reports and transactions
However, line 508 in src/components/Search/SearchList/index.tsx still uses the old logic:
disabled={flattenedItems.length===0}
The problem is that flattenedItems only contains transactions (line 195: data.flatMap((item) => item.transactions)), not empty reports. When a user has ONLY empty reports (which they can now individually select), flattenedItems.length is 0, causing the "Select all" checkbox to be disabled even though totalItems (which correctly includes empty reports) is greater than 0.
Verification
Files affected: The bug occurs in the Reports search list when selecting empty reports
PR modifies these files:
src/components/Search/SearchList/index.tsx - Contains the buggy line 508
changed the title [-]Reports - Select all checkbox is not clickable when user can select the empty report[/-][+][Due for payment 2026-01-23] Reports - Select all checkbox is not clickable when user can select the empty report[/+]on Jan 16, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.3-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@luacmartins@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]
Activity
melvin-bot commentedon Jan 14, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #75261
melvin-bot commentedon Jan 14, 2026
💬 A slack conversation has been started in #expensify-open-source
melvin-bot commentedon Jan 14, 2026
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.github-actions commentedon Jan 14, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
OSBotify commentedon Jan 14, 2026
Investigation Summary
Classification: Frontend bug
Causing PR: #75261 - "Can't select an empty report from the Reports > Reports page" by @lorretheboy (High confidence)
Related Issues: Original issue fixed by PR: #70591
Recommendation: ROLL FORWARD
The fix is straightforward and surgical. PR #75261 successfully enabled empty report selection via individual checkboxes, but missed updating the "Select all" checkbox disabled state. The fix requires changing one line in
src/components/Search/SearchList/index.tsxfromdisabled={flattenedItems.length === 0}todisabled={totalItems === 0}to account for empty reports.Reverting would reintroduce the original bug where users cannot select empty reports at all, which is worse than the current state where individual selection works but "Select all" doesn't.
Labels: Removed
DeployBlockerlabel. This is a frontend bug in App code - the fix needs to happen in theExpensify/Apprepository. KeptDeployBlockerCashto block the App deploy until this is resolved.Detailed Analysis
Evidence
PR #75261 was merged on 2026-01-14 at 16:33:39 UTC to fix issue #70591 where users couldn't select empty reports from the Reports page. The bug reported in this issue appeared in version 9.3.2-0, which includes PR #75261 in the deploy checklist.
Root Cause
The PR added support for selecting empty reports by:
emptyReportsarray to track reports with no transactionsselectedItemsLengthto count selected empty reportstotalItemsto include both empty reports and transactionsHowever, line 508 in
src/components/Search/SearchList/index.tsxstill uses the old logic:The problem is that
flattenedItemsonly contains transactions (line 195:data.flatMap((item) => item.transactions)), not empty reports. When a user has ONLY empty reports (which they can now individually select),flattenedItems.lengthis 0, causing the "Select all" checkbox to be disabled even thoughtotalItems(which correctly includes empty reports) is greater than 0.Verification
Files affected: The bug occurs in the Reports search list when selecting empty reports
PR modifies these files:
src/components/Search/SearchList/index.tsx- Contains the buggy line 508src/components/Search/index.tsx- Added empty report selection logicsrc/components/Search/SearchContext.tsx- Updated selected reports filteringCode evidence: In
SearchList/index.tsx:flattenedItemsonly contains transactions, excludes empty reportsemptyReportsseparately tracks reports with 0 transactionstotalItemscorrectly counts both empty reports AND transactionsflattenedItems.length === 0instead oftotalItems === 0Proposed Fix
Change line 508 in
src/components/Search/SearchList/index.tsxfrom:To:
This makes the "Select all" checkbox use the same logic as the checkbox state calculations, properly accounting for empty reports.
luacmartins commentedon Jan 14, 2026
@lorretheboy @eh2077
IuliiaHerets commentedon Jan 15, 2026
This issue is not reproduced anymore in the latest build
Screen.Recording.2026-01-15.at.18.20.33.mp4
[-]Reports - Select all checkbox is not clickable when user can select the empty report[/-][+][Due for payment 2026-01-23] Reports - Select all checkbox is not clickable when user can select the empty report[/+]melvin-bot commentedon Jan 16, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jan 16, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.3-8 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 2026-01-23. 🎊
melvin-bot commentedon Jan 16, 2026
@luacmartins @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]