Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance <Pagination> component #2918

Merged
merged 2 commits into from
Aug 27, 2024
Merged

Enhance <Pagination> component #2918

merged 2 commits into from
Aug 27, 2024

Conversation

balanza
Copy link
Member

@balanza balanza commented Aug 23, 2024

Description

Refactor the <Pagination> component using the library react-paginate

  • feature parity with the previous implementation
  • add prev/next buttons
  • handle more pages using ellipsis

@balanza balanza requested review from janvhs and dottorblaster and removed request for janvhs August 23, 2024 13:15
@balanza
Copy link
Member Author

balanza commented Aug 23, 2024

There are some failing tests after the refactor. They happen because they rely on checks based on internal implementations that may not be valid anymore.

The problem is that I don't know if they fail also because the new implementation breaks some behavior. I have to investigate ed eventually to refactor tests as well.

Copy link
Member

@janvhs janvhs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nitpick, but otherwise LGTM ^^

@balanza balanza force-pushed the implement-react-paginate branch from 6c3aa79 to 6df98a8 Compare August 27, 2024 07:56
@balanza balanza force-pushed the implement-react-paginate branch from 6df98a8 to 2a0abd8 Compare August 27, 2024 14:57
@balanza balanza enabled auto-merge (squash) August 27, 2024 15:00
@balanza balanza merged commit 27efad0 into main Aug 27, 2024
27 checks passed
@balanza balanza deleted the implement-react-paginate branch August 27, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants