Skip to content

[CHA-163] 비로그인 추천 결과 로그인 후 저장·복귀 흐름 수정 - #267

Merged
yereong merged 6 commits into
mainfrom
cha-163-fix-guest-recommendation-save
Aug 21, 2026
Merged

[CHA-163] 비로그인 추천 결과 로그인 후 저장·복귀 흐름 수정#267
yereong merged 6 commits into
mainfrom
cha-163-fix-guest-recommendation-save

Conversation

@yereong

@yereong yereong commented Aug 21, 2026

Copy link
Copy Markdown
Member

무엇을 변경했나요?

  • ONB-007 발생 시 로그인 사용자 소유의 온보딩을 재생성하고, 새 onboardingId로 추천 저장을 재시도합니다.
  • onboardingId를 결과 페이지 상태로 유지해 채널 상세 조회와 비교 이동에도 전달합니다.
  • 추천 목록 쿼리는 기존 익명 onboardingId를 사용해 불필요한 재조회와 새로고침처럼 보이는 전환을 방지합니다.
  • 채널 비교 결과와 예산 시뮬레이터의 로그인 유도 링크에 현재 결과 주소와 선택 상태를 returnTo로 보존합니다.
  • 저장 후 상세·비교 이동 및 비교·시뮬레이터 로그인 복귀 회귀 테스트를 추가·업데이트했습니다.

왜 변경했나요?

비로그인 사용자가 온보딩 추천 결과에서 로그인한 뒤에도 추천 결과를 저장하고 후속 액션을 이어갈 수 있도록 로그인 사용자용 온보딩 ID를 결과 페이지 전체에서 사용해야 합니다. 또한 비교 결과와 예산 시뮬레이터에서 로그인 유도 후 원래 보고 있던 결과 화면으로 돌아오도록 현재 URL과 상태를 보존해야 합니다.

Linear: https://linear.app/chaesozip/issue/CHA-163/비로그인-온보딩-진행-로그인하고-돌아와도-온보딩-결과-저장되도록

Closes CHA-163

확인 사항

필수 확인

  • node --run build 통과 — 이번 변경에서 실행하지 않았습니다.
  • node --run lint 통과 — 전체 린트는 기존 src/shared/ui/select, dropdown의 unrelated 오류로 실패하며, 변경 파일 pre-commit 린트는 통과했습니다.
  • 관련 테스트 통과 — 추천 결과 테스트 18개, 비교·시뮬레이터 테스트 47개
  • 관련 이슈를 연결했습니다. Closes CHA-163

기능 검증

  • 변경된 기능을 로컬에서 직접 확인했습니다
  • 사용자 플로우가 의도대로 동작하는지 관련 테스트로 확인했습니다
  • API 연동 및 상태 관리 변경 사항을 확인했습니다
  • ONB-007 저장 재시도와 로그인 복귀 경로 회귀 케이스를 확인했습니다
  • 변경된 동작에 대한 테스트를 추가하거나 업데이트했습니다

설정 및 문서

  • 사용자에게 노출되는 문서 변경 사항이 없습니다
  • 새로운 의존성이나 설정 변경 사항이 없습니다
  • 환경 변수 추가/변경 사항이 없습니다
  • 민감한 값, 토큰, 인증 정보가 포함되지 않았습니다

해당되는 경우

  • 보안 영향이 없습니다
  • 추천 목록 재조회 없이 클라이언트 상태로 onboardingId를 전달해 성능 영향을 검토했습니다
  • 기존 동작 변경 내용을 PR 설명에 작성했습니다
  • 스크린샷 또는 화면 녹화를 첨부했습니다

회원가입 토큰으로 세션을 만들고 로그인 유도 경로를 보존하며, 익명 온보딩 연결 후에는 라우트 재전환 없이 저장 상태를 유지한다.
추천 목록 조회는 유지하면서 채널 상세와 비교 이동에는 마이그레이션된 onboardingId를 전달한다.
로그인 유도 링크에 현재 결과 URL과 선택 상태를 returnTo로 보존한다.
@linear-code

linear-code Bot commented Aug 21, 2026

Copy link
Copy Markdown

CHA-163

@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 5a581fb8-f556-472d-a23b-7e61b8850280


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.

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.18919% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/app/api-routes/auth/signup.ts 87.50% 1 Missing and 1 partial ⚠️
...verification/ui/signup-email-verification-page.tsx 0.00% 2 Missing ⚠️
...cation/model/use-signup-email-verification-form.ts 66.66% 0 Missing and 1 partial ⚠️
...commend-result/ui/recommend-result-save-action.tsx 92.85% 1 Missing ⚠️
...end-result/ui/recommended-channel-lock-overlay.tsx 66.66% 0 Missing and 1 partial ⚠️
src/pages/simulator/ui/simulator-page.tsx 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yereong
yereong marked this pull request as ready for review August 21, 2026 16:29
@github-actions
github-actions Bot requested a review from DongjaJ August 21, 2026 16:29
@yereong
yereong merged commit eeb86ff into main Aug 21, 2026
9 checks passed
@yereong
yereong deleted the cha-163-fix-guest-recommendation-save branch August 21, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant