임시 저장

This commit is contained in:
skkim committed 2026-04-30 14:58:10 +09:00
1 parent bdd52ed992
commit 82dcda0038
10 files changed
+73 -21

No files matched your search

+3 -1
View File
@@ -7,9 +7,10 @@ import SocialPostingModal from '../../components/SocialPostingModal';
interface ADO2ContentsPageProps {
onBack: () => void;
onNavigate?: (item: string) => void;
}
const ADO2ContentsPage: React.FC<ADO2ContentsPageProps> = ({ onBack }) => {
const ADO2ContentsPage: React.FC<ADO2ContentsPageProps> = ({ onBack, onNavigate }) => {
const { t } = useTranslation();
const [videos, setVideos] = useState<VideoListItem[]>([]);
const [total, setTotal] = useState(0);
@@ -295,6 +296,7 @@ const ADO2ContentsPage: React.FC<ADO2ContentsPageProps> = ({ onBack }) => {
isOpen={uploadModalOpen}
onClose={handleUploadModalClose}
video={uploadTargetVideo}
onGoToCalendar={onNavigate ? () => onNavigate('콘텐츠 캘린더') : undefined}
/>
</div>
);
+9 -4
View File
@@ -13,6 +13,7 @@ interface CompletionContentProps {
onVideoStatusChange?: (status: 'idle' | 'generating' | 'complete' | 'error') => void;
onVideoProgressChange?: (progress: number) => void;
onVideoComplete?: () => void;
onGoToCalendar?: () => void;
}
type VideoStatus = 'idle' | 'generating' | 'polling' | 'complete' | 'error';
@@ -35,6 +36,7 @@ const CompletionContent: React.FC<CompletionContentProps> = ({
onVideoStatusChange,
onVideoProgressChange,
onVideoComplete,
onGoToCalendar,
}) => {
const { t } = useTranslation();
const [videoStatus, setVideoStatus] = useState<VideoStatus>('idle');
@@ -47,18 +49,20 @@ const CompletionContent: React.FC<CompletionContentProps> = ({
const displayIntervalRef = useRef<ReturnType<typeof setInterval> | null>(null);
const tutorial = useTutorial();
const tutorialIsActiveRef = useRef(tutorial.isActive);
tutorialIsActiveRef.current = tutorial.isActive;
// 영상 생성 중 튜토리얼 트리거 (생성 상태 안내 -> 콘텐츠 정보 -> 내 정보 이동)
useEffect(() => {
const isComplete = videoStatus === 'complete';
const isProcessing = videoStatus === 'generating' || videoStatus === 'polling';
if (isProcessing && !tutorial.isActive && !tutorial.hasSeen(TUTORIAL_KEYS.GENERATING)) {
if (isProcessing && !tutorialIsActiveRef.current && !tutorial.hasSeen(TUTORIAL_KEYS.GENERATING)) {
tutorial.startTutorial(TUTORIAL_KEYS.GENERATING);
} else if (isComplete && !tutorial.isActive && !tutorial.hasSeen(TUTORIAL_KEYS.COMPLETION)) {
} else if (isComplete && !tutorialIsActiveRef.current && !tutorial.hasSeen(TUTORIAL_KEYS.COMPLETION)) {
tutorial.startTutorial(TUTORIAL_KEYS.COMPLETION);
}
}, [videoStatus, tutorial, tutorial.isActive]);
}, [videoStatus]);
// 소셜 미디어 포스팅 모달
const [showSocialModal, setShowSocialModal] = useState(false);
@@ -513,6 +517,7 @@ const CompletionContent: React.FC<CompletionContentProps> = ({
<SocialPostingModal
isOpen={showSocialModal}
onClose={handleCloseSocialConnect}
onGoToCalendar={onGoToCalendar}
video={videoUrl && videoDbId ? {
video_id: videoDbId,
store_name: songCompletionData?.businessName || '',
+17 -8
View File
@@ -548,19 +548,28 @@ const ContentCalendarContent: React.FC<ContentCalendarContentProps> = ({ onNavig
</span>
</div>
{/* 채널 아이콘 + 제목 */}
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
<PlatformIcon platform={item.platform} size={18} />
{/* 채널 아이콘 + 채널명 */}
<div style={{ display: 'flex', alignItems: 'center', gap: 6 }}>
<PlatformIcon platform={item.platform} size={16} />
<span style={{
fontFamily: 'Pretendard, sans-serif', fontWeight: 600, fontSize: 14,
color: '#e5f1f2', lineHeight: 1.4,
overflow: 'hidden', display: '-webkit-box',
WebkitLineClamp: 2, WebkitBoxOrient: 'vertical',
fontFamily: 'Pretendard, sans-serif', fontWeight: 500, fontSize: 12,
color: '#9bcacc', lineHeight: 1,
overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis',
}}>
{item.title}
{item.platform_username || item.platform_user_id || item.channel_name}
</span>
</div>
{/* 제목 */}
<span style={{
fontFamily: 'Pretendard, sans-serif', fontWeight: 600, fontSize: 14,
color: '#e5f1f2', lineHeight: 1.4,
overflow: 'hidden', display: '-webkit-box',
WebkitLineClamp: 2, WebkitBoxOrient: 'vertical',
}}>
{item.title}
</span>
{/* 실패 메시지 */}
{isFailed && item.error_message && (
<p style={{
+3
View File
@@ -384,6 +384,7 @@ const GenerationFlow: React.FC<GenerationFlowProps> = ({
setAnalysisError(null);
}
setActiveItem(item);
refreshCredits();
};
// 새 프로젝트 만들기 - 단계별 컨텐츠 렌더링
@@ -479,6 +480,7 @@ const GenerationFlow: React.FC<GenerationFlowProps> = ({
onVideoStatusChange={setVideoGenerationStatus}
onVideoProgressChange={setVideoGenerationProgress}
onVideoComplete={refreshCredits}
onGoToCalendar={() => handleNavigate('콘텐츠 캘린더')}
/>
);
default:
@@ -496,6 +498,7 @@ const GenerationFlow: React.FC<GenerationFlowProps> = ({
return (
<ADO2ContentsPage
onBack={() => setActiveItem('새 프로젝트 만들기')}
onNavigate={handleNavigate}
/>
);
case '콘텐츠 캘린더':