ethereum-studio
ethereum-studio copied to clipboard
Different way of forking the project for embedded Studio
Summary
Currently when you open a project that you don't own and initiate any action which modifies project files, it will fork the project and redirects you to a newly created project. This might be an expected and correct behavior, but might be "annoying" if the Studio is embedded inside documentation and users try to play around. It will fork/reload the iframe with the first action the users takes.
Actions that will fork the project: Compilation, Deployment, Adding a new account, Configuring contract, Modifying file, Moving/Renaming/Deleting file, Renaming Project
Motivation
Better UX for embedded Studio
Describe alternatives you've considered
One way to solve this would be to add something like CodeSandbox does to embedded iframes.
In our case it would fork the project on clicking the iframe. This is up for discussion though if somebody can come with better idea.