Pagination Part 2

✅ merged · #308 · open-legal-products/mike ← amay0048/mike-amay0048 · opened 24d ago by amay0048 · merged 23d ago by willchen96 · +9,092-2,883 across 41 files · ↗ on GitHub

From the PR description

Summary

This implements pagination across the remaining main list views.

Why / Motivation

This lets the UI support larger datasets through loading parts of the data set as needed for the view.

Changes

The pagination pattern approved in the first branch has been implemented across the other views. The exception is the file view which loads folder child content when clicked, rather than using a batching call with scroll.

Tradeoffs & risks

Similar considerations to the previous design pass for the initial pagination implementation. Re: files - if there are large sets of files in the root or in a single folder, the current solution will be sub-optimal, as it fetches these in a single hit.

How verified

Verified with local smoke testing on the ui using seed data generated with sql scripts.

Checklist

  • [ x] Ran the relevant build/test command for the area changed.
  • [ x] Reviewed git diff and removed unrelated changes.
  • [ x] Updated docs / env examples if setup, config, or behavior changed.
  • [ x] No secrets, API keys, real documents, or .env files committed.

Our analysis

Extend pagination across core list views — read the full analysis →

Think the analysis missed something the PR description covers?

Commits in this PR (6)

SHA Subject Author Date
f31e2267 Feat: database pagination for projects view Anthony May 2026-08-07 ↗ GitHub
7b5ba2fe Feat: workflows pagination Anthony May 2026-08-11 ↗ GitHub
86aeccd9 Feat: pagination for library/files Anthony May 2026-08-11 ↗ GitHub
d64e3d70 Feat: Added document-level pagination to the Library view Anthony May 2026-08-11 ↗ GitHub
57d754cc fix: harden collection pagination and directory loading willchen96 2026-08-12 ↗ GitHub
734e6add test: cover paginated collection helpers willchen96 2026-08-12 ↗ GitHub

Capture this PR into my fork

Download a Markdown prompt that tells Claude how to port every commit in this PR into your working tree. Run it via claude -p < capture-pull-308.md from inside the repo you want the changes in.

⬇ Download capture-pull-308.md