Skip to content
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

Can't delete a Template sandbox in Recent page #8525

Open
3 tasks done
PraneshBalasubramaniam opened this issue Jul 27, 2024 · 1 comment
Open
3 tasks done

Can't delete a Template sandbox in Recent page #8525

PraneshBalasubramaniam opened this issue Jul 27, 2024 · 1 comment

Comments

@PraneshBalasubramaniam
Copy link

🐛 bug report

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project
    adheres to.
  • 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

@filipelima18
Copy link
Contributor

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.

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

No branches or pull requests

2 participants