Skip to content

Support for removing workspaces #10

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

Merged
merged 7 commits into from
Feb 28, 2025
Merged

Conversation

fioan89
Copy link
Collaborator

@fioan89 fioan89 commented Feb 27, 2025

  • facade for Coder's REST endpoint to remove a workspace
  • pop-up dailog for user to confirm the workspace removal
  • add support for status icons and as a bonus Toolbox is now displaying nice animation around the header bar when workspace is starting or stopping
  • resolves Support for Toolbox Delete button on Coder Workspaces #7

Small note: info and error dialogs created with ToolboxUi#showInfoPopup, ToolboxUi#showYesNoPopup, and ToolboxUi#showOkCancelPopup only appear on the main page where all environments are listed. JetBrains is addressing the issue but until then user can interact with the confirmation dialog only from the front page.

- biggest issue is that popup dialogs are only visible in the main page
  so user can only confirm from that place. It can press the delete button
  even from the workspace details page, but it will have to navigate
  back to the main page to confirm whether he wants to proceed with the delete action.
- the actual delete is not yet implemented
- calls the coder REST API endpoints to remove a workspace id.
- needed otherwise we are going to show a stale workspace in the contents view.
- only when workspace changes status to DELETING or DELETED.
- and as a bonus Toolbox is now displaying nice animation around the header bar when
  workspace is starting or stopping
@fioan89 fioan89 marked this pull request as ready for review February 27, 2025 22:31
@fioan89 fioan89 merged commit 57e48ea into main Feb 28, 2025
@fioan89 fioan89 deleted the support-for-removing-workspaces branch February 28, 2025 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Toolbox Delete button on Coder Workspaces
2 participants