Skip to content

[Feature/#373] 최초 로그인 온보딩 투어 구현 - #378

Merged
Seojegyeong merged 25 commits into
developfrom
feature/#373
Aug 3, 2026
Merged

[Feature/#373] 최초 로그인 온보딩 투어 구현#378
Seojegyeong merged 25 commits into
developfrom
feature/#373

Conversation

@Seojegyeong

@Seojegyeong Seojegyeong commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

🚨 관련 이슈

#373

✨ 변경사항

  • 🐞 BugFix Something isn't working
  • 💻 CrossBrowsing Browser compatibility
  • 🌏 Deploy Deploy
  • 🎨 Design Markup & styling
  • 📃 Docs Documentation writing and editing (README.md, etc.)
  • ✨ Feature Feature
  • 🔨 Refactor Code refactoring
  • ⚙️ Setting Development environment setup
  • ✅ Test Test related (storybook, jest, etc.)

✏️ 1차 작업 내용

최초 로그인 사용자에게 주요 기능을 안내하는 온보딩 투어를 구현했습니다.

리다이렉트 로직

  • 최초 로그인(일반/소셜) 시 /integrations로 자동 이동
  • 재로그인 시 기존대로 /dashboard로 이동
  • hasSeenOnboarding localStorage 플래그로 최초 여부 판단

온보딩 투어 (react-joyride)

  • 10단계 투어: 워크스페이스 switcher → 대시보드 → 캠페인 → 워크스페이스 관리 → 플랫폼 연동 → Meta/Google/Naver 카드 → 완료
  • 투어 완료 또는 건너뛰기 시 hasSeenOnboarding 저장 → 이후 로그인부터 투어 미노출
  • 타겟 찾기 실패 시에도 플래그 저장 후 종료

커스텀 툴팁 디자인

  • 디자인 시스템 토큰 기반 (bg-surface-100, rounded-3xl, shadow-tooltip)
  • 소제목 + 설명 구조, 진행 단계 표시 (1 / 10)
  • 이전 / 다음 / 건너뛰기 버튼

UX 개선

  • 툴팁 콘텐츠 스텝 전환 시 fade-in 재실행
  • 스포트라이트 타겟 간 부드러운 모핑 (d 280ms cubic-bezier)
  • 오버레이 fade (opacity 200ms ease-out)
  • 사이드바 data-tour 타겟을 버튼 요소로 이동 → 화살표 정렬 정확도 개선
  • Naver 카드 툴팁 flip 비활성화 → 정렬 일관성 확보

✏️ 2차 작업 내용

역할별 온보딩 투어 분기

  • useOnboardingTour 훅에서 myRole 기반으로 ADMIN_STEPS / MEMBER_STEPS 반환
  • ADMIN: /workspace 진입 후 투어 시작, 마지막 스텝을 워크스페이스 생성 버튼에 포커스
  • MEMBER: /dashboard 진입 후 투어 시작, 플랫폼 연동 관련 스텝 제거

투어 마운트 위치 변경

  • 기존: PlatformIntegrationsPage (ADMIN만 접근 가능한 페이지)
  • 변경: MainLayout (역할 무관 공통 마운트, myRole 확정 후 자동 시작)

툴팁 UX 개선

  • 커스텀 툴팁 디자인, 페이드인 애니메이션, 스포트라이트 모핑 전환 효과 적용
  • whitespace-pre-line 적용으로 문구 줄바꿈 제어
  • 사이드바 main 아이템에 w-full 추가 → 스포트라이트 크기 통일
  • 툴팁 그림자 강화, Naver 카드 tooltip flip 비활성화

returnUrl 처리

  • 로그인/회원가입 후 이전 페이지로 복귀하는 returnUrl 처리 구현
  • 외부 도메인으로의 리다이렉트 차단 (오픈 리다이렉트 방지)

📋 ADMIN 온보딩 투어 순서 (7 Steps)

ADMIN (워크스페이스 생성자)
최초 로그인 → /workspace
→ 온보딩 투어 시작 (/workspace)
→ 워크스페이스 생성 버튼 CTA로 투어 마무리
→ 워크스페이스 생성 → 멤버 초대 / 플랫폼 연동


# 타겟 제목
1 화면 중앙 WhereYouAd에 오신 걸 환영해요
2 워크스페이스 switcher 워크스페이스
3 대시보드 사이드바 통합·플랫폼 대시보드
4 캠페인 사이드바 캠페인 관리
5 워크스페이스 사이드바 워크스페이스 관리
6 플랫폼 연동 사이드바 플랫폼 연동
7 워크스페이스 생성하기 버튼 워크스페이스를 만들고 시작해볼까요?
tour_admin.mov

📋 MEMBER 온보딩 투어 순서 (6 Steps)

MEMBER (초대받은 사용자)
최초 로그인 → /dashboard
→ 온보딩 투어 시작 (/dashboard)
→ 대시보드 CTA로 투어 마무리
→ 광고 성과 바로 확인


# 타겟 제목
1 화면 중앙 WhereYouAd에 오신 걸 환영해요
2 워크스페이스 switcher 워크스페이스
3 대시보드 사이드바 통합·플랫폼 대시보드
4 캠페인 사이드바 캠페인 관리
5 워크스페이스 사이드바 워크스페이스 설정
6 화면 중앙 이제 시작할 준비가 됐어요!
tour_member.mov

😅 미완성 작업

N/A

📢 논의 사항 및 참고 사항

WhereYouAd는 RBAC 기반 서비스로 ADMIN과 MEMBER의 경험이 달라 피드백 기반으로 온보딩 투어에서부터 분리해 구현하였습니다.

  • ADMIN: 워크스페이스를 직접 생성한 사용자입니다. 최초 로그인 시 아직 워크스페이스가 없는 상태이므로, 워크스페이스 생성이 모든 기능의 선행 조건입니다. 광고 계정 연동도, 멤버 초대도 워크스페이스 없이는 불가능하기 때문에 온보딩을 /workspace에서 시작하고 마지막 스텝에서 워크스페이스 생성 버튼을 직접 안내합니다.

  • MEMBER: 이미 ADMIN에게 초대받아 워크스페이스에 소속된 사용자입니다. 별도의 설정 없이 바로 서비스를 사용할 수 있는 상태이므로, 온보딩을 /dashboard에서 시작해 통합 대시보드에서 광고 성과를 바로 확인할 수 있도록 안내합니다. 플랫폼 연동 등 ADMIN 전용 기능 스텝은 제거했습니다.

💬 리뷰어 가이드 (P-Rules)
P1: 필수 반영 (Critical) - 버그 가능성, 컨벤션 위반. 해결 전 머지 불가.
P2: 적극 권장 (Recommended) - 더 나은 대안 제시. 가급적 반영 권장.
P3: 제안 (Suggestion) - 아이디어 공유. 반영 여부는 드라이버 자율.
P4: 단순 확인/칭찬 (Nit) - 사소한 오타, 칭찬 등 피드백.


Summary by CodeRabbit

  • 새로운 기능

    • 신규 사용자를 위한 온보딩 투어를 추가했습니다.
    • 워크스페이스, 대시보드, 캠페인 및 연동 플랫폼의 주요 기능을 단계별로 안내합니다.
    • 투어에서 진행률 확인, 이전·다음 이동, 건너뛰기 및 완료가 가능합니다.
    • 최초 로그인 시 연동 플랫폼 화면으로 이동하며, 이후에는 대시보드로 이동합니다.
    • 온보딩 완료 또는 건너뛰기 상태를 저장해 반복 표시를 방지합니다.
  • 스타일

    • 온보딩 툴팁에 진입 애니메이션과 그림자 효과를 적용했습니다.
    • 모션 감소 설정을 사용하는 환경에서는 애니메이션을 비활성화합니다.

@Seojegyeong Seojegyeong self-assigned this Aug 2, 2026
@Seojegyeong Seojegyeong linked an issue Aug 2, 2026 that may be closed by this pull request
17 tasks
@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@Seojegyeong, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 31 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 7d66fece-ba29-4e49-b1d8-f68f09e5e0bd

📥 Commits

Reviewing files that changed from the base of the PR and between 1a359df and 8bfc978.

📒 Files selected for processing (3)
  • src/components/common/OnboardingTour.tsx
  • src/hooks/common/useOnboardingTour.ts
  • src/layout/main/MainLayout.tsx
📝 Walkthrough

Walkthrough

로그인 완료 후 hasSeenOnboarding 값과 사용자 역할에 따라 /workspace 또는 /dashboard로 이동합니다. OnboardingTour는 React Joyride와 역할별 단계를 연결합니다. 투어 대상 식별자, 커스텀 툴팁, 완료 상태 저장, 관련 스타일을 추가합니다.

Changes

온보딩 투어

Layer / File(s) Summary
투어 단계와 생명주기
src/hooks/common/useOnboardingTour.ts, src/pages/auth/Login.tsx, src/pages/auth/RedirectPage.tsx
관리자와 멤버별 7단계 투어를 정의합니다. 투어 완료, 건너뛰기, 대상 미발견 시 실행을 중지하고 localStorage에 상태를 저장합니다. 신규 로그인은 /workspace로 이동하고 기존 로그인은 안전한 returnUrl로 이동합니다.
투어 대상 연결
src/components/sidebar/Sidebar.tsx, src/pages/integration/PlatformIntegrationsPage.tsx, src/pages/workspace/Workspace.tsx, src/layout/main/MainLayout.tsx
사이드바, 플랫폼 카드, 워크스페이스 생성 버튼에 data-tour 식별자를 추가합니다. 역할이 있는 경우에만 투어를 렌더링하고, 완료 상태가 없으면 자동 시작합니다.
투어 표시 UI
src/components/common/OnboardingTour.tsx, src/components/common/OnboardingTooltip.tsx
Joyride에 단계, 실행 상태, 이벤트 처리기, 자동 스크롤, 전환 효과, 오버레이 스타일을 연결합니다. 커스텀 툴팁은 제목, 진행률, 콘텐츠, 조건부 탐색 버튼을 표시합니다.
툴팁 스타일
src/styles/utilities.css
툴팁 그림자와 160ms 진입 애니메이션을 추가합니다. prefers-reduced-motion: reduce 환경에서는 애니메이션을 비활성화합니다.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Login
  participant MainLayout
  participant OnboardingTour
  participant useOnboardingTour
  participant OnboardingTooltip
  participant localStorage

  Login->>MainLayout: 로그인 후 /workspace 또는 안전한 returnUrl 이동
  MainLayout->>OnboardingTour: 역할과 autoStart 전달
  OnboardingTour->>useOnboardingTour: steps와 handleEvent 연결
  useOnboardingTour->>OnboardingTooltip: 현재 단계 데이터 전달
  OnboardingTooltip->>useOnboardingTour: 다음, 이전, 완료 또는 건너뛰기 실행
  useOnboardingTour->>localStorage: hasSeenOnboarding 저장
Loading

Possibly related issues

  • WhereYouAd/WhereYouAd-Frontend#373: 최초 로그인 이동, 역할별 온보딩 단계, 투어 자동 시작, 완료 상태 저장을 포함한 동일한 온보딩 요구사항을 다룹니다.

Possibly related PRs

Suggested reviewers: yermim, jjjsun

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed 제목이 최초 로그인 사용자를 위한 온보딩 투어 구현이라는 변경사항의 핵심을 간결하고 명확하게 설명합니다.
Description check ✅ Passed 관련 이슈, 변경 유형, 작업 내용, 역할별 흐름, 미완성 작업, 논의 사항을 구체적으로 작성해 템플릿 요구사항을 충족합니다.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/#373

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown

📚 Storybook 배포 완료

항목 링크
📖 Storybook https://69a147b60a56365d9e2185ef-sbxxxxkbyh.chromatic.com/
🔍 Chromatic https://www.chromatic.com/build?appId=69a147b60a56365d9e2185ef&number=531

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/hooks/common/useOnboardingTour.ts`:
- Line 5: 사용자별 온보딩 완료 상태를 저장하도록 useOnboardingTour.ts의 ONBOARDING_KEY와 관련 조회/저장
로직을 사용자 ID 기반 키로 변경하세요. Login.tsx와 RedirectPage.tsx의 로그인·소셜 인증 응답에 사용자 ID를 포함해
useAuthStore.login이 현재 사용자 ID를 저장하도록 수정하고, PlatformIntegrationsPage.tsx를 포함한 모든
온보딩 키 사용 지점에서 동일한 사용자별 키 생성 기준을 재사용하세요. 대상 파일:
src/hooks/common/useOnboardingTour.ts(5-5), src/pages/auth/Login.tsx(38-41),
src/pages/auth/RedirectPage.tsx(34-37),
src/pages/integration/PlatformIntegrationsPage.tsx(186-186).
- Around line 93-102: Update the isFinished condition in handleEvent to also
treat EVENTS.TARGET_NOT_FOUND as a completed tour event, while preserving the
existing FINISHED and SKIPPED handling so setRun(false) and the onboarding flag
update still execute.

In `@src/styles/utilities.css`:
- Around line 133-137: Replace the hard-coded black shadow colors in
.shadow-tooltip with the existing design-system shadow/color tokens or
established token-based shadow pattern. Also update overlayColor in
OnboardingTour to use the appropriate Joyride-compatible design token, ensuring
both sites remain consistent with dark-mode and branding support.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 6082a90d-8ef0-4113-a1e1-5ad44d961f53

📥 Commits

Reviewing files that changed from the base of the PR and between f087cb5 and a09e853.

⛔ Files ignored due to path filters (2)
  • package.json is excluded by none and included by none
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !pnpm-lock.yaml and included by none
📒 Files selected for processing (8)
  • src/components/common/OnboardingTooltip.tsx
  • src/components/common/OnboardingTour.tsx
  • src/components/sidebar/Sidebar.tsx
  • src/hooks/common/useOnboardingTour.ts
  • src/pages/auth/Login.tsx
  • src/pages/auth/RedirectPage.tsx
  • src/pages/integration/PlatformIntegrationsPage.tsx
  • src/styles/utilities.css

Comment thread src/hooks/common/useOnboardingTour.ts
Comment thread src/hooks/common/useOnboardingTour.ts
Comment thread src/styles/utilities.css
@Seojegyeong
Seojegyeong requested review from YermIm and jjjsun August 2, 2026 12:21
@Seojegyeong Seojegyeong added the ✨ Feature 기능 개발 label Aug 2, 2026
Comment thread src/hooks/common/useOnboardingTour.ts Outdated
Comment thread src/hooks/common/useOnboardingTour.ts Outdated
Comment thread src/pages/auth/RedirectPage.tsx
@YermIm

YermIm commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

P2: 워크스페이스를 생성해야 플랫폼 연동이 가능해서, 최초 로그인 시 워크스페이스 화면으로 이동하는 것이 좋을 것 같습니다.
회원가입 후 로그인 시 모든 사용자는 멤버여서 아마 연동 화면이 안 보일 겁니다..! (연동 화면 ADMIN 처리)

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/components/common/OnboardingTour.tsx (1)

49-51: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

오버레이 색상을 기존 디자인 토큰으로 연결하세요.

Line 50의 rgba(0, 0, 0, 0.5)는 TSX의 임의 색상입니다. 하드코드 색상을 제거하고, src/styles/tokens.css의 기존 오버레이 색상 토큰을 Joyride 설정에 적용하세요.

As per coding guidelines, "Use only @theme tokens from src/styles/tokens.css for colors" and "Ensure external libraries (charts, etc.) colors align with @theme tokens."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/common/OnboardingTour.tsx` around lines 49 - 51, Update the
overlayColor value in the OnboardingTour Joyride options to use the existing
overlay color token from tokens.css instead of the hardcoded rgba value. Reuse
the established `@theme` token through the project’s supported CSS variable
pattern, while leaving the zIndex and other options unchanged.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/layout/main/MainLayout.tsx`:
- Around line 161-165: Update the MainLayout onboarding flow so users without a
workspace receive a dedicated workspace-creation tour even when myRole is null.
Render that tour based on the empty-workspace state independently of the
role-based OnboardingTour, and do not coerce null myRole to ADMIN; preserve
role-specific content only for users with an actual role.

---

Outside diff comments:
In `@src/components/common/OnboardingTour.tsx`:
- Around line 49-51: Update the overlayColor value in the OnboardingTour Joyride
options to use the existing overlay color token from tokens.css instead of the
hardcoded rgba value. Reuse the established `@theme` token through the project’s
supported CSS variable pattern, while leaving the zIndex and other options
unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 8c67fa0a-97a6-464f-9d04-a79ba86e5835

📥 Commits

Reviewing files that changed from the base of the PR and between a09e853 and 1a359df.

📒 Files selected for processing (10)
  • src/components/common/OnboardingTooltip.tsx
  • src/components/common/OnboardingTour.tsx
  • src/components/sidebar/Sidebar.tsx
  • src/hooks/common/useOnboardingTour.ts
  • src/layout/main/MainLayout.tsx
  • src/pages/auth/Login.tsx
  • src/pages/auth/RedirectPage.tsx
  • src/pages/integration/PlatformIntegrationsPage.tsx
  • src/pages/workspace/Workspace.tsx
  • src/styles/utilities.css
💤 Files with no reviewable changes (1)
  • src/pages/integration/PlatformIntegrationsPage.tsx
🚧 Files skipped from review as they are similar to previous changes (4)
  • src/components/sidebar/Sidebar.tsx
  • src/components/common/OnboardingTooltip.tsx
  • src/styles/utilities.css
  • src/pages/auth/RedirectPage.tsx

Comment thread src/layout/main/MainLayout.tsx Outdated

@jjjsun jjjsun left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P4: 확인했습니다!

@YermIm YermIm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P4: 수고하셨습니다!

@Seojegyeong
Seojegyeong merged commit c6d557a into develop Aug 3, 2026
3 checks passed
@Seojegyeong
Seojegyeong deleted the feature/#373 branch August 3, 2026 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feature 기능 개발

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ [Feature] 최초 로그인 사용자 온보딩 투어 구현

3 participants