Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.5k stars 2.85k forks source link

Workspace - WS can't be deleted after Expensify cards was disabled #50684

Open IuliiaHerets opened 2 weeks ago

IuliiaHerets commented 2 weeks ago

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: v9.0.48-0 Reproducible in staging?: Y Reproducible in production?: Y Issue reported by: Applause Internal Team

Action Performed:

Precondition: new private domain account. Workspace with added expensify card (physical or virtual).

  1. Go to Workspace > Expensify cards
  2. Click on added card > Deactivate card
  3. Go to Workspace > More features
  4. Disable Expensify cards
  5. Delete workspace

Expected Result:

Workspace deleted.

Actual Result:

An error occur during deletion. It says that my ws has expensify card when actually it hasn't. Error Message: Your company has enabled Expensify Cards. Please reach out to [concierge@expensify.com](mailto:concierge@expensify.com) to have the cards removed. Until then, the Workspace cannot be deleted.

Workaround:

Unknown

Platforms:

Screenshots/Videos

https://github.com/user-attachments/assets/81077181-f12a-4500-be68-f768e6ae6953

View all open jobs on GitHub

melvin-bot[bot] commented 2 weeks ago

Triggered auto assignment to @joekaufmanexpensify (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.

IuliiaHerets commented 2 weeks ago

We think that this bug might be related to #wave-collect - Release 2

IuliiaHerets commented 2 weeks ago

@joekaufmanexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

joekaufmanexpensify commented 1 week ago

Not overdue. Will triage tomorrow

joekaufmanexpensify commented 1 week ago

Discussing here.

mountiny commented 1 week ago

We would like the modal to looks like this image

joekaufmanexpensify commented 1 week ago

@mountiny the more I think about it, I kinda wonder if this one is worth prioritizing right now. Deleting a workspace is in general such a rare action to take. Given this works now the same way it does in OldDot (which is totally fine), I wonder if it's worth just leaving as is for now until we experience a problem from it?

As this isn't really a bug now, and I wonder if it's worth investing resources in changing this design before really anyone is using this feature. What do you think?

mountiny commented 1 week ago

@joekaufmanexpensify I think its still just good to knock it out now, I think its a rare case, but when it happens its annoying, especially given its much more easier now to run into this case than then we required verified domain

mountiny commented 1 week ago

But I think we can make it weekly and maybe @nkuoch would be up for helping with this one

joekaufmanexpensify commented 5 days ago

Fair enough, sounds good. In addition to the deleting workspace case though, there's one other case we should align on. According to the design doc, the user should not be able to toggle off Expensify Card in More features when the workspace is provisioned at all. But in the above video, toggling this off is possible after terminating the workspace's only assigned card.

I'm thinking we intentionally allowed this when the workspace is provisioned (but there are no active cards). Is that right, @mountiny?

melvin-bot[bot] commented 16 hours ago

@nkuoch @joekaufmanexpensify this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!