You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expensify Card - No error message when deleting workspace with Expensify card #71966
What changes do you think we should make in order to solve the problem?
We want to remove the error from workspace list page and only display a RBR if the error related to these errors. But the error here related to delete error, we should display this error then the user can know the reason. We can display the error if brickRoadIndicator is not the error
Beside, we can also add a formal error in the failureData then if the backend doesn't return the error in Onyx data, we still can display an error message when the API is failed.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
undefined
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.
Please re-state the problem that we are trying to solve in this issue.
Expensify Card - No error message when deleting workspace with Expensify card
What is the root cause of that problem?
We don't want to display errors in the workspace list, but in this case, there is an error when deleting, so if we don't display anything, it confuses the user.
What changes do you think we should make in order to solve the problem?
We can hide the delete item if we know that this workspace has at least one card:
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
What alternative solutions did you explore? (Optional)
When deleting a workspace, we can add another generic error to failureData, which will have a value like “Failed to delete Workspace,” and then we can check if there is such an error, and if it is in errors, pass this parameter as true.
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.
Yup, this issue will be solved by that PR. So no need to assign this out to anyone new. @dominictb would you mind adding this to the list of issues solved by your PR?
Activity
melvin-bot commentedon Oct 7, 2025
Triggered auto assignment to @mallenexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.etCoderDysto commentedon Oct 7, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Expensify Card - No error message when deleting workspace with Expensify card
What is the root cause of that problem?
We are passing
falsetoshouldShowErrorMessagesApp/src/pages/workspace/WorkspacesListPage.tsx
Lines 270 to 277 in 1ff696b
What changes do you think we should make in order to solve the problem?
we shouldn't pass false to the prop
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)
paulnjs commentedon Oct 7, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
There is no error message when deleting workspace with Expensify card.
The workspace reappears with RBR on Workspaces tab.
What is the root cause of that problem?
The error is hidden from this PR
App/src/pages/workspace/WorkspacesListPage.tsx
Line 277 in 1ff696b
What changes do you think we should make in order to solve the problem?
We want to remove the error from workspace list page and only display a RBR if the error related to these errors. But the error here related to delete error, we should display this error then the user can know the reason. We can display the error if
brickRoadIndicatoris not the errorBeside, we can also add a formal error in the
failureDatathen if the backend doesn't return the error in Onyx data, we still can display an error message when the API is failed.App/src/pages/workspace/WorkspacesListPage.tsx
Line 277 in 1ff696b
App/src/libs/actions/Policy/Policy.ts
Line 439 in 1ff696b
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
undefined
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.
Eskalifer1 commentedon Oct 7, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Expensify Card - No error message when deleting workspace with Expensify card
What is the root cause of that problem?
We don't want to display errors in the workspace list, but in this case, there is an error when deleting, so if we don't display anything, it confuses the user.
What changes do you think we should make in order to solve the problem?
We can hide the delete item if we know that this workspace has at least one card:
App/src/pages/workspace/WorkspacesListPage.tsx
Line 190 in 05467be
App/src/pages/workspace/WorkspacesListPage.tsx
Line 234 in 05467be
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
What alternative solutions did you explore? (Optional)
When deleting a workspace, we can add another generic error to failureData, which will have a value like “Failed to delete Workspace,” and then we can check if there is such an error, and if it is in errors, pass this parameter as true.
App/src/pages/workspace/WorkspacesListPage.tsx
Line 277 in 05467be
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.
Pujan92 commentedon Oct 13, 2025
@mallenexpensify This can be closed in favor of #64015
dominictb commentedon Oct 13, 2025
@mallenexpensify Coming from #64015, confirm that this could be fixed in #64015:
Screen.Recording.2025-10-14.at.02.20.51.mov
cc @blimpich
blimpich commentedon Oct 13, 2025
Yup, this issue will be solved by that PR. So no need to assign this out to anyone new. @dominictb would you mind adding this to the list of issues solved by your PR?
mallenexpensify commentedon Oct 13, 2025
Thx! Closing. Comment and tag me, if need be.