ethereum-studio icon indicating copy to clipboard operation
ethereum-studio copied to clipboard

Different way of forking the project for embedded Studio

Open Spejbl opened this issue 5 years ago • 0 comments

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. Screenshot from 2019-10-30 18-40-10

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.

Spejbl avatar Oct 30 '19 11:10 Spejbl