-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[$250] Incorrect behavior when clicking on the member to uncheck the checkbox #60546
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 @alexpensify ( |
Proposal from @dukenv0307Please re-state the problem that we are trying to solve in this issue.The selection should be removed What is the root cause of that problem?We always navigate to profile page or member details page when selecting a row App/src/pages/workspace/WorkspaceMembersPage.tsx Lines 352 to 362 in 8ed9c09
What changes do you think we should make in order to solve the problem?Base on this comment the expeceted is expected We should add the new condition to check
App/src/pages/workspace/WorkspaceMembersPage.tsx Lines 352 to 362 in 8ed9c09
Notice that we can also see that this bug also happens with distance rates page, report fields page,... we should also fix it in this issue. 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) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Incorrect behavior when clicking on the member to uncheck the checkbox What is the root cause of that problem?There are two bugs currently based on this comment - #49322 (comment)
Logic is missing to conditionally toggle/navigate to item here. And hence on selecting row user is directly navigated to member details page irrespective of device and whether selection mode is enabled.
Both of these issues are present on few more pages including
these bugs also are present on Serach/Reports page but those are already being taken care of. see reference Additionally find all other pages with the same bugs. What changes do you think we should make in order to solve the problem?For bug 1. const cleanupSelectedMembers = useCallback(() => setSelectedEmployees([]),[]);
useCleanupSelectedOptions(cleanupSelectedMembers); And remove this code block from useEffect, so it does not clear the selection upon focus change. App/src/pages/workspace/WorkspaceMembersPage.tsx Lines 182 to 185 in 8ed9c09
For bug 2. const toggleOrNavigate = (item: MemberOption) => {
if(isSmallScreenWidth && selectionMode?.isEnabled){
toggleUser(item.accountID);
return;
}
openMemberDetails(item);
} and pass
And apply similar solution to all other pages mentioned in RCA. 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)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. |
Job added to Upwork: https://www.upwork.com/jobs/~021914845035463204522 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 ( |
@Pujan92, when you get a chance, can you review these proposals? Thanks! |
I am inclined more towards @ChavdaSachin's proposal as it also fixes the selection persistence issue(which is connected) as mentioned in the #49322 (comment). 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @srikarparsi, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I would raise the PR within 48 hours |
📣 @ChavdaSachin 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@srikarparsi Whoops! This issue is 2 days overdue. Let's get this updated quick! |
PR is not yet raised due to this blocker - #60977 |
@ChavdaSachin should we put this one on hold to wait for that one? |
That would be great |
@ChavdaSachin Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Holding issue is solved, working on this ASAP. |
@Pujan92 @srikarparsi Just to clarify: The additional bug (bug 1) included in the selected proposal isn’t fully related to the original issue and has already been fixed in this PR: #59648. For bug 2, the proposed solution is exactly the same as mine - which I submitted earlier. Given that my proposal came first and directly targets the original issue. I believe I should be considered eligible to be assigned to this issue. Could you please check again? |
@ChavdaSachin Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@ChavdaSachin Eep! 4 days overdue now. Issues have feelings too... |
Waiting on this regression issue to be solved - #61633 |
@ChavdaSachin - I see the PR is in draft mode. Any update on when we can get this one moving forward? Thanks! |
@alexpensify there were some major changes on how selection mode works on the pages being fixed for current issue. Hopefully there would be no blockers after #61633 And as soon as blockers are resolved I could complete the work on the same day. |
Thanks for the update! Moving to Weekly while we wait for #61633 |
PR ready for review. |
@Pujan92 @srikarparsi What do you think about my comment above? |
@dukenv0307 As I mentioned earlier, it seems both issues are connected as per the referenced comment in both proposals. Based on that, we chose the @ChavdaSachin's proposal. The persistence issue is resolved after the evaluation and selection of the contributor. So I think its fair to proceed with @ChavdaSachin here. |
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. |
@Pujan92 and @ChavdaSachin - I believe you are working in the PR to resolve the blocker? Is that correct? |
Yes |
@ChavdaSachin our PR has been reverted. So let's not hurry and raise a new PR with testing all scenarios. cc: @alexpensify |
Great |
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.30-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @dukenv0307
Slack conversation (hyperlinked to channel name): #expensify-bugs
Action Performed:
Expected Result:
The selection should be removed as it is on other pages (Category, Tag, Tax).
Actual Result:
We are navigated to the Member Details page instead.
Workaround:
unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Platforms Tested:
On which of our officially supported platforms was this issue tested:Screenshots/Videos
Add any screenshot/video evidence
Recording.1148.mp4
Screen.Recording.2025-04-19.at.11.12.52.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ChavdaSachinThe text was updated successfully, but these errors were encountered: