Skip to content

fix: 운동 안 함 선택 시 루틴 질문 없이 바로 회원가입 완료 - #205

Merged
JioCoder merged 1 commit into
mainfrom
fix/onboarding-case
Sep 1, 2026
Merged

fix: 운동 안 함 선택 시 루틴 질문 없이 바로 회원가입 완료#205
JioCoder merged 1 commit into
mainfrom
fix/onboarding-case

Conversation

@peisonger

Copy link
Copy Markdown
Contributor

Summary

  • 온보딩 운동 선택 화면에서 "운동 안 함"을 고르면 루틴(운동 시간/빈도) 질문 페이지로 넘어가지 않고, 바로 온보딩을 제출해 회원가입을 완료하도록 변경
  • exercise 화면과 exercise-detail 화면에서 중복되던 "제출 → 409 처리 → 탭 화면 이동" 로직을 useCompleteOnboarding 훅으로 추출해 재사용

Changes

  • features/onboarding/hooks/use-complete-onboarding.ts (신규): 온보딩 제출 + 이미 등록된 사용자(409) 처리 + /(tabs) 이동 공통 로직
  • features/onboarding/components/onboarding-exercise-screen.tsx: "운동 안 함" 선택 시 exercise-detail로 push하지 않고 바로 complete() 호출, 버튼 로딩 상태 표시
  • features/onboarding/components/onboarding-exercise-detail-screen.tsx: 중복 로직을 공통 훅으로 교체 (동작 변화 없음)

exerciseDuration/exerciseFrequency는 API 타입상 optional이라 "운동 안 함" 케이스에서 값 없이 제출해도 문제없음을 확인했습니다.

Test plan

  • 온보딩에서 "운동 안 함" 선택 → 바로 회원가입 완료되고 (tabs) 화면으로 이동하는지 확인
  • 다른 운동 선택 시 기존처럼 루틴 질문 페이지(exercise-detail)로 이동하는지 확인
  • exercise-detail에서 "시작하기" 완료 흐름이 기존과 동일하게 동작하는지 확인 (409 케이스 포함)

🤖 Generated with Claude Code

운동 선택 화면에서 "운동 안 함"을 고르면 exercise-detail(루틴 질문)
페이지로 넘어가지 않고 온보딩을 즉시 제출하도록 변경. 두 화면에서
중복되던 제출/409 처리/이동 로직은 useCompleteOnboarding 훅으로 추출.
@coderabbitai

coderabbitai Bot commented Aug 31, 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: 195a0ec7-2b08-4443-b538-c98293440f56


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.

@JioCoder
JioCoder self-requested a review September 1, 2026 02:09
@JioCoder

JioCoder commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

확인했습니당

@JioCoder
JioCoder merged commit e8512c9 into main Sep 1, 2026
3 checks passed
@JioCoder
JioCoder deleted the fix/onboarding-case branch September 1, 2026 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants