[TASK] Update PageAPI to Expose Style Properties
Description
2.1 Add a FEATURE FLAG named FEATURE_FLAG_UVE_STYLE_EDITOR
Follow dotCMS feature flag conventions Configure default state (disabled by default)
2.2 Update PersonalizedContentlet to include a styles property
2.3 Update PageRenderUtil.populateContainers() to transfer the properties from PersonalizedContentlet to the contentlet
Implement the transfer logic Ensure the styles property is correctly mapped
2.4 Write tests that guarantee contentlets that should have style properties contain them
Integration tests for PageRenderUtil.populateContainers() Verify style properties are present in the expected scenarios Include Postman/Karate Test that verifies the new prop gets rendered when data
2.5 Hide this functionality under the feature flag
Ensure all new functionality is only active when ENABLE_PAGE_CONTENT_STYLING is enabled Verify backward compatibility when the flag is disabled.
Test providing dummy styling data
Acceptance Criteria
- [x] Feature flag FEATURE_FLAG_UVE_STYLE_EDITOR is properly implemented and can be toggled
- [x] PersonalizedContentlet includes the new styles property
- [x] PageRenderUtil.populateContainers() correctly transfers style properties
- [x] All tests pass and verify style properties are present when expected
- [x] Functionality is only active when the feature flag is enabled
- [x] No breaking changes when the feature flag is disabled
Priority
Medium
Additional Context
No response
PRs linked to this issue
- Retrieve styleProperties per contentlet by @dario-daza
PRs linked to this issue
- 34091 task update pageapi to expose style properties object support by @dario-daza
- Retrieve styleProperties per contentlet by @dario-daza
Passed QA
- dotCMS docker image: [
dotcms/dotcms:trunk_deb97fe]
Video
https://github.com/user-attachments/assets/84173a96-010e-451b-8f29-c5eb288f8de3