-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Workspace - Deleting a Workspace while offline crashes the app #32379
Comments
👋 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:
|
Triggered auto assignment to @tylerkaraszewski ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Deleting a workspace while offline crashes the app. What is the root cause of that problem?This is a regression from #31518. When we delete a workspace while offline, every text in the workspace page is strikethrough-ed, thanks to OfflineWithFeedback. App/src/pages/workspace/WorkspaceInitialPage.js Lines 259 to 325 in 1682be4
OfflineWithFeedback will clone all children and apply the strikethrough style and the result of the clone will be in an array because we are using App/src/components/OfflineWithFeedback.js Lines 83 to 92 in 1682be4
The error itself comes from the Tooltip > Hoverable (workspace settings tooltip) component because it didn't handle children as an array correctly. After the OfflineWithFeedback cloning, the tooltip children is changed: In Hoverable, we clone the children with
App/src/components/Hoverable/ActiveHoverable.tsx Lines 129 to 134 in 1682be4
But we had the same old issue before here What changes do you think we should make in order to solve the problem?Previously, we handled the children as an array correctly like this: We previously used So, the solution is to use the old code back again. |
Based on this comment, looks like we removed In the old tooltip, we have a prop called If there is a case of a tooltip that has multiple children, then we should wrap it with a View inside the children, not in the Tooltip implementation. If not, it will throw an error.
|
@tylerkaraszewski I think it's better to revert #31518 and let them rework considering this regression as it was just component refactor, neither bug nor feature. |
Revert was CP'ed to staging. Closing this out! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.7-0
Reproducible in staging?: Y
Reproducible in production?: N
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: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
User expects to be able to delete a WS while offline and the WS be crossed out
Actual Result:
The app crashes
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6297608_1701450499040.Deleting_WS_offline_crashes_the_app_.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: