Lesson screen: render fixed lesson figures under intro, example and steps

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 16:26:13 +03:30
parent 0db6526933
commit 5b211c2786
2 changed files with 17 additions and 1 deletions

View File

@@ -106,10 +106,19 @@ export interface LessonIntro {
kind: 'quiz' | 'video';
example: string;
steps: string[];
/** شکل‌های ثابتِ درس (یک بار ساخته و تأییدشده؛ هیچ تولیدِ زنده‌ای نیست). */
figures: LessonFigure[];
videoUrl: string;
durationMinutes: number | null;
}
export interface LessonFigure {
where: 'intro' | 'example' | 'step';
/** فقط برای where='step'، از صفر. */
index?: number;
diagram: DiagramSpec;
}
export interface QuestionOption {
id: string;
value: string;