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": [
...
]
}