core icon indicating copy to clipboard operation
core copied to clipboard

[TASK] Update PageAPI to Expose Style Properties

Open dario-daza opened this issue 11 months ago • 2 comments

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

dario-daza avatar Dec 12 '25 17:12 dario-daza

PRs linked to this issue

PRs linked to this issue

github-actions[bot] avatar Dec 26 '25 22:12 github-actions[bot]

Passed QA

  • dotCMS docker image: [dotcms/dotcms:trunk_deb97fe]

Video

https://github.com/user-attachments/assets/84173a96-010e-451b-8f29-c5eb288f8de3

rjvelazco avatar Jan 06 '26 18:01 rjvelazco