fix: 내 프로필, 다른 사용자 프로필 클릭 시 분기 처리#130
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughisWriter/isMyFeed 플래그를 도입해 헤더 클릭 시 이동 경로 및 팔로우 버튼 표시를 분기하고, 해당 플래그를 Reply/SubReply/Feed/Profile로 전파했습니다. /myfeed/:userId 라우트와 MyFeedPage를 추가했으며, OAuth 토큰 발급 엔드포인트를 /auth/set-cookie로 변경했습니다. 타입과 목데이터를 확장했습니다. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant PostHeader
participant Router
User->>PostHeader: click header
PostHeader->>Router: if isWriter && creatorId -> /myfeed/{creatorId}
PostHeader->>Router: else if creatorId -> /otherfeed/{creatorId}
Router-->>User: navigate to target feed
sequenceDiagram
participant User as User
participant MyFeedPage as MyFeedPage
participant API as API
User->>MyFeedPage: visit /myfeed/:userId
MyFeedPage->>MyFeedPage: read userId
MyFeedPage->>API: getOtherFeed(userId)
MyFeedPage->>API: getOtherProfile(userId)
API-->>MyFeedPage: feedData
API-->>MyFeedPage: profileData
MyFeedPage-->>User: render OtherFeed(showHeader=false, isMyFeed=true, showFollowButton=false)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (12)
✨ 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 (
|
#️⃣연관된 이슈
#71 [API] feeds API
📝작업 내용
isWriter 변수를 추가하여 내 프로필을 눌렀을때와 다른사용자의 프로필을 눌렀을 때 나오는 화면에서 팔로우 버튼의 유무를 설정하도록 했습니다.
💬리뷰 요구사항
없습니다!
Summary by CodeRabbit