Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat(user): 마이페이지 프로필 편집 및 이미지 업로드 구현 - 마이페이지 편집 페이지 UI 및 프로필 수정 로직 구현 - 프로필 이미지 업로드 API (Supabase Storage 연동) - user/me API에 PATCH 메서드 추가 (닉네임, MBTI 수정) - user 도메인 API client, hooks, constants 구성 - auth constants 및 lib/storage 유틸 추가 - API 명세서 업데이트 - dev 최신 반영 (사건기록, 홈 화면 개선) Co-Authored-By: Claude <noreply@anthropic.com> @
# Conflicts: # src/app/(page)/mypage/edit/page.module.scss # src/app/(page)/mypage/edit/page.tsx # src/app/api/user/me/route.ts # src/domains/user/api.ts # src/domains/user/hooks.ts # src/lib/auth/index.ts
동일 카카오 계정으로 user 레코드가 중복 생성된 경우, 기존 유저의 kakao_id를 null로 정리 후 현재 유저에 저장하도록 수정 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthrough프로필 이미지를 Supabase Storage에 업로드하고 DB의 Changes프로필 이미지 업로드 및 인증 정리
Sequence Diagram(s)sequenceDiagram
participant Client
participant ProfileImageRoute as POST /profile-image
participant SupabaseStorage
participant PrismaDB
Client->>ProfileImageRoute: multipart/form-data (file)
ProfileImageRoute->>ProfileImageRoute: 세션 확인 → userId 추출
ProfileImageRoute-->>Client: 401 (미인증)
ProfileImageRoute->>ProfileImageRoute: MIME 타입 / 파일 크기 검증
ProfileImageRoute-->>Client: 400 (검증 실패)
ProfileImageRoute->>SupabaseStorage: upload {userId}/profile.{ext} (upsert:true)
SupabaseStorage-->>ProfileImageRoute: 공개 URL
ProfileImageRoute->>PrismaDB: user.update({ profileImageUrl: url?t=ts })
PrismaDB-->>ProfileImageRoute: 업데이트 완료
ProfileImageRoute-->>Client: 200 { profileImageUrl }
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
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.
Summary
kakao_idUnique constraint 위반으로 로그인 실패하는 버그 수정saveFirstLoginFields실행 전 기존 유저의 중복kakao_id를null로 정리 후 현재 유저에 저장하도록 방어 로직 추가원인
kakao_id가 남아있어 새 user에 저장 시 Unique constraint 실패Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
릴리스 노트
New Features
Bug Fixes