Add frontend loading imporvements

This commit is contained in:
Urtzi Alfaro
2025-12-27 21:30:42 +01:00
parent 6e3a6590d6
commit 54662dde79
21 changed files with 799 additions and 363 deletions

View File

@@ -295,10 +295,10 @@ const DemoPage = () => {
// BUG-010 FIX: Handle ready status separately from partial
if (statusData.status === 'ready') {
// Full success - set to 100% and navigate after delay
// Full success - set to 100% and navigate immediately
clearInterval(progressInterval);
setCloneProgress(prev => ({ ...prev, overall: 100 }));
setTimeout(() => {
requestAnimationFrame(() => {
// Reset state before navigation
setCreatingTier(null);
setProgressStartTime(null);
@@ -311,7 +311,7 @@ const DemoPage = () => {
});
// Navigate to the main dashboard which will automatically route to enterprise or bakery dashboard based on subscription tier
navigate('/app/dashboard');
}, 1500); // Increased from 1000ms to show 100% completion
});
return;
} else if (statusData.status === 'PARTIAL' || statusData.status === 'partial') {
// BUG-010 FIX: Show warning modal for partial status