-
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
[HOLD for payment 2023-09-27] [$500] Web - The delete confirmation modal fails to close when removing a member from another tab #26409
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.Delete Confirmation message does not disappear when a member is removed from another tab What is the root cause of that problem?In When the modal is open and a user is removed, we do not update this state. What changes do you think we should make in order to solve the problem?We need to update the state value of In my opinion, if any member of a workspace is removed and the modal is open, it should close so that the user can re consider. To implement this, we need to add App/src/pages/workspace/WorkspaceMembersPage.js Lines 111 to 119 in 3e69406
What alternative solutions did you explore? (Optional)If we only want to dismiss the modal if the selected users have changed, we can modify the callback used in |
Triggered auto assignment to @bfitzexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
@bfitzexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Sending this external |
Job added to Upwork: https://www.upwork.com/jobs/~01f4dfb3829fccd609 |
Current assignee @bfitzexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
I think the modal should be dismissed whenever the list member is changed (added or removed member). @bfitzexpensify What do you think? |
I agree, that behaviour makes sense to me |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - The delete confirmation modal fails to close when removing a member from another tab What is the root cause of that problem?We don't call setRemoveMembersConfirmModalVisible(false) when accountIDs list changes
What changes do you think we should make in order to solve the problem?we can use usePrevious to save the accountIDs and dismiss modal when the accountIDs changed like this
With this approach,
|
@GItGudRatio Could you be more specific, is it inside the @DylanDylann May I ask why we're not using the |
@mollfpr it's inside the |
@mollfpr how are things looking here? Seems like we're still working on finding the right proposal? |
Sorry for the delay! Testing the proposals now. |
@mollfpr we can use props.personaldetail.length or data.length as dependency but i think we shouldn't use personalDetail or data because we only want dismiss modal if the number of member change |
@mollfpr we can use props.personaldetail.length or data.length as dependency but i think we shouldn't use personalDetail or data because we only want dismiss modal if the number of member change @DylanDylann I'm not sure I understand your point here. Your proposal is using @GItGudRatio Could you update your RCA for this expected behavior here? Your solution works for removed users and when new users are added. Just to clarify that you're RCA is correct with the new expected. |
@mollfpr We don't want to dismiss the modal if the display name of a member changes, right? So that, we only should put data.length or props.policyMembers.length as dependency of useEfffect |
Updated proposal: #26409 (comment) with alternative solution |
Triggered auto assignment to @johnmlee101, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @mollfpr 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @ayazhussain79 We're missing your Upwork ID to automatically send you an offer for the Reporter role. |
@johnmlee101 @mollfpr @bfitzexpensify @DylanDylann this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@mollfpr The PR is ready for review |
🎯 ⚡️ Woah @mollfpr / @DylanDylann, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.71-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 2023-09-27. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
No offending PRs. This improvement is to close the modal whenever the list is changed.
The regression step should be enough.
The confirmation modal should be closed when a new member is added in another tab/device
The confirmation modal should be closed when a new user is added from offline
The confirmation modal remains when existed user is added from offline
|
@johnmlee101, @mollfpr, @bfitzexpensify, @DylanDylann Eep! 4 days overdue now. Issues have feelings too... |
All payments complete, issue opened for the regression test, we're good to close this one out. Thanks for the work, everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The delete confirmation modal should close when a member is removed from another tab
Actual Result:
The delete confirmation modal does not close when removing a member from another tab
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.60.1
Reproducible in staging?: y
Reproducible in production?: y
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
Notes/Photos/Videos: Any additional supporting documentation
screen-recording-2023-08-25-at-21217-am_rzKSe8Rl.mp4
Recording.4126.mp4
Expensify/Expensify Issue URL:
Issue reported by: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692912070414399
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: