This PR adds the basic export step in the workflow editor. Specifically:
adds a third step in WorkflowInputs and corresponding state to show a third export step, and updates buttons
adds ExportOptions component with the ability to choose different output formats. Currently the backend supports JSON and YAML (ref), so we can support those here as well. Final functionality and UX flows are TBD - currently just displaying the formatted template within the editor and the ability to copy it to clipboard. The "Export" button is a placeholder for now
adds MIT-licensed js-yaml for its lightweight conversion utilities and to produce the final yaml template.
Demo video, showing the final template in JSON/YAML formats:
[x] Commits are signed per the DCO using --signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Description
This PR adds the basic export step in the workflow editor. Specifically:
WorkflowInputs
and corresponding state to show a third export step, and updates buttonsExportOptions
component with the ability to choose different output formats. Currently the backend supports JSON and YAML (ref), so we can support those here as well. Final functionality and UX flows are TBD - currently just displaying the formatted template within the editor and the ability to copy it to clipboard. The "Export" button is a placeholder for nowDemo video, showing the final template in JSON/YAML formats:
screen-capture (46).webm
Issues Resolved
Makes progress on #23
Check List
--signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.