튜토리얼 수정

This commit is contained in:
skkim committed 2026-04-13 16:17:27 +09:00
1 parent f0d9106860
commit 8734d3388d
12 files changed
+541 -174

No files matched your search

+6 -2
View File
@@ -320,8 +320,10 @@ const GenerationFlow: React.FC<GenerationFlowProps> = ({
localStorage.setItem(ACTIVE_ITEM_KEY, activeItem);
}, [activeItem]);
// wizardStep 변경 시 튜토리얼 트리거
// wizardStep 변경 시 튜토리얼 트리거 (사이드바 메뉴 화면에서는 제외)
const SIDEBAR_ITEMS = ['대시보드', 'ADO2 콘텐츠', '내 정보', '콘텐츠 캘린더'];
useEffect(() => {
if (SIDEBAR_ITEMS.includes(activeItem)) return;
const timer = setTimeout(() => {
if (wizardStep === 1 && !tutorial.hasSeen(TUTORIAL_KEYS.ASSET)) {
tutorial.startTutorial(TUTORIAL_KEYS.ASSET);
@@ -330,7 +332,7 @@ const GenerationFlow: React.FC<GenerationFlowProps> = ({
}
}, 600);
return () => clearTimeout(timer);
}, [wizardStep]);
}, [wizardStep, activeItem]);
// activeItem 변경 시 튜토리얼 트리거
useEffect(() => {
@@ -340,6 +342,8 @@ const GenerationFlow: React.FC<GenerationFlowProps> = ({
tutorial.startTutorial(TUTORIAL_KEYS.ADO2_CONTENTS);
} else if (activeItem === '대시보드' && !tutorial.hasSeen(TUTORIAL_KEYS.DASHBOARD)) {
tutorial.startTutorial(TUTORIAL_KEYS.DASHBOARD);
} else if (activeItem === '콘텐츠 캘린더' && !tutorial.hasSeen(TUTORIAL_KEYS.CONTENT_CALENDAR)) {
tutorial.startTutorial(TUTORIAL_KEYS.CONTENT_CALENDAR);
}
}, [activeItem]);