Skip to content

Add custom Pagination component #29

Merged
buberdds merged 1 commit into
masterfrom
mz/pagination
Sep 9, 2025
Merged

Add custom Pagination component #29
buberdds merged 1 commit into
masterfrom
mz/pagination

Conversation

@buberdds
Copy link
Copy Markdown
Collaborator

@buberdds buberdds commented Jun 5, 2025

Initial work for Explorer integration.

  • allow to use pagination items with any router lib or by handling callback
  • adjust styles (disabled state)
  • API follows our current custom MUI pagination from Explorer
    <Pagination
      totalCount={totalCount}
      selectedPage={selectedPage}
      rowsPerPage={rowsPerPage}
      showFirstPageButton
      showLastPageButton
      isTotalCountClipped={isTotalCountClipped}
      renderItem={(item: PaginationItemProps) => (
        <PaginationLink
          linkComponent={Link}
          to={item.page ? linkToPage(item.page) : ''}
          preventScrollReset={true}
          slots={{
            first: t('pagination.first'),
            last: t('pagination.last'),
          }}
          {...item}
        />
      )}
    />

Explorer tests:
Screenshot from 2025-06-06 11-46-29
Screenshot from 2025-06-06 11-48-34

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2025

Deployed to Cloudflare Pages

Latest commit: da496d93ff61322bb2fed90360b7f498312cec92
Status:✅ Deploy successful!
Preview URL: https://8a8d8553.oasis-ui.pages.dev
Alias: https://pr-29.oasis-ui.pages.dev

@buberdds buberdds changed the title Mz/pagination Refactor Pagination component Jun 5, 2025
@buberdds buberdds force-pushed the mz/pagination branch 8 times, most recently from bcab4c8 to 62170e3 Compare June 6, 2025 10:41
@buberdds buberdds marked this pull request as ready for review June 6, 2025 10:45
@buberdds buberdds changed the title Refactor Pagination component Add custom Pagination component Jul 29, 2025
@buberdds buberdds merged commit b764085 into master Sep 9, 2025
4 checks passed
@buberdds buberdds deleted the mz/pagination branch September 9, 2025 11:00
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.

2 participants