fix(board): 잘못된 목록 페이지 번호 보정 - #154
Merged
eGovFrameSupport merged 1 commit intoSep 15, 2026
Merged
Conversation
13 tasks
wizlife
marked this pull request as ready for review
September 14, 2026 22:12
eGovFrameSupport
approved these changes
Sep 15, 2026
Contributor
|
표준프레임워크에 대한 지속적인 참여에 |
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.
수정 사유 Reason for modification
목록 URL의 page=-1이 그대로 API로 전달되고, 2junk·2.5는 parseInt에 의해 2페이지로 처리됩니다. 이전 화면의 검색 상태도 페이지 번호 검증 없이 복원됩니다.
수정된 소스 내용 Modified source
URL·이전 화면 상태·페이지 이동에서 유효한 양의 정수만 사용하고, 잘못된 값은 1페이지로 보정합니다. 목록 복귀 주소에도 같은 규칙을 적용합니다.
관련 PR: 백엔드의 직접 요청 검증
JUnit 테스트 JUnit tests
useListNavigation 테스트 18건 통과. URL/state 입력, 이동 요청과 주소, 기존 검색 조건 및 목록 복귀 동작을 확인했습니다.
npm run test:run -- src/hooks/useListNavigation.test.jsxnpm run build성공.테스트 브라우저 Test Browser
테스트 스크린샷 또는 캡처 영상 Test screenshots or captured video
자동 테스트 결과입니다. 별도 브라우저 수동 테스트나 화면 캡처는 없습니다.