youtube 계정연결 기능 작업

This commit is contained in:
HyeongBaeYang committed 2026-02-02 12:39:51 +09:00
1 parent cac825de19
commit 5c912e4bf8
11 files changed
+2918 -86

No files matched your search

+12 -1
View File
@@ -22,6 +22,7 @@ const ANALYSIS_DATA_KEY = 'castad_analysis_data';
// 다른 컴포넌트에서 사용하는 storage key들 (초기화용)
const SONG_GENERATION_KEY = 'castad_song_generation';
const VIDEO_GENERATION_KEY = 'castad_video_generation';
const VIDEO_COMPLETE_KEY = 'castad_video_complete'; // 완료된 영상 정보
// 모든 프로젝트 관련 localStorage 초기화
const clearAllProjectStorage = () => {
@@ -30,6 +31,7 @@ const clearAllProjectStorage = () => {
localStorage.removeItem(IMAGE_TASK_ID_KEY);
localStorage.removeItem(SONG_GENERATION_KEY);
localStorage.removeItem(VIDEO_GENERATION_KEY);
localStorage.removeItem(VIDEO_COMPLETE_KEY);
};
interface BusinessInfo {
@@ -291,6 +293,7 @@ const GenerationFlow: React.FC<GenerationFlowProps> = ({
onNext={(taskId: string) => {
// Clear video generation state to start fresh
localStorage.removeItem(VIDEO_GENERATION_KEY);
localStorage.removeItem(VIDEO_COMPLETE_KEY);
setVideoGenerationStatus('idle');
setVideoGenerationProgress(0);
@@ -321,7 +324,15 @@ const GenerationFlow: React.FC<GenerationFlowProps> = ({
case 3:
return (
<CompletionContent
onBack={() => goToWizardStep(2)}
onBack={() => {
// 뒤로가기 시 비디오 생성 상태 초기화
// 새 노래 생성 후 다시 영상 생성할 수 있도록
localStorage.removeItem(VIDEO_GENERATION_KEY);
localStorage.removeItem(VIDEO_COMPLETE_KEY);
setVideoGenerationStatus('idle');
setVideoGenerationProgress(0);
goToWizardStep(2);
}}
songTaskId={songTaskId}
onVideoStatusChange={setVideoGenerationStatus}
onVideoProgressChange={setVideoGenerationProgress}