-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CIF-2827: Placeholder XF in product list component #930
Conversation
Codecov Report
@@ Coverage Diff @@
## master #930 +/- ##
============================================
- Coverage 89.71% 89.57% -0.14%
- Complexity 2154 2172 +18
============================================
Files 347 352 +5
Lines 9673 9764 +91
Branches 1394 1405 +11
============================================
+ Hits 8678 8746 +68
- Misses 713 727 +14
- Partials 282 291 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
...n/java/com/adobe/cq/commerce/core/components/models/productcollection/ProductCollection.java
Outdated
Show resolved
Hide resolved
...cr_root/apps/core/cif/components/commerce/productlist/v2/productlist/_cq_dialog/.content.xml
Outdated
Show resolved
Hide resolved
...n/java/com/adobe/cq/commerce/core/components/models/productcollection/ProductCollection.java
Outdated
Show resolved
Hide resolved
...va/com/adobe/cq/commerce/core/components/internal/models/v1/productlist/ProductListImpl.java
Outdated
Show resolved
Hide resolved
...va/com/adobe/cq/commerce/core/components/internal/models/v1/productlist/ProductListImpl.java
Outdated
Show resolved
Hide resolved
We may need an update for the readme and the examples project to show the cool new feature. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
...merce/core/components/services/experiencefragments/CommerceExperienceFragmentsRetriever.java
Outdated
Show resolved
Hide resolved
...main/content/jcr_root/apps/core/cif/components/commerce/productlist/v2/productlist/README.md
Outdated
Show resolved
Hide resolved
...main/content/jcr_root/apps/core/cif/components/commerce/productlist/v2/productlist/README.md
Outdated
Show resolved
Hide resolved
...cr_root/apps/core/cif/components/commerce/productlist/v2/productlist/_cq_dialog/.content.xml
Outdated
Show resolved
Hide resolved
public class ProductListImpl extends ProductCollectionImpl implements ProductList { | ||
|
||
public static final String RESOURCE_TYPE = "core/cif/components/commerce/productlist/v1/productlist"; | ||
protected static final String PLACEHOLDER_DATA = "productlist-component-placeholder-data.json"; | ||
protected static final String PN_FRAGMENT_LOCATION = "fragmentLocation"; | ||
protected static final String PN_FRAGMENT_CSS_CLASS = "fragmentCssClass"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These PN_-s would better be public like ProductList.PN_SHOW_IMAGE and NN_FRAGMENTS.
...va/com/adobe/cq/commerce/core/components/internal/models/v1/productlist/ProductListImpl.java
Show resolved
Hide resolved
...va/com/adobe/cq/commerce/core/components/internal/models/v1/productlist/ProductListImpl.java
Show resolved
Hide resolved
...com/adobe/cq/commerce/core/components/models/common/CommerceExperienceFragmentContainer.java
Outdated
Show resolved
Hide resolved
...com/adobe/cq/commerce/core/components/models/common/CommerceExperienceFragmentContainer.java
Outdated
Show resolved
Hide resolved
...com/adobe/cq/commerce/core/components/models/common/CommerceExperienceFragmentContainer.java
Outdated
Show resolved
Hide resolved
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/--> | ||
<template data-sly-template.item="${@ item}"> | ||
<span class="${'productcollection__item-xf {0}' @ format=[item.cssClassName], context='text'}"> | ||
<sly data-sly-resource="${item.renderResource}" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should include the resource with wcmmode disable. Currently the synthetic resource gets an edit overlay.
composite="{Boolean}true" | ||
fieldDescription="Allows insertion of Experience Fragments at specified positions" | ||
fieldLabel="Experince Fragment placeholders"> | ||
<field |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you miss the render condition here?
Description
be able to insert an XF into the product list component to show content between products
Related Issue
CIF-2827
Motivation and Context
be able to insert an XF into the product list component to show content between products
How Has This Been Tested?
Unit tests.
Manually
Screenshots (if appropriate):
Types of changes
Checklist: