feat(dashboard): moved course completion deadline to course settings page (#842)

This commit is contained in:
Victor Jack
2026-08-15 18:55:51 +01:00
committed by GitHub
parent b267db6319
commit ad5c8db5a9
22 changed files with 528 additions and 244 deletions
@@ -16,6 +16,12 @@ type CourseSettings = {
progressionMode: 'free' | 'sequential';
callout: TCourseCallout | null;
welcomeEmailMessage: string;
certificate: {
deadline: string | null;
threshold: number;
requiredExerciseId: string | null;
exerciseMinScorePercent: number | null;
};
};
export const settings = writable<CourseSettings>({
@@ -36,5 +42,11 @@ export const settings = writable<CourseSettings>({
isContentGroupingEnabled: true,
progressionMode: 'free',
callout: null,
welcomeEmailMessage: ''
welcomeEmailMessage: '',
certificate: {
deadline: null,
threshold: 100,
requiredExerciseId: null,
exerciseMinScorePercent: null
}
});