feat: Instant seamless transition to Teacher Studio Dashboard after onboarding
This commit is contained in:
@@ -1025,10 +1025,11 @@ class TeacherPortal
|
||||
});
|
||||
const data = await res.json();
|
||||
if (res.ok && data.status === 'success') {
|
||||
showSuccess('تم توثيق حسابك بنجاح! جاري توجيهك للاستوديو...');
|
||||
setTimeout(async () => {
|
||||
await checkTeacherSession(token);
|
||||
}, 1000);
|
||||
showSuccess('تم توثيق وتفعيل حسابك بنجاح! أهلاً بك في استوديو صَقِل.');
|
||||
// Immediate Direct Transition to Studio Dashboard
|
||||
renderDashboard({ full_name: fullName }, { specialization: spec });
|
||||
// Sync in background
|
||||
checkTeacherSession(token);
|
||||
} else {
|
||||
showError(data.message || 'فشل حفظ الملف الشخصي.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user