Skip to content

[codex] Restore pagination on bounties list#1031

Closed
xclear-cast wants to merge 1 commit into
entrius:testfrom
xclear-cast:codex/restore-bounties-pagination
Closed

[codex] Restore pagination on bounties list#1031
xclear-cast wants to merge 1 commit into
entrius:testfrom
xclear-cast:codex/restore-bounties-pagination

Conversation

@xclear-cast
Copy link
Copy Markdown

Summary

Restores pagination on the /bounties issue list after PR #983 started rendering the entire sorted issue array in both card and table views.

Changes

  • Slice sortedIssues into paginatedIssues before rendering cards or rows.
  • Restore the rows-per-page selector using the existing list/card row constants.
  • Reset/clamp the current page when filters, search, sort, view mode, or rows-per-page change.
  • Move the shared lightweight TablePagination component from components/miners to components/common and update existing imports.
  • Guard bounty card/table/chart repository display against missing repository metadata so /bounties does not crash on sparse rows.

Validation

  • npm ci
  • npm run build
  • npx playwright screenshot --wait-for-timeout=3000 http://127.0.0.1:5174/bounties bounty-page.png

Fixes #1027.

@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label May 10, 2026
@xclear-cast xclear-cast marked this pull request as ready for review May 10, 2026 20:59
@anderdc
Copy link
Copy Markdown
Collaborator

anderdc commented May 11, 2026

Duplicate of #1028 which is better scoped/implemented. Closing.

@anderdc anderdc closed this May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bounties page renders every bounty on first paint after PR #983 dropped pagination

2 participants