Feat: 랭킹 페이지 구현 - #40
Merged
Merged
Conversation
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.
close #38
☑️ 완료 태스크
🔎 PR 내용
랭킹 조회 기능 구현
useInfiniteQuery 사용해서 랭킹을 20개씩 가져오도록 구현했어요. @seobbang 이 만든 useInfiniteScroll hook 사용해서 무한스크롤 형태로 구현했습니다!
랭킹 업데이트 시 백엔드에서 성능 최적화를 위해 청크 단위로 순위 업데이트를 진행하기 때문에 일부만 업데이트 되었을 경우 랭킹 순위가 뒤죽박죽이 될 가능성이 있어서 이 부분에 있어 해결책을 고민 중에 있어요.
첫번째로, 업데이트가 진행중일 때 진행 전 랭킹 스냅샷을 보여주는 방법이 있을 수 있는데, 생각해보면 이 업데이트 기간에 새로 유저를 팔로우하게 되어도 UI에는 업데이트 진행 전 시점 스냅샷이 보여지기 때문에 팔로우한 유저가 랭킹에 나타나지 않는 이슈가 있을 수 있습니다.
두번쨰로, 업데이트가 진행중일 때 업데이트가 진행중이라는 표시를 띄우는 건데, 문제는 유저가 많아질 경우 업데이트 시간이 엄청나게 오래 걸릴 가능성이 있어 그 동안 유저가 랭킹을 조회할 수 없다는 이슈가 있을 수 있습니다.
스레드에서 계속해서 논의 중인 내용이라 자세한 내용은 스레드에서 확인할 수 있어요.
랭킹 조회 기능 구현
Bottom NavBar를 구현했어요.
추후 페이지 추가시
navItems에 추가하면 자동으로 옵션에 추가됩니다./경로 진입 시 로그인 페이지 리다이렉트현재 메인 페이지가 구현이 안 된 상태이고, 메인 페이지에는 authLoader가 적용되어있지 않아서
/진입시 빈 화면이 뜨는데, 로그인 페이지로 리다이렉트되었으면 좋겠다는 백엔드 측의 니즈가 있었어요.그래서 임시로
Router에/진입시 로그인 페이지로 강제 리다이렉트 하는 부분을 추가했어요. 추후 제거될 부분이라 주석도 남겨두었습니다!📷 스크린샷
2025-09-26.5.19.58.mov