Conversation
- add signup API client and auth user types - implement signup form with validation and submission feedback - persist created user in localStorage after successful signup - sync header state when user storage changes - redirect signed-up users to product catalog page - prevent signed-in users from accessing the signup page - add PR auto-assignment workflow for pull request authors
…r-flow [D2C-35] 회원가입 화면 및 사용자 생성 흐름 구현
- add login request type and login API client - implement login form with validation and submission feedback - persist logged-in user in localStorage after successful login - redirect authenticated users away from the login page - reuse auth layout and header state synchronization from signup flow
…r-state-flow [D2C-36] 로그인 화면 및 사용자 상태 저장 흐름 구현
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.
개요
D2C-35에서는 사용자가 회원가입을 통해 계정을 생성하고, 회원가입 성공 후 프론트엔드 로그인 상태로 전환되는 흐름을 구현했습니다.
D2C-36에서는 기존 사용자가 로그인 화면에서 계정 정보를 입력하고, 로그인 성공 후 사용자 상태를 저장하여 헤더와 주요 사용자 흐름에 반영되도록 구현했습니다.
본 PR에서는
develop에서 검증된 회원가입, 로그인, 사용자 상태 저장, 인증 상태 기반 페이지 접근 제어 흐름을main에 병합하여 Sprint 2 프론트엔드 인증 기능 기준점을 정리합니다.포함 범위
D2C-35 회원가입 화면 및 사용자 생성 흐름 구현
POST /auth/signupAPI client 추가/products이동 처리MainLayout에서 사용자 상태 변경 이벤트 구독/signup직접 접근 시/products로 redirectD2C-36 로그인 화면 및 사용자 상태 저장 흐름 구현
POST /auth/loginAPI client 추가/products이동 처리/login직접 접근 시/products로 redirect검증 결과
develop브랜치 기준으로 프론트엔드 타입 체크를 실행하여 정상 통과를 확인했습니다.프론트엔드 빌드를 실행하여 정상 통과를 확인했습니다.
프론트엔드 개발 서버와 백엔드 서버를 함께 실행하여 회원가입/로그인 인증 흐름을 수동 확인했습니다.
수동 확인 항목:
http://localhost:5173/signup접속 확인d2c_user저장 확인/products이동 확인/signup직접 접근 시/products로 redirect 확인http://localhost:5173/login접속 확인d2c_user저장 확인/products이동 확인/login직접 접근 시/products로 redirect 확인브랜치 통합 방식
이번 PR의 통합 흐름은 아래와 같습니다.
main병합 후에는 회원가입, 로그인, 사용자 상태 저장, 인증 상태 기반 페이지 접근 제어 흐름이 배포 기준 브랜치에 반영됩니다.향후 브랜치 운영 원칙
Sprint 2에서는 아래 브랜치 운영 원칙을 유지합니다.
develop에서 분기develop으로 개별 PR 생성develop을main에 병합main은 배포 기준 브랜치로 유지체크리스트
develop에 병합develop에 병합/signup,/login인증 상태 기반 접근 제한 포함develop기준 프론트엔드 typecheck / build / dev 확인.env,node_modules,dist, cache 파일이 커밋에 포함되지 않도록 확인main병합 완료main기준 최종 확인