Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
📝 Walkthrough워크스루MyPage 컴포넌트가 회원 데이터를 변경사항
시퀀스 다이어그램sequenceDiagram
participant User as 사용자
participant MyPage as MyPage<br/>(page.tsx)
participant Query as useMyPageQuery<br/>훅
participant API as API<br/>(memberModule)
participant Components as ProfileSection<br/>StatsCard<br/>AccountCard
User->>MyPage: MyPage 접속
MyPage->>Query: useMyPageQuery() 호출
Query->>API: memberModule.queries.myPage() 실행
alt 데이터 로딩 중
API-->>Query: isLoading = true
Query-->>MyPage: isLoading = true
MyPage->>Components: isLoading props 전달
Components->>Components: "-" 렌더링 (로딩 상태)
else 데이터 페칭 완료
API-->>Query: 회원 데이터 반환
Query-->>MyPage: memberName, nickname, email,<br/>totalStampCount 등
MyPage->>Components: 회원 데이터 props 전달
Components->>Components: 회원 정보 및 통계 렌더링
end
sequenceDiagram
participant User as 사용자
participant ProfileSection as ProfileSection<br/>컴포넌트
participant Modal as RewardQrModal<br/>컴포넌트
participant Query as useRewardQrQuery<br/>훅
participant API as API<br/>(memberModule)
User->>ProfileSection: "적립 QR" 버튼 클릭
ProfileSection->>ProfileSection: isQrModalOpen = true
ProfileSection->>Modal: open={true} 전달
Modal->>Query: useRewardQrQuery({ enabled: true }) 호출
Query->>API: memberModule.queries.qrTest() 실행
alt QR 생성 중
API-->>Query: isLoading = true
Query-->>Modal: "QR 생성 중..." 표시
else QR 생성 완료
API-->>Query: QR 데이터 반환
Query-->>Modal: QR 데이터 설정
Modal->>Modal: 카운트다운 시작 (60초)
Modal->>Modal: 매 60초마다<br/>refetchInterval로 QR 갱신
Modal->>Modal: QR 이미지 렌더링
end
User->>Modal: 모달 닫기 (오버레이 클릭)
Modal->>Modal: onClose() 호출
Modal->>ProfileSection: isQrModalOpen = false
코드 리뷰 예상 난이도🎯 4 (복잡함) | ⏱️ ~45분 연관 이슈
연관 PR
시 (시)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
✅ 작업 내용
📝 Description
🚀 설계 의도 및 개선점
📸 스크린샷 (선택)
📎 기타 참고사항
Fixes #90
Summary by CodeRabbit
릴리스 노트
새로운 기능
버그 수정