serge-web / serge

Serious Gaming, Evolved - web interface
https://sites.google.com/deepbluec.com/serge/
Apache License 2.0
14 stars 4 forks source link

Adopt expected form renderer #2967

Closed IanMayo closed 1 month ago

IanMayo commented 1 month ago

We have adopted a graphical form builder (RJSFB): https://github.com/ginkgobioworks/react-json-schema-form-builder

It lets a user design a JSON Schema that will be used in the game to render a web-form.

We're rendering the form using JSON-Editor. But, that expects the schema to be defined in a different way to RJFSB. The core schema is the same, but it expect styling/layout aspects to be presented in a different way to RJFSB.

So, we should switch our forms to the component that RJFSB is expecting (RJSF): https://github.com/rjsf-team/react-jsonschema-form

This will mean replacing the form in both the New Message panel and the template design page in admin.

This work should extend the work in branch: 2892_Edit_templates_in_admin_pages

IanMayo commented 1 month ago

This is working.