Add frontend loading imporvements
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user