-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-05-20] [$250] Categories - Checkmark appears briefly next to the toggle after exiting selection mode #61823
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 @greg-schroeder ( |
Triggered auto assignment to @techievivek ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 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:
|
Hey @techievivek - do you think @daledah and @thesahindia should be assigned to this given they worked on #60488? |
Job added to Upwork: https://www.upwork.com/jobs/~021922117839038973532 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann ( |
Opening to external contributors to help speed things up with getting a resolution for this. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Checkmark appears briefly next to the toggle after exiting selection mode. What is the root cause of that problem?When clicking the back button on selection mode, we will turn off the selection mode and reset the selected categories App/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx Lines 400 to 401 in 64ff87f
This bug happens because the App turns off selection mode completely before resetting the selected categories is done App/src/components/SelectionList/BaseListItem.tsx Lines 128 to 136 in 64ff87f
--> canSelectMultiple is false while item.selected still be true What changes do you think we should make in order to solve the problem?We need to make sure the selected categories is cleared before turning off the selection mode by using runAfterInteractions
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)Because the checkmark on the right-hand side shouldn't be used in this page, we can introduce a new prop on 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. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Checkmark appears briefly when closing the selection mode. What is the root cause of that problem?In BaseListItem, if App/src/components/SelectionList/BaseListItem.tsx Lines 128 to 140 in 64ff87f
When we close the selection mode, App/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx Lines 398 to 404 in 64ff87f
The
However, we don't show the
App/src/hooks/useSearchResults.ts Lines 15 to 22 in 64ff87f
So, What changes do you think we should make in order to solve the problem?We can defer the App/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx Lines 398 to 403 in 64ff87f
But this approach only handles the app back button only. App/src/hooks/useSearchBackPress/index.android.ts Lines 9 to 18 in 64ff87f
The other options are:
App/src/components/SelectionList/BaseListItem.tsx Lines 128 to 132 in 64ff87f
This way, canSelectMultiple is only updated when the list item is updated too.
This way, both We need to fix other WS pages too. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A |
@thelullabyy your alternative solution looks good to me. I think it is a safe and effective way to solve this bug in many places 🎀👀🎀 C+ reviewed |
Current assignee @techievivek is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @thelullabyy 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@thelullabyy we need this fix asap, are you able to push the PR? |
The PR will be up soon, I am working on it |
📣 @allgandalf 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@thelullabyy What is your ETA? you have been assigned for 6 hours |
@allgandalf can help raise the PR quicker if you are not available |
The PR will be up in 30 minutes |
Are you in Slack, lets also chat there for faster resolution @thelullabyy |
Requested for a re-test here https://expensify.slack.com/archives/C9YU7BX5M/p1747146169329929, we can close it once we have confirmed this is fixed. |
@techievivek Issue was fixed for us too Screen_Recording_20250513_225520_Chrome.mp4 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.44-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 2025-05-20. 🎊 For reference, here are some details about the assignees on this issue:
|
@allgandalf / @DylanDylann @greg-schroeder @allgandalf / @DylanDylann 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] |
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.43-7
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Samsung Galaxy Z Fold 4 / Android 14
App Component: Workspace Settings
Action Performed:
Expected Result:
Checkmark will not appear next to the toggle after exiting selection mode.
Actual Result:
Checkmark appears briefly next to the toggle after exiting selection mode.
This issue also happens to Members, Tags, Taxes, Per diem etc.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6827149_1746862380989.Screen_Recording_20250510_152731_Chrome.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @greg-schroederThe text was updated successfully, but these errors were encountered: