Conversation
feat: 새 글 작성 API 연동
…to feat/api-auth
feat: 새 글 수정 API 연동
feat: 피드 메인페이지 - 내 띱 목록 API 연동
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Caution Review failedThe pull request is closed. Walkthrough쿠키 기반 인증으로 전환하는 apiClient 단순화와 함께, 피드 생성/수정 API·훅·페이지를 신규 도입했다. 이미지 업로드 유틸 추가, OAuth 토큰 처리 훅 연동, 검색/팔로우 관련 API 추가, contentsUrl→contentUrls 및 success→isSuccess 명세 변경을 전역 반영했다. 라우팅과 일부 UI/프롭스가 이에 맞추어 수정되었다. Changes
Sequence Diagram(s)sequenceDiagram
participant UI as CreatePost
participant Hook as useCreateFeed
participant API as createFeed
participant S as Server
UI->>Hook: createNewFeed(body, images?)
Hook->>Hook: 로컬 검증(태그/이미지)
alt 검증 실패
Hook-->>UI: { success: false }
else 통과
Hook->>API: multipart/form-data 요청
API->>S: POST /feeds
S-->>API: CreateFeedResponse
API-->>Hook: 응답 전달
Hook-->>UI: { success, feedId? }
end
sequenceDiagram
participant UI as UpdatePost
participant Hook as useUpdateFeed
participant API as updateFeed
participant S as Server
UI->>Hook: updateExistingFeed(feedId, body)
Hook->>Hook: 태그 검증(최대/중복)
alt 통과
Hook->>API: PATCH /feeds/{id} (JSON)
alt 실패 시
API->>API: FormData(request: JSON Blob) 재시도
API->>S: PATCH /feeds/{id}
end
S-->>API: UpdateFeedResponse
API-->>Hook: 응답
Hook-->>UI: 결과 및 스낵바
else 실패
Hook-->>UI: { success: false }
end
sequenceDiagram
participant Page as Feed/SignupNickname
participant Hook as useOAuthToken
participant API as apiClient
participant S as Server
participant Nav as Router
Page->>Hook: useOAuthToken()
Hook->>Hook: URL에서 loginTokenKey 확인
alt 존재함 & 미요청
Hook->>API: POST /oauth-success (withCredentials)
API->>S: 요청
S-->>API: 200 응답
API-->>Hook: 데이터
Hook->>Nav: URL 쿼리 제거(replace)
else 없음
Hook-->>Page: isTokenRequested 상태만 반환
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (36)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
This was referenced Aug 17, 2025
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.
이하동일
Summary by CodeRabbit
신기능
개선
버그 수정