-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-05-27] Reports - Select all checkbox is selected by default when there is only empty report #62086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Triggered auto assignment to @jliexpensify ( |
Triggered auto assignment to @cristipaval ( |
👋 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:
|
💬 A slack conversation has been started in #expensify-open-source |
ProposalPlease re-state the problem that we are trying to solve in this issue.The "Select All" checkbox in the Reports UI is incorrectly shown as selected by default when the list of reports ( What is the root cause of that problem?The current logic for determining whether the "Select All" checkbox is checked only compares the What changes do you think we should make in order to solve the problem?We can either disable the checkbox or update the condition for
isChecked={flattenedTransactions.length > 0 && selectedItemsLength === flattenedTransactions.length} accessibilityState={{checked: flattenedTransactions.length > 0 && selectedItemsLength === flattenedTransactions.length}}
This prevents the checkbox from appearing checked when there are no items. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Select all checkbox is selected by default when there is only empty report. What is the root cause of that problem?It comes from #59804. Now we also show the empty view for empty expense report then if we only have empty expense reports, the search page doesn't display the empty UI. Then because both App/src/components/Search/SearchList.tsx Lines 354 to 360 in 731370b
What changes do you think we should make in order to solve the problem?We should disable the checkbox when the
App/src/components/Search/SearchList.tsx Lines 354 to 360 in 731370b
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?None 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. |
It seems like the proposals are very similar. The first one was edited many times, and it seems that it was added after the @nkdengineer proposal. @nkdengineer, I will assign you now for this one. @nabi-ebrahimi please try to post the proposals finished to avoid many edits |
Okay, but the changes were very minimal. And it wasn't after @nkdengineer . thanks |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.46-12 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-05-27. 🎊 For reference, here are some details about the assignees on this issue:
|
@allroundexperts @jliexpensify @allroundexperts 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] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:
Test:
Verify that the "Select all checkbox" is not selectable when the report is empty Do we agree 👍 or 👎 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.1.45-18
Reproducible in staging?: Yes
Reproducible in production?: Unable to check
If this was caught during regression testing, add the test name, ID and link from TestRail: #59804
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.3 / Chrome
App Component: Search
Action Performed:
Precondition:
Expected Result:
Select all checkbox will not be selected when there is only empty report.
Actual Result:
Select all checkbox is selected by default when there is only empty report.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6831933_1747300550772.20250515_171207.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @jliexpensifyThe text was updated successfully, but these errors were encountered: