- TaskReviewPanel: keep one preview iframe and hot-switch students via
postMessage instead of rebuilding the SPA on every click; cache class
task config per class; reset preview scroll on switch.
- Show a loading overlay on the preview container and reveal it only
after the embedded page reports component + requests + DOM settled.
- StudentTaskReadonlyPreview: two-phase component swap so the previous
student instance is fully unmounted before the next mounts; sync the
iframe URL previewKey so context lookups keep working; isolate
localStorage to stop student pages leaking drafts between previews.
- Block student-answer reads/writes in preview mode even when the
preview context key cannot be resolved.
Added functionality to manage student demo sessions, ensuring the role is fixed to student to prevent unauthorized access. Introduced a new method to unwrap demo payloads and save session data securely. Updated navigation logic to redirect users appropriately based on their role, enhancing the user experience during demo sessions.