feat: add template editor to the ui (#5963)

* Add initial editor

* Fix editor file being reset onChange

* Add updating the active build version

* Update nav height

* Add tabs

* Fix title

* Hide timestamps in build logs

* Add create file dialog

* Add validation for empty path

* Hide resources tab

* Fix label names

* Add rename and delete

* Improve UX

* Add padding to the editor

* Add dirty state

* Hide build logs until a build is made

* Add stories

* Add experiment to enable the template editor

* Fix linting errors

* Fix duplicate fields

* Fix theme type
This commit is contained in:
Kyle Carberry
2023-02-06 19:24:04 -06:00
committed by GitHub
parent 71a893764e
commit dd9e1f3d3f
27 changed files with 1751 additions and 40 deletions

View File

@ -421,6 +421,10 @@ const (
// interface for all RBAC operations. NOT READY FOR PRODUCTION USE.
ExperimentAuthzQuerier Experiment = "authz_querier"
// ExperimentTemplateEditor is an internal experiment that enables the template editor
// for all users.
ExperimentTemplateEditor Experiment = "template_editor"
// Add new experiments here!
// ExperimentExample Experiment = "example"
)
@ -430,7 +434,7 @@ var (
// users to opt-in to via --experimental='*'.
// Experiments that are not ready for consumption by all users should
// not be included here and will be essentially hidden.
ExperimentsAll = Experiments{}
ExperimentsAll = Experiments{ExperimentTemplateEditor}
)
// Experiments is a list of experiments that are enabled for the deployment.