feat: Introduce AI code hinting, enforce single-tenant organization model, and add a Code Lab block component.
This commit is contained in:
@@ -424,9 +424,22 @@ export default function LessonPlayerPage({ params }: { params: { id: string, les
|
||||
onComplete={(score) => handleBlockComplete(block.id, score)}
|
||||
/>
|
||||
);
|
||||
case 'code-lab':
|
||||
return (
|
||||
<CodeExercisePlayer
|
||||
lessonId={params.lessonId}
|
||||
title={block.title}
|
||||
instructions={block.instructions || ""}
|
||||
initialCode={block.initial_code || ""}
|
||||
language={block.language}
|
||||
testCases={block.test_cases}
|
||||
onComplete={(score) => handleBlockComplete(block.id, score)}
|
||||
/>
|
||||
);
|
||||
case 'code':
|
||||
return (
|
||||
<CodeExercisePlayer
|
||||
lessonId={params.lessonId}
|
||||
title={block.title}
|
||||
instructions={block.instructions || ""}
|
||||
initialCode={block.initialCode || ""}
|
||||
|
||||
Reference in New Issue
Block a user