-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-05-20] [$250] iOS - Workspace - Unable to delete workspace, app freezes after tapping Delete workspace #61040
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 @maddylewis ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Confirmation modal to delete workspace does not show up. What is the root cause of that problem?When pressing "Delete workspace", we open the Delete modal immediately without waiting for the popover menu to close. This behaviour creates a race condition where the modal Onyx values are all set to ![]() So on screen, the Delete modal is not shown but the invisible overlay still exists, blocking user from interacting with any other components under. What changes do you think we should make in order to solve the problem?We should close the popover menu before opening delete modal App/src/hooks/usePayAndDowngrade.ts Line 22 in d391099
close(() => {
setIsDeleteModalOpen(true);
}); Screen.Recording.2025-04-29.at.19.01.12.movWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?It's a modal race condition so I don't think we need a test What alternative solutions did you explore? (Optional)NA 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.Can't delete workspace. What is the root cause of that problem?When we try to delete a workspace and App/src/pages/workspace/WorkspacesListPage.tsx Lines 217 to 241 in d391099
Only after the calculate bill completes, we close the current modal, App/src/pages/workspace/WorkspacesListRow.tsx Lines 134 to 144 in d391099
and then show the delete confirm modal. App/src/hooks/usePayAndDowngrade.ts Lines 16 to 22 in d391099
However, on iOS, if we want to show a modal from another modal, we need to wait for the previous modal to close first. That's why we have the What changes do you think we should make in order to solve the problem?To fix this, after completing the calculation, we need to close the previous modal first using We can add it into
We can optionally do it using a props because Or to make it cleaner, we can update the
Then, we can remove the modal hide from here. App/src/pages/workspace/WorkspacesListRow.tsx Lines 134 to 144 in d391099
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A |
|
Job added to Upwork: https://www.upwork.com/jobs/~021917225435968213171 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra ( |
@shubham1206agra Huh... This is 4 days overdue. Who can take care of this? |
Triggered auto assignment to @neil-marcellini, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Any thoughts on my proposal? I think I provided a more complete proposal. |
Your changes was optional, and I don't think it was that critical. So I chose the first proposal in line. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
📣 @daledah 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@shubham1206agra PR is ready. |
@shubham1206agra - plz review @daledah 's PR when you have a chance - ty! |
@maddylewis PR is on staging |
|
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:
|
@shubham1206agra @maddylewis @shubham1206agra 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 Proposal Template
Regression Test ProposalPrecondition:Test:Do we agree 👍 or 👎 |
Payments + Final To-Dos
|
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalTest:
Do we agree 👍 or 👎 |
Uh oh!
There was an error while loading. Please reload this page.
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.33-3
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: No, reproducible on hybrid only
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: iPhone 15 Pro Max / iOS 18.4
App Component: Workspace Settings
Action Performed:
Expected Result:
Confirmation modal to delete workspace will show up.
Actual Result:
Confirmation modal to delete workspace does not show up.
After tapping Delete workspace, tapping any button on the same page is not responsive.
Workaround:
Unknown
Platforms:
Screenshots/Videos
1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @maddylewisThe text was updated successfully, but these errors were encountered: