feat(classroom): rebuild curriculum and mastery assessment

This commit is contained in:
itsrubberduck
2026-07-27 10:26:45 +02:00
parent 67541a48b6
commit e58c55cffc
8 changed files with 1027 additions and 32 deletions

View File

@@ -1,6 +1,8 @@
export interface LessonProgress {
best: number
done: boolean
assessmentVersion?: number
successfulVariants?: number
}
export type LearnProgress = Record<string, Record<string, LessonProgress>>
@@ -14,12 +16,17 @@ export interface LearnConfig {
}
export interface LearnState {
/** Legacy compatibility only. Classroom no longer awards or displays XP. */
xp: number
progress: LearnProgress
config: LearnConfig
/** Legacy compatibility only. All Classroom modules are now available. */
unlockedModules: string[]
}
export const CLASSROOM_ASSESSMENT_VERSION = 2
export const CLASSROOM_VARIANTS_FOR_MASTERY = 2
export const LEARN_CONFIG_DEFAULTS: LearnConfig = {
tts: false,
radioLevel: 5,