From dbafd07f1e3527e5c383e4e8a41848995605c010 Mon Sep 17 00:00:00 2001 From: Samson Akol Date: Wed, 3 Dec 2025 11:16:55 +0300 Subject: [PATCH 1/4] Adds new modalities course, unit, and lesson --- js/Modalities.js | 3 +++ js/package.json | 2 +- le_utils/constants/modalities.py | 9 +++++++++ spec/constants-modalities.json | 5 ++++- 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/js/Modalities.js b/js/Modalities.js index 9ffb220..4e15b69 100644 --- a/js/Modalities.js +++ b/js/Modalities.js @@ -3,7 +3,10 @@ // Modalities export default { + COURSE: "COURSE", CUSTOM_NAVIGATION: "CUSTOM_NAVIGATION", + LESSON: "LESSON", QUIZ: "QUIZ", SURVEY: "SURVEY", + UNIT: "UNIT", }; diff --git a/js/package.json b/js/package.json index d0ac165..8ee98a5 100644 --- a/js/package.json +++ b/js/package.json @@ -27,5 +27,5 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, - "version": "0.2.12" + "version": "0.2.9" } \ No newline at end of file diff --git a/le_utils/constants/modalities.py b/le_utils/constants/modalities.py index 257b30d..5269b79 100644 --- a/le_utils/constants/modalities.py +++ b/le_utils/constants/modalities.py @@ -4,18 +4,27 @@ # Modalities +COURSE = "COURSE" CUSTOM_NAVIGATION = "CUSTOM_NAVIGATION" +LESSON = "LESSON" QUIZ = "QUIZ" SURVEY = "SURVEY" +UNIT = "UNIT" choices = ( + (COURSE, "Course"), (CUSTOM_NAVIGATION, "Custom Navigation"), + (LESSON, "Lesson"), (QUIZ, "Quiz"), (SURVEY, "Survey"), + (UNIT, "Unit"), ) MODALITIESLIST = [ + COURSE, CUSTOM_NAVIGATION, + LESSON, QUIZ, SURVEY, + UNIT, ] diff --git a/spec/constants-modalities.json b/spec/constants-modalities.json index 8e3f988..7f22365 100644 --- a/spec/constants-modalities.json +++ b/spec/constants-modalities.json @@ -1,5 +1,8 @@ [ "QUIZ", "CUSTOM_NAVIGATION", - "SURVEY" + "SURVEY", + "COURSE", + "UNIT", + "LESSON" ] From b3f3b7a8dbab1966ddf9d80b632af05d9d69c64c Mon Sep 17 00:00:00 2001 From: Samson Akol Date: Wed, 3 Dec 2025 11:32:12 +0300 Subject: [PATCH 2/4] Bumbs le-utils version --- js/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/package.json b/js/package.json index 8ee98a5..0228346 100644 --- a/js/package.json +++ b/js/package.json @@ -27,5 +27,5 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, - "version": "0.2.9" + "version": "0.2.13" } \ No newline at end of file From 2e8778aeb5405bce42aa86a301dfc821e8ed0692 Mon Sep 17 00:00:00 2001 From: Samson Akol Date: Wed, 3 Dec 2025 11:38:40 +0300 Subject: [PATCH 3/4] Fixes linting issues --- js/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/package.json b/js/package.json index 0228346..23514a6 100644 --- a/js/package.json +++ b/js/package.json @@ -28,4 +28,4 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "version": "0.2.13" -} \ No newline at end of file +} From 788be3299e156ae8714c91bb2aa04ab28d977699 Mon Sep 17 00:00:00 2001 From: Samson Akol Date: Wed, 3 Dec 2025 11:44:18 +0300 Subject: [PATCH 4/4] Reverts version --- js/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/package.json b/js/package.json index 23514a6..d0ac165 100644 --- a/js/package.json +++ b/js/package.json @@ -27,5 +27,5 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, - "version": "0.2.13" -} + "version": "0.2.12" +} \ No newline at end of file