@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / ec8e5d1
Fork 0

سامانه صدور فاکتور و حسابداری

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 4, 09:15 UTC

fix(auth UX): clearly identify failed app modules instead of generic profile error

davoodmehraban89 committed Oct 13, 2026 at 01:02 UTC ec8e5d1ec427ea45fd852d8d7a1daedbcb4a6396
1 file changed +2
js/core.js
+2
@@ -329,6 +329,8 @@ async function enterApp(authUser,{timeoutMs=25000}={}){
329 const stages=timeoutStageCodes.length?timeoutStageCodes:finoraPendingLoginStages();
330 const safeCodes=stages.length?stages.join(','):'UNKNOWN';
331 setAuthLoginStatus('دریافت اطلاعات حساب بیش از حد طول کشید. مرحله معطل: '+finoraLoginStageDescription(stages)+' (BOOT_'+safeCodes+'). اتصال را بررسی کنید و دوباره تلاش کنید.','error');
332 + }else if(err?.message==='FINORA_APP_ASSETS_UNAVAILABLE'){
333 + setAuthLoginStatus('برخی اجزای نرم‌افزار از این شبکه دریافت نشدند (BOOT_APP_ASSETS_FAILED). برای جلوگیری از نمایش اطلاعات ناقص، محیط کار باز نشد. اتصال را تغییر دهید و صفحه را دوباره بارگذاری کنید.','error');
334 }else{
335 console.error('Finora account hydration failed',err);
336 setAuthLoginStatus('دریافت اطلاعات حساب ناموفق بود؛ اتصال را بررسی و دوباره تلاش کنید.','error');