fix : 문제리스트 prev 버튼 next버튼 페이지 단위로 넘어가게 수정#96
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough글로벌 상수 Changes
Sequence Diagram(s)sequenceDiagram
actor User as User
participant Table as Table (UI)
participant State as Pagination State
rect rgb(240,248,255)
note over Table,State: 기존 흐름 (단일 스텝 이동)
User->>Table: Click Next
Table->>State: currentPage = currentPage + 1 (if < totalPages)
User->>Table: Click Prev
Table->>State: currentPage = currentPage - 1 (if > 1)
end
rect rgb(245,255,240)
note over Table,State: 변경된 흐름 (그룹 이동, 경계 클램핑)
User->>Table: Click Next
Table->>State: if currentPage + PAGE_LIMIT > totalPages<br/>then currentPage = totalPages - 1<br/>else currentPage += PAGE_LIMIT
User->>Table: Click Prev
Table->>State: if currentPage - PAGE_LIMIT < 1<br/>then currentPage = 1<br/>else currentPage = currentPage - (currentPage % PAGE_LIMIT or PAGE_LIMIT)
Table-->>User: (optional) console.log(totalPages)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested labels
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 Review profile: ASSERTIVE Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 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 (
|
🔎 작업 사항
➕ 관련 이슈
Summary by CodeRabbit