Skip to content

Conversation

@mark77234
Copy link
Collaborator

작업내용

  • 회원가입 -> 유저정보 입력 -> 온보딩 -> 홈화면 (구조 개선)
  • 온보딩 UI 업데이트
  • 성별 기타 제거

Copilot AI review requested due to automatic review settings December 30, 2025 12:14
@mark77234 mark77234 linked an issue Dec 30, 2025 that may be closed by this pull request
1 task
@mark77234 mark77234 self-assigned this Dec 30, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the user onboarding flow by restructuring the routing sequence and updating the onboarding UI. The flow now properly transitions from signup → user info input → onboarding tutorial → home screen, with state management enhancements to control the visibility of each screen.

  • Restructured routing logic to introduce separate state management for profile setup and onboarding
  • Enhanced onboarding UI with larger text, improved spacing, and SafeAreaView integration
  • Removed the "other" gender option from the user info form

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
frontend/src/components/UserInfoForm.tsx Removed "기타 (other)" option from gender selection dropdown
frontend/src/components/Onboarding.tsx Updated UI with larger fonts, SafeAreaView wrapper, and gap-based spacing instead of space-y utilities
frontend/app/index.tsx Added needsOnboarding state, handleSignUpSuccess callback, and handleOnboardingComplete handler to control routing flow between signup, profile setup, onboarding, and main screen
frontend/app.config.ts Version bump from 1.0.2 to 1.0.3

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


const genderOptions: { val: Gender; label: string }[] = [
{ val: 'male', label: '남성' },
{ val: 'female', label: '여성' },
Copy link

Copilot AI Dec 30, 2025

Choose a reason for hiding this comment

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

The Gender type definition still includes 'other' as a valid option, but this option has been removed from the UI. This creates a type-safety inconsistency where the type allows values that cannot be selected by users. The type definition should be updated to match the available options.

Additionally, the backend mapping functions mapGenderFromApi and mapGenderToApi still handle 'other' (mapped to 'O'), which could cause issues if existing user data contains this value or if the backend still accepts it.

Suggested change
{ val: 'female', label: '여성' },
{ val: 'female', label: '여성' },
{ val: 'other', label: '기타' },

Copilot uses AI. Check for mistakes.
Comment on lines +13 to 51
<View>
<View className="w-full rounded-2xl bg-white gap-8">
<View className="items-center gap-6">
<View className="h-14 w-14 items-center justify-center rounded-full bg-gray-100">
<Feather name="star" size={26} color="#111827" />
</View>
<Text className="text-4xl font-bold text-gray-900">하루 일력</Text>
<Text className="text-center text-lg leading-5 text-gray-500">
매일 아침, 종이 일력을 뜯듯 당신의 하루를 확인해보세요.
</Text>

<View className="w-full space-y-3 rounded-xl border border-gray-200 bg-gray-50 p-4">
<GuideItem
icon="scissors"
title="다음 날로 넘기기"
text="상단을 눌러 종이를 뜯듯 내일로 넘어가요."
/>
<GuideItem
icon="calendar"
title="오늘의 총평"
text="큰 날짜 아래 핵심 운세를 바로 볼 수 있어요."
/>
<GuideItem
icon="chevron-down"
title="상세 운세"
text="스크롤로 재물·애정·성공운을 확인하세요."
/>
<View className="w-full rounded-xl border border-gray-200 bg-gray-50 p-4 gap-8">
<GuideItem
icon="scissors"
title="다음 날로 넘기기"
text="상단을 눌러 종이를 뜯듯 내일로 넘어가요."
/>
<GuideItem
icon="calendar"
title="오늘의 총평"
text="큰 날짜 아래 핵심 운세를 바로 볼 수 있어요."
/>
<GuideItem
icon="chevron-down"
title="상세 운세"
text="스크롤로 재물·애정·성공운을 확인하세요."
/>
</View>
</View>
</View>

<Pressable
className="mt-5 rounded-xl bg-gray-900 py-3.5 active:opacity-90"
onPress={onComplete}
accessibilityLabel="온보딩 완료"
>
<Text className="text-center text-lg font-bold text-white">시작하기</Text>
</Pressable>
<Pressable
className="mt-5 rounded-xl bg-gray-900 py-3.5 active:opacity-90"
onPress={onComplete}
accessibilityLabel="온보딩 완료"
>
<Text className="text-center text-lg font-bold text-white">시작하기</Text>
</Pressable>
</View>
</View>
Copy link

Copilot AI Dec 30, 2025

Choose a reason for hiding this comment

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

There's an unnecessary wrapper View element that doesn't add any styling or functionality. The SafeAreaView could directly contain the inner View with the rounded-2xl styling, removing one level of nesting and simplifying the component structure.

Copilot uses AI. Check for mistakes.
@mark77234 mark77234 merged commit dd54f29 into dev Dec 30, 2025
1 check passed
@mark77234 mark77234 deleted the fix/11 branch December 30, 2025 12:21
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.

fix - 회원가입 후 유저정보 입력 라우팅 꼬임

2 participants