feat: 프로필 표시이름·연락처 실제 API 연동 + 회원가입 전화번호 입력 - #339
Merged
Conversation
ProfilePage가 하드코딩된 profileData.ts 대신 실제 GET/PATCH /api/v1/auth/me/profile(fowoco/server#171)를 쓰도록 교체 — 저장한 내용이 새로고침해도 유지된다. 로그인 시에도 서버가 이미 보내주던 display_name을 그동안 안 쓰고 이메일 앞부분으로 가짜 이름을 만들던 것을 고쳤다. 회원가입 화면에 전화번호(선택) 입력 필드 추가. 서버에 없는 '이름'(name, displayName과 중복)·선호 언어·시간대 필드는 저장이 안 되는데도 있는 것처럼 보이던 문제라 이번에 편집 항목에서 제외함. Closes #335 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
요약
profileData.ts값 대신 실제GET/PATCH /api/v1/auth/me/profile(feat: 개인 프로필(표시이름/연락처) API + 회원가입 전화번호 server#171)를 사용하도록 교체. 저장한 표시 이름/연락처가 새로고침 후에도 유지됨.authStore가 로그인 시 서버가 이미 보내주던display_name을 쓰도록 수정. 세션 복원 시에도/auth/me/profile을 함께 조회.GET/PATCH /notifications/preferences에 연결 — 토글하면 실제로 저장되고 새로고침해도 유지됨.테스트
npx tsc -b: 통과npx vitest run: 455 passed (84 files)npx eslint .: 에러 0건 (기존 무관 경고 13건 유지)Closes #335