diff --git a/src/pages/Dashboard/SoundStudioContent.tsx b/src/pages/Dashboard/SoundStudioContent.tsx index cd90649..8945219 100755 --- a/src/pages/Dashboard/SoundStudioContent.tsx +++ b/src/pages/Dashboard/SoundStudioContent.tsx @@ -135,6 +135,17 @@ const SoundStudioContent: React.FC = ({ }; }, [isLanguageDropdownOpen]); + // Auto-navigate to next page when video generation is complete + useEffect(() => { + if (videoGenerationStatus === 'complete' && songTaskId) { + // Wait a brief moment to show 100% completion before navigating + const timer = setTimeout(() => { + onNext(songTaskId); + }, 500); + return () => clearTimeout(timer); + } + }, [videoGenerationStatus, songTaskId, onNext]); + const resumePolling = async (taskId: string, sunoTaskId: string, currentLyrics: string, currentRetryCount: number = 0) => { try { const downloadResponse = await waitForSongComplete(