-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Feat: create Common/Pagination component #5971
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
Feat: create Common/Pagination component #5971
Conversation
…ges shown in Common/Pagination
…on/Pagination tests
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
aa3d8c7 to
9b5febb
Compare
9b5febb to
21cd624
Compare
…s hook with ellipsis logic
21cd624 to
cab626e
Compare
We super appreciate all the effort put in here. Thank you! |
components/Common/Pagination/PaginationListItem/index.module.css
Outdated
Show resolved
Hide resolved
components/Common/Pagination/PaginationListItem/index.module.css
Outdated
Show resolved
Hide resolved
… within jest.setup.mjs
|
Hi, @ovflowd. I have pushed all the latest changes and refactors you mentioned, including the removal of the Let me know if the PR would be good to go, when you have some time. Have a great rest of the day, and thanks for your kind feedback 🥳 |
ovflowd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic work! Thank you so much for your due diligence here. We really appreciate the effort put in here 🙇
I've left some final comments, but besides that, I think we're good to go.
…ve code consistency
85ebf4c to
7606368
Compare
|
Thank you, @ovflowd! I have modified Also, I have a couple of final doubts, as this is my first contribution to this project:
Thank you! |
By collaborators.
Automatically done by GitHub
The checks are not triggered automatically, but rather by collaborators, to avoid unsafe Actions from running. |
|
Awesome, then, @ovflowd! If you think we are good to go, I leave the rest in your hands. Thanks for everything 🥳 |
Description
Common/Paginationcomponent, based on these Figma designsIt displays pages following a set of rules, all documented within the unit tests:
When there's 6 pages or less, all the page buttons are visible
When there's more than the minimum amount of visible pages, and:
It disables the previous button when the current page is the first one
It disables the last button when the current page is the last one
Proper accessibility ARIA attributes have been used, in order to make the component as accessible as possible
Validation
pagination-component.mov
Related Issues
Closes #5915
Check List
npx turbo lintto ensure the code follows the style guide. And runnpx turbo lint:fixto fix the style errors if necessary.npx turbo formatto ensure the code follows the style guide.npx turbo testto check if all tests are passing.