Skip to content

Add repo-scoped issues and pull request list pages#97

Merged
stylessh merged 2 commits intomainfrom
stylessh/repo-issues-pulls
Apr 13, 2026
Merged

Add repo-scoped issues and pull request list pages#97
stylessh merged 2 commits intomainfrom
stylessh/repo-issues-pulls

Conversation

@stylessh
Copy link
Copy Markdown
Owner

Summary

  • Adds /$owner/$repo/issues and /$owner/$repo/pulls pages with full filtering, sorting, search, and pagination
  • Introduces useRepoListFilters hook that keeps all filter/sort/search/page state in the URL via nuqs, reusing the existing FilterBar component
  • Adds a simple Pagination component (Previous / page / Next) driven by GitHub API page size
  • Includes keepPreviousData for smooth page/filter transitions and throttleMs: 300 on URL params to reduce API calls
  • Adds repo-scoped filter definitions (repoPullFilterDefs, repoIssueFilterDefs) with static status options and data-driven author filters

Test plan

  • Navigate to /$owner/$repo/pulls and verify pull requests load with correct filters
  • Navigate to /$owner/$repo/issues and verify issues load with correct filters
  • Test status filter pills (open/closed/merged/draft) map correctly to GitHub API state
  • Test pagination navigates pages without loading flash (keepPreviousData)
  • Verify URL reflects all filter/sort/search/page state and survives page refresh
  • Confirm no excessive API calls on rapid filter changes (throttle)

Adds /$owner/$repo/issues and /$owner/$repo/pulls pages with URL-driven
filtering, sorting, search, and pagination via nuqs. Reuses the existing
FilterBar with a new useRepoListFilters hook that keeps all state in the
URL. Includes keepPreviousData for smooth page transitions and throttled
URL params to reduce API calls.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 13, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
diffkit bab3e7b Commit Preview URL

Branch Preview URL
Apr 13 2026, 07:55 PM

Manually merged the auto-generated route tree to include both main's new
routes (reviews, issues.new) and our repo-scoped issues/pulls routes.
@stylessh stylessh merged commit 41559f3 into main Apr 13, 2026
4 checks passed
@stylessh stylessh added the enhancement New feature or request label Apr 13, 2026 — with Diff Kit
stylessh added a commit that referenced this pull request Apr 18, 2026
Adds /$owner/$repo/issues and /$owner/$repo/pulls pages with URL-driven
filtering, sorting, search, and pagination via nuqs. Reuses the existing
FilterBar with a new useRepoListFilters hook that keeps all state in the
URL. Includes keepPreviousData for smooth page transitions and throttled
URL params to reduce API calls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant