feat: 나의공방 대시보드 구현 (#244) - #246
Merged
Merged
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 ignored due to path filters (1)
📒 Files selected for processing (10)
개요사용자 대시보드 기능을 구현하는 풀 리퀘스트로, 기술 스택 차트, 주간 활동 그래프, 상위 좋아요 포스트 표시 기능을 추가합니다. 세 개의 새로운 API 엔드포인트, 커스텀 훅, 그리고 대시보드 UI 컴포넌트를 도입합니다. 변경 사항
시퀀스 다이어그램sequenceDiagram
participant Client as 클라이언트
participant DashboardOverview as DashboardOverview<br/>컴포넌트
participant Hooks as 커스텀 훅<br/>(useQuery)
participant APIRoute as API 라우트<br/>(/api/dashboard/*)
participant ServerAPI as serverApi<br/>(RPC)
participant Database as 데이터베이스
Client->>DashboardOverview: 렌더링 요청
DashboardOverview->>Hooks: useTechStack, useWeeklyActivity, useTopLiked 호출
Hooks->>APIRoute: GET /api/dashboard/tech-stack
Hooks->>APIRoute: GET /api/dashboard/weekly-activity
Hooks->>APIRoute: GET /api/dashboard/top-liked
APIRoute->>APIRoute: 쿠키에서 access_token 검증
APIRoute->>ServerAPI: POST /rpc/get_tech_stack (user_id)
APIRoute->>ServerAPI: POST /rpc/get_analyses (user_id, 필터링)
APIRoute->>ServerAPI: POST /rpc/get_analyses (user_id, 정렬: likes_count)
ServerAPI->>Database: 기술 스택 데이터 조회
ServerAPI->>Database: 주간 활동 데이터 조회
ServerAPI->>Database: 상위 좋아요 포스트 조회
Database-->>ServerAPI: 데이터 반환
ServerAPI-->>APIRoute: RPC 응답
APIRoute-->>Hooks: JSON 응답
Hooks-->>DashboardOverview: 데이터 반환
DashboardOverview-->>Client: UI 렌더링
코드 리뷰 예상 난이도🎯 3 (보통) | ⏱️ ~20분 연관 가능성 있는 PR
축하 시
✨ Finishing Touches
🧪 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 |
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.
📌 PR 개요
🔍 관련 이슈
🔧 변경 유형
✨ 변경 사항
DashboardOverview컴포넌트 구현 (recharts 기반)get_tech_stack연동GET /api/dashboard/weekly-activity연동GET /api/dashboard/top-liked연동useTechStack/useWeeklyActivity/useTopLiked훅 추가✅ 체크리스트
📸 스크린샷 (선택)
🤝 기타 참고 사항
Summary by CodeRabbit
릴리스 노트
새로운 기능
스타일