Skip to content

[Feat]: Add page indicator to catalog pagination (Page X of Y) #2563

@TarunyaProgrammer

Description

@TarunyaProgrammer

Add page indicator to catalog pagination (Page X of Y)

Current Behavior

The catalog pagination on https://meshery.io/catalog/designs only provides “Prev” and “Next” buttons.
There is no indication of:

  • the current page number
  • the total number of available pages
  • how many pages remain

Since pagination is entirely client-side, users must click blindly to understand how much content exists.


Desired Behavior

Display a page indicator in the pagination UI, such as:

Page X of Y

This indicator should:

  • update correctly when navigating pages
  • remain accurate when filters or search are applied
  • rely entirely on existing client-side data (no backend changes)

The total page count can be derived from existing values:

  • matchingCards.length
  • itemsPerPage

Pagination logic is centralized in _includes/patterns-filter.html, making this a small, frontend-only enhancement.


Screenshots / Mockups

Current pagination UI (Prev / Next only):

Before.Meshery-1.mov

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions