fix(desktop): make workspace deletion async with toast feedback

Merged
KI
1y ago
+23-20

Summary

  • Close delete workspace dialog immediately when user confirms deletion
  • Run workspace deletion in background with toast notifications for loading/success/error states
  • Remove blocking isDeleting state that previously kept the modal open

Test plan

  • Open a workspace and click the X to delete it
  • Confirm deletion - dialog should close immediately
  • Verify "Deleting..." toast appears while deletion runs
  • Verify success toast appears when deletion completes
  • Test error case by simulating a failure (e.g., permission issue) - error toast should appear

šŸ¤– Generated with Claude Code