Skip to content

feat(site): add batch actions to the workspaces page #9091

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 15 commits into from
Aug 15, 2023

Conversation

BrunoQuaresma
Copy link
Collaborator

PS: This is under the experimental flag!

  • add batch actions to the workspaces page
  • only delete all for now
Screen.Recording.2023-08-14.at.16.15.48.mov

@BrunoQuaresma BrunoQuaresma requested a review from aslilac August 14, 2023 19:17
@BrunoQuaresma BrunoQuaresma self-assigned this Aug 14, 2023
@BrunoQuaresma BrunoQuaresma requested a review from mafredri August 14, 2023 23:11
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. Should we have a test to ensure that only the selected workspaces are sent for delete?

Also, should we list the to-be-deleted workspaces in the confirmation? Just so that the user can be extra sure about what they're doing.

Example: There's a refactor that introduces a bug that doesn't clear the selected items, and suddenly a whole page of previously selected items is deleted. The list would be a last-line-of-defence type of thing.

const confirmDeletion = async () => {
setConfirmError(false)

if (confirmValue.toLowerCase() !== "delete") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could consider only accepting the value as stated (i.e. must be upper-case DELETE) to confirm. But there may be differing opinions on this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can test it as it is now on dev.coder.com and see if we get any feedback.

@BrunoQuaresma BrunoQuaresma merged commit 4058f04 into main Aug 15, 2023
@BrunoQuaresma BrunoQuaresma deleted the bq/batch-ws-actions branch August 15, 2023 15:57
@github-actions github-actions bot locked and limited conversation to collaborators Aug 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants