Skip to content

Commit fc1a5e0

Browse files
committed
Rebranding "Other Products" to "Partners"
1 parent da36ced commit fc1a5e0

File tree

8 files changed

+26
-21
lines changed

8 files changed

+26
-21
lines changed

archetypes/pattern/_index.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ industries:
1010
- Industry 1
1111
- Industry 2
1212
- etc
13+
partners:
14+
- partner 1
15+
- partner 2
16+
- etc
1317
links:
1418
install:
1519
arch:

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ markup:
2828
taxonomies:
2929
industry: 'industries'
3030
rh_product: 'rh_products'
31-
other_product: 'other_products'
31+
partners: 'partners'
3232
blog_tag: 'blog_tags'
3333

3434
mediaTypes:

content/patterns/ansible-edge-gitops-kasten/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ rh_products:
99
- Red Hat OpenShift Virtualization
1010
- Red Hat Enterprise Linux
1111
- Red Hat OpenShift Data Foundation
12-
other_products:
12+
partners:
1313
- Veeam Kasten
1414
industries:
1515
- Chemical

content/patterns/hypershift/_index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ summary: This pattern is for deploying the Hosted Control Plane (HyperShift) ser
66
rh_products:
77
- Red Hat OpenShift Container Platform
88
- Red Hat MultiCluster Engine
9-
other_products:
9+
partners:
1010
- AWS Controller for Kubernetes
1111
industries:
1212
- Infrastructure

content/patterns/multicloud-gitops-Portworx/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ summary: This pattern helps you develop and deploy applications on an open hybri
66
rh_products:
77
- Red Hat OpenShift Container Platform
88
- Red Hat Advanced Cluster Management
9-
other_products:
9+
partners:
1010
- Portworx Enterprise
1111
industries:
1212
- General

layouts/partials/menu-patterns-browser.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ <h2 class="accordion-header" id="rhProductHeading">
7575
</div>
7676
</div>
7777

78-
<!--OTHER PRODUCTS-->
78+
<!--PARTNERS-->
7979

8080
<div class="accordion-item">
81-
<h2 class="accordion-header" id="otherProductHeading">
82-
<button class="pf-c-accordion__toggle collapsed" title="Filter patterns by other products" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOtherProducts" aria-expanded="false" aria-controls="collapseOtherProducts">
83-
Other products
81+
<h2 class="accordion-header" id="partnerHeading">
82+
<button class="pf-c-accordion__toggle collapsed" title="Filter patterns by partners" type="button" data-bs-toggle="collapse" data-bs-target="#collapsePartners" aria-expanded="false" aria-controls="collapsePartners">
83+
Partners
8484
<span class="pf-c-accordion__toggle-icon">
8585
<i class="fas fa-angle-right" aria-hidden="true"></i>
8686
</span>
@@ -89,10 +89,10 @@ <h2 class="accordion-header" id="otherProductHeading">
8989
</span>
9090
</button>
9191
</h2>
92-
<div id="collapseOtherProducts" class="pf-c-accordion__expanded-content collapse" aria-labelledby="otherProductHeading" data-bs-parent="#patternsAccordionNav">
92+
<div id="collapsePartners" class="pf-c-accordion__expanded-content collapse" aria-labelledby="PartnersHeading" data-bs-parent="#patternsAccordionNav">
9393
<div class="pf-c-accordion__expanded-content-body">
9494
<div class="pf-c-select__menu-group">
95-
<fieldset class="pf-c-select__menu-fieldset" aria-labelledby="select-checkbox-expanded-selected-group-otherproducts" id="OtherProductsItems">
95+
<fieldset class="pf-c-select__menu-fieldset" aria-labelledby="select-checkbox-expanded-selected-group-partners" id="PartnersItems">
9696
</fieldset>
9797
</div>
9898
</div>

layouts/patterns/list.json.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
{{- $rh_products_filter_types := slice "AND" "OR" }}
1818
{{- $rh_products_dict := dict "filter_list" $rh_products_list "filter_types" $rh_products_filter_types }}
1919

20-
{{/* Other Products */}}
21-
{{- $other_products := .Site.Taxonomies.other_products }}
22-
{{- $other_products_list := slice }}
23-
{{- range $index, $other_product := $other_products.Alphabetical }}
24-
{{- $other_products_list = $other_products_list | append (dict "Name" $other_product.Name "LinkTitle" $other_product.Page.LinkTitle) }}
20+
{{/* Partners */}}
21+
{{- $partners := .Site.Taxonomies.partners }}
22+
{{- $partners_list := slice }}
23+
{{- range $index, $partners := $partners.Alphabetical }}
24+
{{- $partners_list = $partners_list | append (dict "Name" $partners.Name "LinkTitle" $partners.Page.LinkTitle) }}
2525
{{- end }}
26-
{{- $other_products_filter_types := slice "AND" "OR" }}
27-
{{- $other_products_dict := dict "filter_list" $other_products_list "filter_types" $other_products_filter_types }}
26+
{{- $partners_filter_types := slice "AND" "OR" }}
27+
{{- $partners_dict := dict "filter_list" $partners_list "filter_types" $partners_filter_types }}
2828

2929
{{/* Industries */}}
3030
{{- $industries := .Site.Taxonomies.industries }}
@@ -43,6 +43,6 @@
4343
{{- $tiers_filter_types := slice "OR" }}
4444
{{- $tiers_dict := dict "filter_list" $tiers_list "filter_types" $tiers_filter_types }}
4545

46-
{{- $filter_categories := dict "rh_products" $rh_products_dict "other_products" $other_products_dict "industries" $industries_dict "tier" $tiers_dict -}}
46+
{{- $filter_categories := dict "rh_products" $rh_products_dict "partners" $partners_dict "industries" $industries_dict "tier" $tiers_dict -}}
4747
{{- dict "patterns" $pattern_list "filter_categories" $filter_categories | jsonify }}
4848
{{- end }}

static/js/patterns-browser-v2.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ function getParams() {
121121
enabledParams.filters.industries = urlParams.get("industries_filter");
122122
enabledParams.categories.rh_products = urlParams.getAll("rh_products");
123123
enabledParams.filters.rh_products = urlParams.get("rh_products_filter");
124-
enabledParams.categories.other_products = urlParams.getAll("other_products");
125-
enabledParams.filters.other_products = urlParams.get("other_products_filter");
124+
enabledParams.categories.partners = urlParams.getAll("partners");
125+
enabledParams.filters.partners = urlParams.get("partners_filter");
126126
return enabledParams;
127127
}
128128

@@ -398,9 +398,10 @@ function clearFilters(){
398398
const patternsData = getData();
399399
const enabledParams = getParams();
400400
patternsData.then(output => {
401+
console.log(output);
401402
renderFilter("TiersItems", "tier", output.filter_categories.tier, enabledParams.categories.tier, enabledParams.filters.tier);
402403
renderFilter("IndustriesItems", "industries", output.filter_categories.industries, enabledParams.categories.industries, enabledParams.filters.industries);
403404
renderFilter("RhProductsItems", "rh_products", output.filter_categories.rh_products, enabledParams.categories.rh_products, enabledParams.filters.rh_products);
404-
renderFilter("OtherProductsItems", "other_products", output.filter_categories.other_products, enabledParams.categories.other_products, enabledParams.filters.other_products);
405+
renderFilter("PartnersItems", "partners", output.filter_categories.partners, enabledParams.categories.partners, enabledParams.filters.partners);
405406
renderFilteredCards(output.patterns, output.filter_categories)
406407
});

0 commit comments

Comments
 (0)