Conversation
|
Caution Review failedThe pull request is closed. Walkthrough마이페이지 프로필 수정 흐름을 타입 안전하게 정비하고, 수정 성공 시 글로벌 유저 스토어를 실제로 갱신하도록 변경했습니다. 수정 요청은 FormData에 JSON(request)과 이미지 파일을 함께 전송하며, 응답 타입을 IUserInfoModifyResponse로 명시했습니다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as User
participant V as Mine.tsx (View)
participant S as useModifyInfo (Mutation)
participant API as API_URL.MYPAGE.USER_INFO
participant Store as useUserStore
U->>V: 프로필 수정 제출
V->>S: mutate({request, image})
S->>S: FormData 생성 (request JSON + image)
S->>API: PUT /user-info (FormData)
API-->>S: IUserInfoModifyResponse
S-->>V: 응답 전달
V->>Store: setUser(response.result)
V->>V: 토스트/쿼리 무효화 등 후속 처리
Note over V,Store: 전역 사용자 상태 최신화
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (3)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔎 작업 사항
Summary by CodeRabbit