musora-content-services 1.0.143 → 1.0.145
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/contentMetaData.js +5 -1
- package/src/contentTypeConfig.js +1 -0
- package/src/services/sanity.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.0.145](https://github.com/railroadmedia/musora-content-services/compare/v1.0.144...v1.0.145) (2024-10-25)
|
|
6
|
+
|
|
7
|
+
### [1.0.144](https://github.com/railroadmedia/musora-content-services/compare/v1.0.143...v1.0.144) (2024-10-25)
|
|
8
|
+
|
|
5
9
|
### [1.0.143](https://github.com/railroadmedia/musora-content-services/compare/v1.0.142...v1.0.143) (2024-10-24)
|
|
6
10
|
|
|
7
11
|
### [1.0.142](https://github.com/railroadmedia/musora-content-services/compare/v1.0.141...v1.0.142) (2024-10-22)
|
package/package.json
CHANGED
package/src/contentMetaData.js
CHANGED
|
@@ -165,8 +165,10 @@ const commonMetadata ={
|
|
|
165
165
|
sortBy: '-published_on',
|
|
166
166
|
},
|
|
167
167
|
'workout': {
|
|
168
|
+
name: "Workouts",
|
|
169
|
+
shortname: 'Workouts',
|
|
168
170
|
allowableFilters: ['difficulty', 'genre', 'topic'],
|
|
169
|
-
|
|
171
|
+
tabs: [
|
|
170
172
|
{
|
|
171
173
|
name: 'All',
|
|
172
174
|
short_name: 'ALL',
|
|
@@ -1071,6 +1073,8 @@ const contentMetadata = {
|
|
|
1071
1073
|
}
|
|
1072
1074
|
},
|
|
1073
1075
|
'workout': {
|
|
1076
|
+
name: "Workouts",
|
|
1077
|
+
shortname: 'Workouts',
|
|
1074
1078
|
tabs: [
|
|
1075
1079
|
{
|
|
1076
1080
|
name: 'All',
|
package/src/contentTypeConfig.js
CHANGED
package/src/services/sanity.js
CHANGED
|
@@ -644,6 +644,7 @@ export async function fetchAllFilterOptions(
|
|
|
644
644
|
const metaData = processMetadata(brand, contentType, true);
|
|
645
645
|
const allowableFilters = metaData?.allowableFilters || [];
|
|
646
646
|
const tabs = metaData?.tabs || [];
|
|
647
|
+
const catalogName = metaData?.shortname || metaData?.name;
|
|
647
648
|
|
|
648
649
|
const dynamicFilterOptions = allowableFilters.map(filter => getFilterOptions(filter, constructCommonFilter(filter), contentType, brand)).join(' ');
|
|
649
650
|
|
|
@@ -660,7 +661,7 @@ export async function fetchAllFilterOptions(
|
|
|
660
661
|
|
|
661
662
|
const results = await fetchSanity(query, true, { processNeedAccess: false });
|
|
662
663
|
|
|
663
|
-
return includeTabs ? { ...results, tabs } : results;
|
|
664
|
+
return includeTabs ? { ...results, tabs, catalogName } : results;
|
|
664
665
|
}
|
|
665
666
|
|
|
666
667
|
|