[PAGES-1287] Add support for $type to enableAllWithRenderType Created: 08/Aug/23  Updated: 13/Sep/23

Status: Open
Project: Magnolia pages module
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Normal
Reporter: Bartosz Staryga Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Sub-Tasks:
Key
Summary
Type
Status
Assignee
PAGES-1288 Implementation Sub-task To Do  
PAGES-1289 Review Sub-task To Do  
PAGES-1290 Pre-Integration QA Sub-task To Do  
PAGES-1291 QA Sub-task To Do  
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Epic Link: AuthorX improvements
Team: AuthorX

 Description   

https://demo.magnolia-cms.com/.magnolia/admincentral#app:site:browser;/travel/templates/availability/enableAllWithRenderType:null:

The `enableAllWithRenderType` expects the `renderType` prop to be present in page definition.

We can now omit using `renderType` by using the `$type`, which is very useful for headless projects cause it also allows us to omit the `class` prop.

`$type` does set implicitly the `renderType`, but the `enableAllWithRenderType` rule does not support it.

Could we improve the `enableAllWithRenderType` feature to take into account the what `$type` sets?


Generated at Mon Feb 12 06:26:49 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.