Picolab / devtools

Repository for KRL Developer Tools
MIT License
6 stars 4 forks source link

Prototypes Additions #109

Closed AngelSassin closed 7 years ago

AngelSassin commented 7 years ago

Allow for sharing of prototypes:

  1. Export prototype to file/url
  2. Import from file/url

Display Child's prototype on about page.

AngelSassin commented 7 years ago

Each prototype listed in the prototype management page will have an Export button, which will download the json of that prototype. Anywhere that file is hosted should be fair game for importing.

uploads/40c6eecb-d58a-4d85-a693-f6ac3291a231/Screen Shot 2016-12-28 at 3.06.46 PM.png

The page for adding a prototype will have an import option, which will fill in the fields for the prototype. This url must link to a file that has been exported (or was carefully crafted to fit the prototype format correctly).

uploads/d2a228e8-0766-4750-a627-9904d7089770/Screen Shot 2016-12-28 at 3.03.25 PM.png

uploads/7b797320-1d52-43c5-9bad-e88b7951366e/Screen Shot 2016-12-28 at 3.05.36 PM.png

One question I have is whether an import button should immediately create the prototype, or fill in the fields of the page so that the user can hit the button to create the prototype themselves. The second option will allow a user to edit the imported prototype before adding it, including the name of the prototype. I'm leaning towards the second option (that's how I have it implemented right now).