Skip to content

Add pagination foundations#885

Draft
jpurnell wants to merge 1 commit into
twostraws:mainfrom
jpurnell:feature/pagination-foundations
Draft

Add pagination foundations#885
jpurnell wants to merge 1 commit into
twostraws:mainfrom
jpurnell:feature/pagination-foundations

Conversation

@jpurnell
Copy link
Copy Markdown
Contributor

@jpurnell jpurnell commented May 21, 2026

Summary

  • Adds generic Paginator<Content> type for slicing collections into pages
  • Adds PaginationContext for tracking page state and generating URLs
  • Adds Pager component rendering Bootstrap 5 pagination controls with three styles: prevNext, numbered, and compact (with ellipsis)
  • 35 new tests covering pagination math, URL generation, and all rendering styles

Design

Purely additive — all new files. Pager accepts PaginationContext as an explicit parameter rather than using @Environment, making it usable immediately without framework changes. Environment key integration and PaginatedPage protocol are planned as follow-ups.

Test plan

  • All 35 new tests pass
  • Full test suite passes (1353 tests)
  • swift build clean with no warnings

…omponent

Introduces pagination support for Ignite:

- Paginator<Content> generic type for slicing collections into pages
- PaginationContext for tracking page state and generating page URLs
- Pager component rendering Bootstrap 5 pagination controls with
  three styles: prevNext, numbered, and compact (with ellipsis)

Purely additive. Environment key integration and PaginatedPage
protocol are planned as follow-ups.
@jpurnell jpurnell marked this pull request as draft May 21, 2026 22:15
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.

1 participant