-
Notifications
You must be signed in to change notification settings - Fork 3k
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
mWeb - Reports - Empty state screen shown with "0 selected" behind when deleting expenses #55446
Comments
Triggered auto assignment to @stephanieelliott ( |
I think this will be addressed here #54485 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The selection mode is still on after deleting all expenses. What is the root cause of that problem?We already have a logic to turn off the selection if the result is empty. App/src/components/Search/index.tsx Lines 299 to 304 in 1466369
When we delete the expenses, we first trigger the API and delay clearing the selection. App/src/components/Search/SearchPageHeader.tsx Lines 97 to 103 in 1466369
This will trigger the useEffect above toggling the selection mode off. However, we also have another effect that toggle the selection mode on if it's currently off but the selected items are not empty. App/src/components/Search/index.tsx Lines 169 to 172 in 1466369
So, the selection is toggled on back. What changes do you think we should make in order to solve the problem?We need to "delay" both clearing the selection and the delete calls. Somehow it doesn't work if I put both of the calls inside interactionmanager, so I decided to do it inside When deleting the expenses, set
Then, inside the App/src/components/Search/SearchPageHeader.tsx Lines 326 to 331 in 1466369
There are 2 delete confirmation modals, 1 for narrow layout, 1 for large layout. We need to create a function for the modal hide logic so we can reuse it for both modals. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
but after that, we call the function to turn on selection mode again because the App/src/components/Search/index.tsx Line 170 in 1466369
What changes do you think we should make in order to solve the problem?
App/src/components/Search/index.tsx Line 169 in 1466369
to:
with 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) |
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.0.87-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5479455&group_by=cases:section_id&group_order=asc&group_id=319502
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Empty state screen, should be displayed without any content on the background and the "Create Expense" button should be displayed with it
Actual Result:
When deleting all the expenses, empty state screen appears with the green dropdown menu with the message "0 selected" on the background, it can be scrolled and the "Create Expense" button is not automatically displayed on it
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6717309_1737176377563.Empty.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: