Skip to content

Conversation

@TRomesh
Copy link
Contributor

@TRomesh TRomesh commented Oct 29, 2025

  • Add support for propertyGroups in config file.
  • Add support for parsing, normalizing/validation/logs for propertyGroups in CLI.
  • Add documentation regarding propertyGroups.

Note: type-safety is not implemented in this PR due to the lack of typescript support and .mjs in config file which limits us on using module augmentation. More info can be found in CMS-46487

Copy link
Contributor

@exacs exacs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good overall, but I have concerns with typing

required?: boolean;
localized?: boolean;
group?: string;
group?: PropertyGroupKey;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean that I have to declare the types (i.e. add to the PropertyGroupRegistry interface) for this to work?

What happens if I have define a property group in the CMS via UI?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was introduced to allow built in types with string (I'll double check if strings are accepted). But If a developer defines a propertyGroup in CMS it wont show up as autocomplete or type-safe. If a developer use module augmentation using PropertyGroupRegistry interface it will show up as auto complete.

@CLAassistant
Copy link

CLAassistant commented Oct 31, 2025

CLA assistant check
All committers have signed the CLA.

@TRomesh TRomesh requested a review from exacs November 3, 2025 08:08
@TRomesh TRomesh merged commit 1ef7593 into main Nov 4, 2025
3 checks passed
@TRomesh TRomesh deleted the feature/CMS-46358-add-property-group-support branch November 4, 2025 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants