feat: 목록으로 돌아오면 CursorPager의 '이전'과 구간 표시를 되살림 - #66
Merged
Merged
Conversation
- 지나온 커서를 컴포넌트 상태에만 쌓아서, 상세 → '목록으로'로 같은 커서 주소에 돌아와도 페이저가 다시 마운트되며 [cursor]부터 시작 → '이전' 버튼과 "21–40 / 전체" 구간 표시가 사라졌음 - list-return에 경로별 커서 기억(rememberTrail·rememberedTrail) 추가. 검색 파라미터 기억과 같은 수명(최대 50경로, forgetSearches가 함께 비움) - CursorPager는 마운트 때 라우터에서 경로를 읽어 기억한 것으로 시작하고, 쌓은 커서가 바뀔 때마다 기록 - 기억한 것이 다른 목록 조건이거나 지금 커서를 지나오지 않았으면 기존 렌더 중 보정이 새로 쌓음(이전 동작) - 라우터 밖에서 단독 렌더하면 경로가 없어 기억하지 않음 → 호출부(11곳)·기존 spec은 그대로 - 회귀 5건: 같은 경로·조건·커서로 다시 마운트하면 '이전'·구간 복원 후 '이전'이 앞 커서로 이동 / 경로·조건이 다르거나 지나오지 않은 커서면 복원 안 함 / forgetSearches 뒤 복원 안 함 - 페이저 변경을 되돌리면 복원 케이스, 경로를 무시하면 경로 케이스, forgetSearches에서 커서를 안 비우면 세션 케이스가 실패하는 것 확인
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
배경
CursorPager가 새로 마운트돼 '이전' 버튼과 '21–40 / 전체' 구간 표시가 사라졌습니다.변경
CursorPager가 지나온 커서 순서를 경로별로 기억합니다(list-return.ts).forgetSearches()가 함께 비웁니다.테스트
it.each).forgetSearches()뒤에는 되살리지 않는 것을 확인했습니다.플랜 대조