Skip to content

replace layer and accordion fields with an option inside field ui settings #125

@miguelgrc

Description

@miguelgrc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions