Allow Fragment Configuration FieldSets to Be Collapsed by Default

What is the problem you are trying to solve?

Fragments allow developers to define custom configuration panels using the fragment json window. These configurations support grouping fields using fieldSets, but all fieldSets are always expanded by default when users open the fragment settings panel.

This becomes problematic when fragments contain a large number of configuration groups. Content editors must scroll through long lists of configuration blocks.

Being able to collapse a fieldSet by default would improve:

  • Usability for content editors

  • Readability of complex configurations

  • Organization of large fragments

What is your proposed solution? (optional)

Introduce a new optional property “collapsedByDefault“ in fragment fieldSets such as:

{
  "label": "Card",
  "collapsedByDefault": true,
  "fields": [
    ...
  ]
}

1 Answer

1

Hi @jconrad, thanks for the suggestion and for the detailed proposal!

We agree that fragments with many configuration groups can be hard to navigate for content editors, and being able to define which fieldSets start collapsed would make the configuration panel much easier to use.

We’ve created a story to implement it, following an approach very similar to the one you proposed: a new optional property in the fieldSet definition of the fragment configuration JSON. You can follow its progress here: Jira

Thanks!