fieldenms / tg

Trident Genesis
MIT License
14 stars 7 forks source link

Layout: automatically expand sections containing properties with error, warning or informative message #2252

Closed 01es closed 2 months ago

01es commented 2 months ago

Description

UI layout for Entity Masters and Entity Centres (selection criteria panel) support sections. Some sections can be configured as collapsable and some can be collapsed by default, hiding all property editors they contain.

However, properties that attracted either an error, a warning, or an informative message, should always be visible. And so, if a section is collapsed, but any of the properties in that section have a message, such section should auto-expand. This automatic expansion should be happening upon initial entity binding, validation lifecycle, saving, etc.

Expected outcome

Improved chances for users to see messages that otherwise might have been hidden. This is mainly relevant for informative messages, but would also be helpful for warnings and errors (even the latter ones cannot be simply "missed" and need to be either acknowledged or corrected).