Skip to content

Commit a6be0dc

Browse files
authored
CIF-2612 - Fix CIF config for https://dev.aemcomponents.dev (#777)
* cloudManagerTarget config for examples deployment * deploy samples via all incl. bundles * reverse package-lock.json * disable CatalogPageNotFoundFilter for examples library * move product & productlist to seperate pages to work with the not found filter * don't commit package-lock.json * fix code format * fix failing ITs & UI Tests * fix category display
1 parent 6ad7e37 commit a6be0dc

22 files changed

Lines changed: 471 additions & 372 deletions

File tree

all/pom.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@
9494
<filter>true</filter>
9595
</subPackage>
9696
</subPackages>
97-
<properties>
98-
<cloudManagerTarget>none</cloudManagerTarget>
99-
</properties>
10097
</configuration>
10198
</plugin>
10299
<plugin>

examples/all/pom.xml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,9 @@
5959
<configuration>
6060
<group>cif-components-library</group>
6161
<packageType>container</packageType>
62-
<properties>
63-
<cloudManagerTarget>none</cloudManagerTarget>
64-
</properties>
6562
<allowIndexDefinitions>true</allowIndexDefinitions>
6663
<embeddedTarget>/apps/core/cif/install</embeddedTarget>
6764
<embeddeds>
68-
<embedded>
69-
<groupId>com.adobe.commerce.cif</groupId>
70-
<artifactId>graphql-client</artifactId>
71-
<filter>true</filter>
72-
<target>/apps/core/cif/install</target>
73-
</embedded>
7465
<embedded>
7566
<groupId>com.adobe.commerce.cif</groupId>
7667
<artifactId>magento-graphql</artifactId>
@@ -91,16 +82,6 @@
9182
</embedded>
9283
</embeddeds>
9384
<subPackages>
94-
<subPackage>
95-
<groupId>com.adobe.commerce.cif</groupId>
96-
<artifactId>core-cif-components-apps</artifactId>
97-
<filter>true</filter>
98-
</subPackage>
99-
<subPackage>
100-
<groupId>com.adobe.commerce.cif</groupId>
101-
<artifactId>core-cif-components-config</artifactId>
102-
<filter>true</filter>
103-
</subPackage>
10485
<subPackage>
10586
<groupId>com.adobe.commerce.cif</groupId>
10687
<artifactId>core-cif-components-examples-apps</artifactId>

examples/bundle/src/main/java/com/adobe/cq/commerce/core/examples/servlets/GraphqlServlet.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,8 @@ private List<CategoryTree> readCategoryListResponse(DataFetchingEnvironment env)
484484
} else if (filters.get("url_key").get("eq").equals("unknown-category")) {
485485
// return empty response
486486
graphqlResponse = readGraphqlResponse(UNKNOWN_CATEGORY_JSON);
487+
} else {
488+
graphqlResponse = readGraphqlResponse(CATEGORY_UID_JSON);
487489
}
488490
} else if (filters.containsKey("category_uid")) {
489491
if (filters.get("category_uid").containsKey("in") && (((List<String>) (filters.get("category_uid").get("in"))).size() == 4)) {

examples/ui.content/src/main/content/jcr_root/content/core-components-examples/library/commerce/.content.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
jcr:primaryType="cq:Page">
44
<jcr:content
55
cq:allowedTemplates="[/conf/core-components-examples/settings/wcm/templates/.*]"
6-
cq:cifCategoryPage="/content/core-components-examples/library/commerce/productlist"
7-
cq:cifProductPage="/content/core-components-examples/library/commerce/product"
6+
cq:cifCategoryPage="/content/core-components-examples/library/commerce/productlist/sample-productlist"
7+
cq:cifProductPage="/content/core-components-examples/library/commerce/product/sample-product"
88
cq:cifSearchResultsPage="/content/core-components-examples/library/commerce/search"
99
cq:conf="/conf/core-components-examples"
1010
cq:deviceGroups="[/etc/mobile/groups/responsive]"

examples/ui.content/src/main/content/jcr_root/content/core-components-examples/library/commerce/breadcrumb/.content.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
jcr:lastModifiedBy="admin"
8080
jcr:primaryType="nt:unstructured"
8181
sling:resourceType="core-components-examples/components/text"
82-
text="&lt;p>The component is configured to display all the AEM pages under the &amp;quot;root&amp;quot; of the library. In addition to displaying content pages, the component will display commerce data when used on a product or category page. Check the examples at the bottom of the following pages:&lt;/p>&#xd;&#xa;&lt;ul>&#xd;&#xa;&lt;li>&lt;a href=&quot;/content/core-components-examples/library/commerce/product.html/chaz-kangeroo-hoodie.html&quot;>Product page with sample data.&lt;/a>&lt;/li>&#xd;&#xa;&lt;li>&lt;a href=&quot;/content/core-components-examples/library/commerce/productlist.html/outdoor.html&quot;>Category page with sample data.&lt;/a>&lt;br>&#xd;&#xa;&lt;/li>&#xd;&#xa;&lt;/ul>&#xd;&#xa;"
82+
text="&lt;p>The component is configured to display all the AEM pages under the &amp;quot;root&amp;quot; of the library. In addition to displaying content pages, the component will display commerce data when used on a product or category page. Check the examples at the bottom of the following pages:&lt;/p>&#xd;&#xa;&lt;ul>&#xd;&#xa;&lt;li>&lt;a href=&quot;/content/core-components-examples/library/commerce/product/sample-product.html/chaz-kangeroo-hoodie.html&quot;>Product page with sample data.&lt;/a>&lt;/li>&#xd;&#xa;&lt;li>&lt;a href=&quot;/content/core-components-examples/library/commerce/productlist/sample-productlist.html/outdoor.html&quot;>Category page with sample data.&lt;/a>&lt;br>&#xd;&#xa;&lt;/li>&#xd;&#xa;&lt;/ul>&#xd;&#xa;"
8383
textIsRich="true"/>
8484
<demo
8585
jcr:created="{Date}2018-12-07T12:55:03.496+01:00"

examples/ui.content/src/main/content/jcr_root/content/core-components-examples/library/commerce/contentfragment/.content.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
jcr:lastModifiedBy="admin"
3535
jcr:primaryType="nt:unstructured"
3636
sling:resourceType="core-components-examples/components/text"
37-
text="&lt;p>The Commerce Content Fragment component is a server-side component written in HTL, allowing to dynamically display a content fragment based on:&lt;/p>&#xa;&lt;ul>&#xa;&lt;li>the SKU of the product currently being displayed on the product page&lt;/li>&#xa;&lt;li>the product SKU provided in each content fragment&lt;/li>&#xa;&lt;li>the content fragment model provided for the component&lt;/li>&#xa;&lt;/ul>&#xa;&lt;p>To demonstrate the use of this component, a Commerce Content Fragment component is defined at the bottom of the demo product page, and is configured to be only rendered for the &lt;a href=&quot;/content/core-components-examples/library/commerce/product.html/chaz-kangeroo-hoodie.html&quot;>&amp;quot;Chaz Kangeroo Hoodie&amp;quot; product&lt;/a>, that is when the SKU matches &amp;quot;MH01&amp;quot;. Note that this Commerce Content Fragment component is not rendered when the product SKU does not match (on the other demo product pages).&lt;br>&#xa;&lt;/p>&#xa;"
37+
text="&lt;p>The Commerce Content Fragment component is a server-side component written in HTL, allowing to dynamically display a content fragment based on:&lt;/p>&#xa;&lt;ul>&#xa;&lt;li>the SKU of the product currently being displayed on the product page&lt;/li>&#xa;&lt;li>the product SKU provided in each content fragment&lt;/li>&#xa;&lt;li>the content fragment model provided for the component&lt;/li>&#xa;&lt;/ul>&#xa;&lt;p>To demonstrate the use of this component, a Commerce Content Fragment component is defined at the bottom of the demo product page, and is configured to be only rendered for the &lt;a href=&quot;/content/core-components-examples/library/commerce/product/sample-product.html/chaz-kangeroo-hoodie.html&quot;>&amp;quot;Chaz Kangeroo Hoodie&amp;quot; product&lt;/a>, that is when the SKU matches &amp;quot;MH01&amp;quot;. Note that this Commerce Content Fragment component is not rendered when the product SKU does not match (on the other demo product pages).&lt;br>&#xa;&lt;/p>&#xa;"
3838
textIsRich="true"/>
3939
<teaser
4040
cq:styleIds="[1550165685463]"

examples/ui.content/src/main/content/jcr_root/content/core-components-examples/library/commerce/experiencefragment/.content.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
jcr:lastModifiedBy="admin"
3535
jcr:primaryType="nt:unstructured"
3636
sling:resourceType="core-components-examples/components/text"
37-
text="&lt;p>The Commerce Experience Fragment component is a server-side component written in HTL, allowing to dynamically display an experience fragment based on:&lt;/p>&#xa;&lt;ul>&#xa;&lt;li>the SKU of the product currently being displayed on the product page&lt;/li>&#xa;&lt;li>the product SKU defined in each experience fragment&lt;/li>&#xa;&lt;li>the target location defined in each experience fragment&lt;/li>&#xa;&lt;/ul>&#xa;&lt;p>The location matching is based on a specific property defined on the one hand in the experience fragment content, and on the other hand in the Commerce Experience Fragment component(s) defined on the product page.&lt;/p>&#xa;&lt;p>To demonstrate the use of this component, a Commerce Experience Fragment component is defined at the bottom of the demo product page, and is configured to be only rendered for the &lt;a href=&quot;/content/core-components-examples/library/commerce/product.html/chaz-kangeroo-hoodie.html&quot;>&amp;quot;Chaz Kangeroo Hoodie&amp;quot; product&lt;/a>, that is when the SKU matches &amp;quot;MH01&amp;quot;. Note that this Commerce Experience Fragment component is not rendered when the product SKU does not match (on the other demo product pages).&lt;br>&#xa;&lt;/p>&#xa;"
37+
text="&lt;p>The Commerce Experience Fragment component is a server-side component written in HTL, allowing to dynamically display an experience fragment based on:&lt;/p>&#xa;&lt;ul>&#xa;&lt;li>the SKU of the product currently being displayed on the product page&lt;/li>&#xa;&lt;li>the product SKU defined in each experience fragment&lt;/li>&#xa;&lt;li>the target location defined in each experience fragment&lt;/li>&#xa;&lt;/ul>&#xa;&lt;p>The location matching is based on a specific property defined on the one hand in the experience fragment content, and on the other hand in the Commerce Experience Fragment component(s) defined on the product page.&lt;/p>&#xa;&lt;p>To demonstrate the use of this component, a Commerce Experience Fragment component is defined at the bottom of the demo product page, and is configured to be only rendered for the &lt;a href=&quot;/content/core-components-examples/library/commerce/product/sample-product.html/chaz-kangeroo-hoodie.html&quot;>&amp;quot;Chaz Kangeroo Hoodie&amp;quot; product&lt;/a>, that is when the SKU matches &amp;quot;MH01&amp;quot;. Note that this Commerce Experience Fragment component is not rendered when the product SKU does not match (on the other demo product pages).&lt;br>&#xa;&lt;/p>&#xa;"
3838
textIsRich="true"/>
3939
<teaser
4040
cq:styleIds="[1550165685463]"

0 commit comments

Comments
 (0)