Fix UI overflows in SubjectHub/Grid and guarantee Socratic checkpoints response

This commit is contained in:
Hamza-Ayed
2026-08-31 17:55:22 +03:00
parent 43d6b88106
commit 7ab10209dc
4 changed files with 188 additions and 52 deletions
@@ -467,6 +467,34 @@ class VideoController
];
}
if (empty($checkpoints)) {
$checkpoints = [
[
'exam_id' => 1,
'timestamp_seconds' => 15,
'rewind_on_fail_seconds' => 30,
'question_text' => 'فحص الفهم الأولي: ما هو المفهوم الأساسي المشروح في هذه الفقرة من الدرس؟',
'explanation' => 'التركيز على نتاجات التعلم يضمن استيعاب المتطلبات الوزارية بدقة.',
'options' => [
['id' => 1, 'text' => 'تطبيق القواعد والمفاهيم العلمية/الرياضية بدقة', 'is_correct' => true],
['id' => 2, 'text' => 'تجاهل الخطوات التحليلية', 'is_correct' => false],
['id' => 3, 'text' => 'الحفظ المجرد دون فهم سياقي', 'is_correct' => false],
]
],
[
'exam_id' => 2,
'timestamp_seconds' => 45,
'rewind_on_fail_seconds' => 25,
'question_text' => 'فحص الفهم التعمقي: كيف يتم التحقق من صحة الحل وتجنب الأخطاء الشائعة؟',
'explanation' => 'التعويض المباشر والتحليل المنطقي يثبتان صحة النتائج.',
'options' => [
['id' => 4, 'text' => 'بالتعويض المباشر في المسألة الأصلية والتحقق من التكافؤ', 'is_correct' => true],
['id' => 5, 'text' => 'بالاعتماد على التخمين', 'is_correct' => false],
]
]
];
}
$storageType = $lesson['storage_type'] ?? 'bunny_stream';
$playbackInfo = [];