feat(bisaya-course): enhance phase 4 didactics with new learning goals and speaking prompts
All checks were successful
Deploy to production / deploy (push) Successful in 1m31s
All checks were successful
Deploy to production / deploy (push) Successful in 1m31s
- Expanded the BISAYA_PHASE4_DIDACTICS by adding new learning goals, core patterns, speaking prompts, and practical tasks to improve language acquisition. - Updated the course content generation scripts to incorporate the new lesson structures and ensure alignment with the latest didactic updates. - Enhanced the logic for generating exercises based on lesson types, introducing additional situational and speaking exercises for advanced lessons.
This commit is contained in:
@@ -30,6 +30,7 @@ async function extendBisayaCoursePhase4() {
|
||||
});
|
||||
|
||||
let addedLessons = 0;
|
||||
let updatedLessons = 0;
|
||||
|
||||
for (const course of courses) {
|
||||
await course.update({
|
||||
@@ -45,17 +46,9 @@ async function extendBisayaCoursePhase4() {
|
||||
}
|
||||
});
|
||||
|
||||
if (existing) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const didactics = BISAYA_PHASE4_DIDACTICS[lessonData.title] || {};
|
||||
const pedagogy = getBisayaLessonPedagogy(lessonData.num) || {};
|
||||
|
||||
await VocabCourseLesson.create({
|
||||
courseId: course.id,
|
||||
chapterId: null,
|
||||
lessonNumber: lessonData.num,
|
||||
const lessonPayload = {
|
||||
title: lessonData.title,
|
||||
description: lessonData.desc,
|
||||
weekNumber: lessonData.week,
|
||||
@@ -77,6 +70,20 @@ async function extendBisayaCoursePhase4() {
|
||||
newUnitTarget: pedagogy.newUnitTarget ?? null,
|
||||
reviewWeight: pedagogy.reviewWeight ?? null,
|
||||
isIntensiveReview: Boolean(pedagogy.isIntensiveReview)
|
||||
};
|
||||
|
||||
if (existing) {
|
||||
await existing.update(lessonPayload);
|
||||
updatedLessons++;
|
||||
console.log(`🔄 Kurs ${course.id}: Lektion ${lessonData.num} - ${lessonData.title} aktualisiert`);
|
||||
continue;
|
||||
}
|
||||
|
||||
await VocabCourseLesson.create({
|
||||
...lessonPayload,
|
||||
courseId: course.id,
|
||||
chapterId: null,
|
||||
lessonNumber: lessonData.num
|
||||
});
|
||||
|
||||
addedLessons++;
|
||||
@@ -87,6 +94,7 @@ async function extendBisayaCoursePhase4() {
|
||||
console.log(`\n🎉 Phase 4 vorbereitet.`);
|
||||
console.log(` Kurse: ${courses.length}`);
|
||||
console.log(` Neue Lektionen ergänzt: ${addedLessons}`);
|
||||
console.log(` Bestehende Lektionen aktualisiert: ${updatedLessons}`);
|
||||
console.log(' Das Einspielen in die DB kann später gesammelt mit den übrigen Phasen erfolgen.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user