musora-content-services 2.117.2 → 2.117.3
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/.claude/settings.local.json +9 -0
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/contentMetaData.js +7 -2
- package/src/services/sanity.js +1 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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
|
+
### [2.117.3](https://github.com/railroadmedia/musora-content-services/compare/v2.117.2...v2.117.3) (2026-01-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* resolve foryou issue on mpf ([#703](https://github.com/railroadmedia/musora-content-services/issues/703)) ([3e8f0dd](https://github.com/railroadmedia/musora-content-services/commit/3e8f0ddc60eb51a5c510df6433e1cca1c5f5496a))
|
|
11
|
+
|
|
5
12
|
### [2.117.2](https://github.com/railroadmedia/musora-content-services/compare/v2.117.1...v2.117.2) (2026-01-13)
|
|
6
13
|
|
|
7
14
|
### [2.117.1](https://github.com/railroadmedia/musora-content-services/compare/v2.117.0...v2.117.1) (2026-01-13)
|
package/package.json
CHANGED
package/src/contentMetaData.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
// Metadata is taken from the 'common' element and then merged with the <brand> metadata.
|
|
2
2
|
// Brand values are prioritized and will override the same property in the 'common' element.
|
|
3
3
|
|
|
4
|
-
import { ALWAYS_VISIBLE_TABS } from './services/sanity.js'
|
|
5
|
-
|
|
6
4
|
const PROGRESS_NAMES = ['All', 'In Progress', 'Completed', 'Not Started']
|
|
7
5
|
const DIFFICULTY_STRINGS = ['Introductory', 'Beginner', 'Intermediate', 'Advanced', 'Expert']
|
|
8
6
|
|
|
@@ -128,6 +126,13 @@ export class Tabs {
|
|
|
128
126
|
static Entertainment = { name: 'Entertainment', short_name: 'Entertainment', value: 'type,Entertainment' }
|
|
129
127
|
}
|
|
130
128
|
|
|
129
|
+
/**
|
|
130
|
+
* Song/Lesson tabs that are always visible.
|
|
131
|
+
*
|
|
132
|
+
* @type {object[]}
|
|
133
|
+
*/
|
|
134
|
+
export const ALWAYS_VISIBLE_TABS = [Tabs.ForYou, Tabs.ExploreAll]
|
|
135
|
+
|
|
131
136
|
export const TabResponseType = {
|
|
132
137
|
SECTIONS: 'sections',
|
|
133
138
|
CATALOG: 'catalog',
|
package/src/services/sanity.js
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
SONG_TYPES_WITH_CHILDREN,
|
|
34
34
|
} from '../contentTypeConfig.js'
|
|
35
35
|
import { fetchSimilarItems, recommendations } from './recommendations.js'
|
|
36
|
-
import { getSongType, processMetadata,
|
|
36
|
+
import { getSongType, processMetadata, ALWAYS_VISIBLE_TABS } from '../contentMetaData.js'
|
|
37
37
|
import { GET } from '../infrastructure/http/HttpClient.ts'
|
|
38
38
|
|
|
39
39
|
import { globalConfig } from './config.js'
|
|
@@ -50,13 +50,6 @@ import { fetchRecentActivitiesActiveTabs } from './userActivity.js'
|
|
|
50
50
|
*/
|
|
51
51
|
const excludeFromGeneratedIndex = ['fetchRelatedByLicense']
|
|
52
52
|
|
|
53
|
-
/**
|
|
54
|
-
* Song/Lesson tabs that are always visible.
|
|
55
|
-
*
|
|
56
|
-
* @type {object[]}
|
|
57
|
-
*/
|
|
58
|
-
export const ALWAYS_VISIBLE_TABS = [Tabs.ForYou, Tabs.ExploreAll]
|
|
59
|
-
|
|
60
53
|
/**
|
|
61
54
|
* Mapping from tab names to their underlying Sanity content types.
|
|
62
55
|
* Used to determine if a tab has any content available.
|