Feat/168 profile phone - #176
Open
BcKmini wants to merge 2 commits into
Open
Conversation
client의 /profile 페이지가 개인 프로필 API가 없어서(#191) 화면 상태로만 반영되던 문제 해결. user_account에 phone 컬럼 추가하고, GET/PATCH /api/v1/auth/me/profile로 표시이름·연락처를 실제로 조회·수정 가능하게 함. 회원가입 시 전화번호(선택) 입력도 지원. UserAccount 도메인의 applyState()가 password만 갱신하던 것을 displayName/phone도 갱신하도록 일반화했고, changePassword()와 같은 낙관적 잠금(version+1) 패턴으로 updateProfile()을 추가함. Closes #168 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
ProfilePage에 표시되던 마지막 로그인 시각/기기, 계정 상태, 비밀번호 변경일, 업무 권한, 알림 수신 설정이 전부 profileData.ts의 고정값이었던 문제를 백엔드부터 해결한다. - user_login_event 테이블 신설, 로그인 성공 시 User-Agent 기반 기기 요약과 함께 기록. GET /auth/me/profile이 role/account_status/password_changed_at/ last_login_at/last_login_device/recent_device_count를 실제 값으로 반환. (last_login/work-context의 "담당 영역"·"문서 열람 범위"처럼 백엔드에 대응 개념이 아예 없는 항목은 만들어내지 않고 클라이언트에서 제거 예정) - user_account.password_changed_at 컬럼 추가, changePassword()에서 갱신. - notification_preference 테이블 + GET/PATCH /notifications/preferences 신설. 7개 알림 유형 기본값은 client의 기존 INITIAL_NOTIFICATION_PREFS와 동일하게 맞췄고, security-permission은 서버에서도 끌 수 없도록 강제. Part of the "no hardcoded profile data" cleanup requested after client#339. 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.
왜 필요한가요?
관련 Issue와 사용자가 겪던 문제를 적어 주세요.
무엇이 바뀌나요?
어떻게 검증했나요?
./gradlew clean test./gradlew build/health와 Swagger UI 확인테스트 명령과 결과를 짧게 적어 주세요.
보안·개인정보
company_id범위를 검사합니다.request_id로 추적됩니다.Proposed로 작성했습니다.API·DB·운영 영향
.env.example에 적었습니다.화면 또는 응답 예시
개인정보를 제거한 예시만 첨부해 주세요.