From 879cd7d10c4ac839e5b91764d9dd582416139bfc Mon Sep 17 00:00:00 2001 From: hbyang Date: Tue, 30 Dec 2025 15:56:20 +0900 Subject: [PATCH] =?UTF-8?q?complete=20=EC=9D=B4=ED=9B=84=20=EC=9E=90?= =?UTF-8?q?=EB=8F=99=EC=9C=BC=EB=A1=9C=20next=20=ED=98=B8=EC=B6=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Dashboard/SoundStudioContent.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) 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(