Skip to content

fix: add pagination, filtering, and sorting to bounty board with mock-data parity (#28) - #184

Open
rafaio1 wants to merge 1 commit into
MergeFi:mainfrom
rafaio1:fix/28-bounty-board-pagination
Open

fix: add pagination, filtering, and sorting to bounty board with mock-data parity (#28)#184
rafaio1 wants to merge 1 commit into
MergeFi:mainfrom
rafaio1:fix/28-bounty-board-pagination

Conversation

@rafaio1

@rafaio1 rafaio1 commented Aug 20, 2026

Copy link
Copy Markdown

Fixes #28.

  • Update fetchBounties to accept BountyFilters (page, status, difficulty, asset, sort, search) and return PaginatedBounties with items/total/page
  • Add in-memory filter/sort/paginate for mock-data fallback ensuring demos work fully offline with identical filtering behavior
  • Rewrite issues/page.tsx to read URL searchParams for shareable filter state; all filter/sort controls are Links that update the URL
  • Add pagination controls with page clamping for invalid/out-of-range pages
  • Fix contributor and maintainer dashboards to consume .items from new PaginatedBounties return type
  • Backend contract note: GET /bounties should accept query params documented in BountyFilters interface

TypeScript compiles cleanly with npx tsc --noEmit.

…-data parity (MergeFi#28)

- Update fetchBounties to accept BountyFilters (page, status, difficulty,
  asset, sort, search) and return PaginatedBounties with items/total/page
- Add in-memory filter/sort/paginate for mock-data fallback ensuring demos
  work fully offline with identical filtering behavior
- Rewrite issues/page.tsx to read URL searchParams for shareable filter state;
  all filter/sort controls are Links that update the URL
- Add pagination controls with page clamping for invalid/out-of-range pages
- Fix contributor and maintainer dashboards to consume .items from new
  PaginatedBounties return type
- Backend contract note: GET /bounties should accept query params documented
  in BountyFilters interface

TypeScript compiles cleanly with npx tsc --noEmit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add pagination, filtering, and sorting to the bounty board with mock-data parity

1 participant