Compute Studio 1.0 transforms simulations into documents that you can title, annotate, and share. Simulation creators now have the ability to provide the necessary context to their simulations that is needed to make them shareable products. Like documents, simulation configurations can change over time and be modified by multiple authors, and the new history feature will make it easy to look back and see what has changed and who made those changes. Finally, simulations can be made public or private, giving their creators the power to choose when they are ready to share their simulation with the public. During this process, we streamlined the sign in and sign up flow by further integrating it into the simulation page, and we slimmed down our outputs page. The Compute Studio team is beyond excited to add these features and to continue to build on top of them.
Thanks to Matt Jensen for designing the new simulation page. Also, thanks to Peter Metz for giving feedback on this set of features at every step along the way, including the morning after they were shipped. Finally, thanks to the C/S publishers for updating their models to the new outputs API.
The final step was to turn our single page simulation into a simulation document by adding a title and an editor to write the description. We chose the Slate editor framework so that we could have the ability to customize our editor to our needs such as potentially linking the editor to comments on parameter sections. I adapted the Rich Text and Link examples in their documentation to our needs, and now we have an easy-to-use editor. I initially looked into using a Markdown editor with a preview button but this wasn't a good fit for our use case since our users aren't likely to be familiar with Markdown and would be more familiar with a WYSIWYG experience from their editor.
This release streamlines Compute Studio's authentication so that users can sign up at any point in the process of viewing or creating a simulation without losing any of their data on the page. C/S 0.14.0 added a sign-in/sign-up window to the run simulation dialog; however, we needed a solution for users who would want to write a title or some notes for their simulation before they clicked "Run". The solution was to use React Portal to hook onto the existing "Sign in" / "Sign up" buttons and replace them with their React twins allowing the user to sign in or sign up through a dialog window. On completion, the application state is updated and either a new simulation object is created for them in the C/S database or they get write access to the simulation they are viewing if they are owners of it or the ability to "fork" it if they are not.