fix(user): 프로필 수정 기능 개선 — 이미지 업로드 통합 및 닉네임 우선 표시 - #160
Merged
Conversation
fix(user): 프로필 수정 기능 개선 — 이미지 업로드 통합 및 닉네임 우선 표시 PATCH /api/user/me에 프로필 이미지 업로드 로직을 통합하여 프로필 수정 페이지에서 사진 변경이 실제로 반영되도록 수정한다. 닉네임 표시 우선순위를 nickname > name으로 변경하여 사용자가 수정한 닉네임이 카카오 실명보다 우선 표시되도록 한다. - PATCH /api/user/me에 Supabase Storage 이미지 업로드 통합 - 표시 우선순위 변경: name ?? nickname → nickname ?? name (마이페이지, 프로필 수정, 탈퇴, 홈 인사말, 챗봇) - 최초 카카오 로그인 시 nickname에 카카오 이름 저장 - 프로필 수정 페이지 라벨 "이름" → "닉네임" 변경 Co-Authored-By: Claude <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 (7)
📝 WalkthroughWalkthrough마이페이지 편집, 홈, 챗봇, 탈퇴 화면의 표시명이 닉네임 우선으로 바뀌고, Changes사용자 표시명 및 프로필 이미지 업데이트
Sequence Diagram(s)sequenceDiagram
participant Client
participant UserMeRoute
participant SupabaseStorage
participant Prisma
Client->>UserMeRoute: multipart FormData(profileImage)
UserMeRoute->>UserMeRoute: validate MIME type and size
UserMeRoute->>SupabaseStorage: upload(file, upsert: true)
SupabaseStorage-->>UserMeRoute: public URL
UserMeRoute->>Prisma: update profileImageUrl
Prisma-->>UserMeRoute: saved user
UserMeRoute-->>Client: response
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
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
/api/user/me에 프로필 이미지 업로드 로직 통합 (Supabase Storage)nickname ?? name으로 변경하여 사용자 수정 닉네임이 카카오 실명보다 우선 표시nickname에 카카오 이름 저장변경 파일
src/app/api/user/me/route.ts— PATCH에 이미지 업로드 로직 통합src/lib/auth/index.ts— 최초 로그인 시 nickname에 카카오 이름 저장src/app/(page)/mypage/page.tsx— 표시 우선순위 변경src/app/(page)/mypage/edit/page.tsx— 표시 우선순위 변경, 라벨 수정src/app/(page)/mypage/withdraw/page.tsx— 표시 우선순위 변경src/components/home/HomeGreeting.tsx— 표시 우선순위 변경src/components/chatbot/Chatbot.tsx— 표시 우선순위 변경Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes