codesandbox-client icon indicating copy to clipboard operation
codesandbox-client copied to clipboard

Can't delete a Template sandbox in Recent page

Open PraneshBalasubramaniam opened this issue 1 year ago • 1 comments

🐛 bug report

Preflight Checklist

  • [x] I have read the Contributing Guidelines for this project.
  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Description of the problem

Cannot delete template sandbox that is listed in the recent page

How has this issue affected you? What are you trying to accomplish?

Can't delete sandboxes marked as template that I want to remove in recent page

To Reproduce

  1. Create a sanbox and mark as template.
  2. Navigate to recent page of codesandbox.
  3. Try to delete the template sandbox using delete option in right click menu.
  4. It won't be deleted and gives error in devtools.

Link to sandbox: link (optional)

Your Environment

Software Name/Version
Сodesandbox
Browser Version 127.0.6533.73
Operating System Windows 11 Home 23H2

image It seems the template id required to delete the sandbox is not present. I think its because, the sandboxes variable sandboxes.RECENT_SANDBOXES does not contain template data.

image

PraneshBalasubramaniam avatar Jul 27 '24 12:07 PraneshBalasubramaniam

Hi @PraneshBalasubramaniam. Thanks for sharing this! As we state in our Docs:

From the "Template Info" panel inside the editor you can uncheck 'Template'. Doing this will convert the template back to a regular Devbox and remove it from the "Create" modal.

However, we should improve the UX of the flow you described so users are aware that they first need to uncheck the sandbox as a template. I'll share this with the team.

filipelima18 avatar Jul 30 '24 14:07 filipelima18