musora-content-services 2.115.1 → 2.115.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.
@@ -0,0 +1,9 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(rg:*)",
5
+ "Bash(npm run lint:*)"
6
+ ],
7
+ "deny": []
8
+ }
9
+ }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
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.115.3](https://github.com/railroadmedia/musora-content-services/compare/v2.115.2...v2.115.3) (2026-01-12)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * Single lessons, Skill Packs and Entertainment tabs not display content and Courses display any content type ([9793443](https://github.com/railroadmedia/musora-content-services/commit/97934438bf8262fa27349eab562cecf1323c720a))
11
+
12
+ ### [2.115.2](https://github.com/railroadmedia/musora-content-services/compare/v2.115.1...v2.115.2) (2026-01-09)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * fix explore all results ([#698](https://github.com/railroadmedia/musora-content-services/issues/698)) ([e9eb8a5](https://github.com/railroadmedia/musora-content-services/commit/e9eb8a5744b1d24c2b1b8e7ba5573cd128454463))
18
+ * oops ([#693](https://github.com/railroadmedia/musora-content-services/issues/693)) ([0be66cb](https://github.com/railroadmedia/musora-content-services/commit/0be66cbaef0b33dad3074a22b9670cee4ddd0024))
19
+
5
20
  ### [2.115.1](https://github.com/railroadmedia/musora-content-services/compare/v2.115.0...v2.115.1) (2026-01-09)
6
21
 
7
22
  ## [2.115.0](https://github.com/railroadmedia/musora-content-services/compare/v2.114.0...v2.115.0) (2026-01-09)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.115.1",
3
+ "version": "2.115.3",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -55,12 +55,12 @@ export class LengthFilterOptions {
55
55
  }
56
56
 
57
57
  export class Tabs {
58
- static ForYou = { name: 'For You', short_name: 'For You' }
58
+ static ForYou = { name: 'For You', short_name: 'For You', value: 'tab,for you' }
59
59
  static Individuals = { name: 'Individuals', short_name: 'Individuals', value: 'type,individuals', cardType: 'big' }
60
60
  static Collections = { name: 'Collections', short_name: 'Collections', value: 'type,collections', cardType: 'big' }
61
- static ExploreAll = { name: 'Explore All', short_name: 'Explore All', icon: 'icon-filters', cardType: 'big'}
61
+ static ExploreAll = { name: 'Explore All', short_name: 'Explore All', value: 'tab,explore all', icon: 'icon-filters', cardType: 'big'}
62
62
  static All = { name: 'All', short_name: 'All', value: '' }
63
- static Courses = { name: 'Courses', short_name: 'Courses', value: '' }
63
+ static Courses = { name: 'Courses', short_name: 'Courses', value: 'type,Courses' }
64
64
  static SkillLevel = { name: 'Skill Level', short_name: 'SKILL LEVEL', is_group_by: true, value: 'difficulty_string' }
65
65
  static Genres = { name: 'Genres', short_name: 'Genres', is_group_by: true, value: 'genre' }
66
66
  static Completed = { name: 'Completed', short_name: 'COMPLETED', is_group_by: false, value: 'completed' }
@@ -83,9 +83,9 @@ export class Tabs {
83
83
  static RecentActivityPosts = { name: 'Posts', short_name: 'Posts' }
84
84
  static RecentActivityComments = { name: 'Comments', short_name: 'Comments' }
85
85
  // new tabs - 29.10
86
- static SingleLessons = { name: 'Single Lessons', short_name: 'Single Lessons' }
87
- static SkillPacks = { name: 'Skill Packs', short_name: 'Skill Packs' }
88
- static Entertainment = { name: 'Entertainment', short_name: 'Entertainment' }
86
+ static SingleLessons = { name: 'Single Lessons', short_name: 'Single Lessons', value: 'type,Single Lessons' }
87
+ static SkillPacks = { name: 'Skill Packs', short_name: 'Skill Packs', value: 'type,Skill Packs' }
88
+ static Entertainment = { name: 'Entertainment', short_name: 'Entertainment', value: 'type,Entertainment' }
89
89
  }
90
90
 
91
91
  export const TabResponseType = {
@@ -94,10 +94,11 @@ export async function getTabResults(brand, pageName, tabName, {
94
94
  const filteredSelectedFilters = selectedFilters.filter(f => !f.startsWith('progress,'));
95
95
 
96
96
  // Prepare included fields
97
- const tabValue = Object.values(Tabs).find(
98
- tabObj => tabObj.name === tabName
99
- ).value
100
- const mergedIncludedFields = [...filteredSelectedFilters, tabValue];
97
+ const tabMatch = Object.values(Tabs).find(
98
+ tabObj => tabObj.name.toLowerCase() === tabName.toLowerCase()
99
+ )
100
+ const tabValue = tabMatch?.value || ''
101
+ const mergedIncludedFields = tabValue ? [...filteredSelectedFilters, tabValue] : filteredSelectedFilters;
101
102
 
102
103
  // Fetch data
103
104
  let results
@@ -507,7 +507,7 @@ async function saveContentProgress(contentId, collection, progress, currentSecon
507
507
 
508
508
  if (Object.keys(bubbledProgresses).length >= 0) {
509
509
  // BE bubbling/trickling currently does not work, so we utilize non-tentative pushing when learning path collection
510
- await db.contentProgress.recordProgressMany(bubbledProgresses, collection, {tentative: !isLP, skipPush: true, hideFromProgressRow})
510
+ await db.contentProgress.recordProgressMany(bubbledProgresses, collection, {tentative: !isLP, skipPush: true, fromLearningPath})
511
511
  }
512
512
 
513
513
  if (isLP) {