Skip to content

Conversation

rachelks
Copy link
Member

@rachelks rachelks commented Oct 24, 2026 •

Closes #14

Summary

  • Add cursor-based pagination with 20 albums per page.
  • Automatically load up to 60 albums, then provide a Load more button for additional results.
  • Reuse Apollo-cached pages when returning to previous searches.
  • Reset pagination when the search query changes, with support for future sorting and filtering controls.
  • Handle loading errors, overlapping requests, and keyboard accessibility.
  • Update README to document the implemented infinite scroll and Load more functionality, including how previously fetched results are reused.
  • Add cursor pagination and caching to the sustainability measures, highlighting reduced data transfer and unnecessary requests.

Testing

  • Manually tested pagination, cached results, and keyboard navigation with a local dataset of 100,000 albums.
  • All 75 frontend tests passed.
  • Prettier, lint, typecheck, and builds passed.

@rachelks rachelks requested a review from a team as a code owner October 24, 2026 11:03
@rachelks rachelks linked an issue Oct 24, 2026 that may be closed by this pull request
4 tasks
@rachelks
Copy link
Member Author

Note: The README bundle size table includes the existing AlbumDetailPage measurements from #11, which is still awaiting merge. The main bundle sizes have been updated from the latest build. We should verify the complete table after #11 is merged, before merging this PR.

Copy link
Member

@robertky robertky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. The pagination, cache reuse, and accessible “Load more” fallback are well covered. The README measurements have been updated after #11, and CI passes. I can approve and merge the pull request when #62 has been rebased.

@rachelks rachelks force-pushed the feat/14-infinite-scroll branch from 85a6d7b to dccd6b7 Compare October 26, 2026 14:14
Copy link
Member

@robertky robertky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@robertky robertky merged commit 3f29816 into main Oct 26, 2026
2 checks passed
@rachelks rachelks deleted the feat/14-infinite-scroll branch October 29, 2026 15:36
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cursor pagination + infinite scroll + Load more
2 participants