feat: Implement AI-generated Role Playing and Hotspot interactive content blocks with UI and service integration.

This commit is contained in:
2026-03-09 13:46:47 -03:00
parent c292efdc28
commit bc5b240984
20 changed files with 947 additions and 42 deletions
@@ -18,6 +18,7 @@ import HotspotPlayer from "@/components/blocks/HotspotPlayer";
import MemoryPlayer from "@/components/blocks/MemoryPlayer";
import DocumentPlayer from "@/components/blocks/DocumentPlayer";
import AudioResponsePlayer from "@/components/blocks/AudioResponsePlayer";
import RolePlayingPlayer from "@/components/blocks/RolePlayingPlayer";
import PeerReviewPlayer from "@/components/blocks/PeerReviewPlayer";
import InteractiveTranscript from "@/components/InteractiveTranscript";
import AITutor from "@/components/AITutor";
@@ -449,6 +450,19 @@ export default function LessonPlayerPage({ params }: { params: { id: string, les
onComplete={(score) => handleBlockComplete(block.id, score)}
/>
);
case 'role-playing':
return (
<RolePlayingPlayer
id={block.id}
lessonId={params.lessonId}
title={block.title}
scenario={block.scenario}
ai_persona={block.ai_persona}
user_role={block.user_role}
objectives={block.objectives}
initial_message={block.initial_message}
/>
);
case 'peer-review':
return (
<PeerReviewPlayer