-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Right now fields can be set as modal or collapsible in the UI settings. This is in some way equivalent to layer and accordion fields (which are special types of array fields). We should unify this behavior by getting rid of the dedicated layer and accordion array fields and redesigning the modal and collapsible options to actually render components in a way similar to how layer and accordion do right now (with the better UI, error display, etc). This way we will be able to extend this behavior to other fields and not only arrays. Instead of having two separate toggles, we should have something like an antd radio button group (aka toggle group) to select between "normal", "layer/modal (tbd)" and "accordion" (maybe with an icon too) in the UI settings of the fields.
It would also be a good opportunity to update the array schema(s). See: rjsf-team/react-jsonschema-form#3001 and https://github.com/rjsf-team/react-jsonschema-form/blob/main/packages/antd/src/templates/ArrayFieldTemplate/index.tsx