feat(style-editor): implement duplicate identifier validation for fields#35219
Conversation
- Added functionality to detect duplicate identifiers across sections in the style editor. - Updated the UI to show error messages when duplicate identifiers are present. - Enhanced tests to cover scenarios for duplicate identifier detection and error handling. - Introduced a new utility function to facilitate validation logic. This improves the user experience by preventing conflicts and ensuring unique identifiers for fields.
|
Claude finished @KevinDavilaDotCMS's task in 2m 43s —— View job PR Review: feat(style-editor): implement duplicate identifier validation for fields
Issues Found1. Untrimmed identifier saved to backend (new)
2. Duplicated validation logic
3.
4.
5. Missing test: error state clears after duplicate is resolved The new tests verify that a duplicate blocks saving, but none assert that The core logic in |
|
Claude finished @KevinDavilaDotCMS's task in 4m 2s —— View job PR Review: feat(style-editor): implement duplicate identifier validation for fields
Issues Found1. Duplicated validation logic
2.
3.
4. Missing test: error clears after duplicate is resolved The new tests verify that duplicates block saving, but none verify that The core logic in |
…ections - Updated the style editor to ensure that sections must contain at least one field to be considered valid. - Introduced a new computed property to display an error message when a section is empty and errors are being shown. - Enhanced the UI to reflect this validation by displaying an error message when applicable. - Added unit tests to verify the new validation logic and error display behavior. This improves user experience by providing clear feedback when sections are incorrectly configured.
2026-04-06.12-33-01.mov
This PR fixes: #34703
This PR fixes: #34703