Feature/profile update(patch) 기능 구 #95
Merged
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.
📦 Pull Request
📝 요약(Summary)
유저 마이페이지에서 프로필 이미지를 업로드하고 닉네임을 수정할 수 있는 기능을 추가했습니다.
Profile컴포넌트에 닉네임 수정 폼을 추가해 사용자가 직접 닉네임을 수정하고 저장할 수 있습니다..png,.jpg,.jpeg,.webp확장자만 허용되며, MIME 타입도 검증합니다.isSubmitting상태를 사용합니다.PATCH /users/meAPI를 통해 서버에 반영되며, 응답 결과를 전역 유저 상태 (useUser)에 업데이트합니다.next/image의fill사용으로 인한 런타임 경고를 해결하기 위해width + height방식으로 렌더링 구조를 리팩토링했습니다.💬 공유사항 to 리뷰어
blob:URL 여부에 따라<img>와<Image>를 조건 분기했는데, 이 구조가 적절한지 검토 부탁드립니다.ProfileImageInput에 업로드, 미리보기, 확장자 제한 로직이 몰려 있는데 컴포넌트 책임 분리 측면에서 더 나은 구조가 있을지 의견 주시면 감사하겠습니다.관련 이슈
#81
📸 스크린샷
이미지, 닉네임 수정

맞지 않는 확장자 업로드 시 제한

✅ 체크리스트
blob:URL →<img>, URL →<Image>)2자 이상 20자 이하)useUser)next/image에서fill대신width + height속성으로 구조 수정.png,.jpg,.jpeg,.webp)