feat: Introduce AI code hinting, enforce single-tenant organization model, and add a Code Lab block component.

This commit is contained in:
2026-03-09 17:24:15 -03:00
parent b9c17ce67b
commit bde5be22e7
26 changed files with 822 additions and 1378 deletions
@@ -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 || ""}