Merged
Conversation
waldls
approved these changes
Feb 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 관련 이슈번호
close : #146
🔍 구현한 내용
1. 인증/유저 프로필 사용 방식 통일 (
useAuth훅 중심)관련 파일:
src/hooks/useAuth.tssrc/hooks/useAddToCombination.tssrc/layouts/RootLayout.tsxsrc/routes/guards/OnboardingCompletedGuard.tsxsrc/routes/guards/OnboardingOnlyGuard.tsxsrc/pages/onboarding/OnboardingCombinationPage.tsxsrc/pages/onboarding/OnboardingCompletePage.tsxsrc/utils/authStorage.ts변경 내용:
useGetUserProfile()을 개별 컴포넌트에서 직접 호출하던 방식 →RootLayout에서 한 번만 트리거하고, 나머지 컴포넌트는useAuth()훅으로 캐시 구독하는 방식으로 통일useAuth훅에hasCompletedOnboarding반환값 추가 (API의isOnboardingCompleted기반)authStorage.ts에서hasCompletedOnboarding유틸 함수 제거 (useAuth로 대체)useAddToCombination훅에서hasAccessToken()+useGetUserProfile()조합 →useAuth()단일 훅으로 교체2. 로그인 페이지 리다이렉트 로직 개선
관련 파일:
src/pages/auth/LoginPage.tsx변경 내용:
navigate()로 직접 라우팅 → React Query 캐시 업데이트 후isLoggedIn가드가 자동으로 라우팅 처리하도록 변경3. 회원가입 플로우 리팩토링
관련 파일:
src/pages/auth/SignupAccountPage.tsxsrc/pages/auth/SignupProfilePage.tsxsrc/stores/signupStore.ts변경 내용:
useForm()등 훅 호출을 조건부 return(Navigate) 이전에 배치isEmailVerified를account객체에서 분리하여 최상위 상태로 관리setProfile()호출 제거 (프로필 정보를 zustand에 중간 저장하지 않고 API 호출 시 직접 사용)resetSignup()으로 zustand 상태 즉시 초기화 (이메일/비밀번호 메모리 정리)4. 비밀번호 찾기 에러 처리 개선
관련 파일:
src/apis/findCredential/postFindPassword.tssrc/pages/auth/FindPasswordPage.tsx변경 내용:
axiosInstance→cookieAxiosInstance로 변경 (인증 쿠키 포함)parseApiError()유틸 함수 사용으로 변경5. 조합 평가 태그 연동
관련 파일:
src/components/Combination/CombinationTag.tsxsrc/components/MyPage/CombinationCard.tsx변경 내용:
CombinationTag컴포넌트 복구 및 스타일맵 내부 정의로 변경 (외부 상수 의존 제거)CombinationCard에서useComboEvaluation(combination.comboId)훅으로 React Query의COMBO_EVALUATION캐시를 직접 구독staleTime: Infinity로 설정되어 있어 캐시에 데이터가 있으면 추가 API 호출 없이 사용6. 불필요한 파일/코드 삭제
삭제된 파일:
src/assets/icons/accessories.svg- 미사용 아이콘src/assets/icons/chevron_right.svg- 미사용 아이콘src/assets/icons/dropdown_up.svg- 미사용 아이콘src/assets/react.svg- CRA 기본 파일src/components/Combination/CombinationDetailTag.tsx- 미사용 컴포넌트src/components/ProductCard/ProductLife.tsx- 미사용 컴포넌트src/constants/storageKeys.ts- 미사용 상수src/types/designToken.ts- 미사용 타입 정의src/utils/recentlyViewedStorage.ts- 미사용 유틸 (API 방식으로 대체됨)src/pages/support/*(5개 파일) - 미구현 빈 페이지들src/routes/PublicRoutes.tsx내 주석 처리된 푸터 라우트 제거7. UI 개선
관련 파일:
src/components/Button/GoogleLoginButton.tsxsrc/pages/auth/FindIdResultPage.tsx변경 내용:
hover:bg-gray-100추가hover:opacity-80추가📸 스크린샷 or 실행 영상
📢 리뷰어에게