-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Create Pagination
Component
#5915
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Can I take this up? @ovflowd 🙇🏽♂️ |
Anyone is free to grab these issues. We usually go on an approach of anyone can contribute. If multiple PRs are opened against this, I don't see it as a bad thing and the first PR that gets merged, alright. I would ask for people who comment on issues asking if they can work on X, to ask on just one issue per time. |
Hi, @ovflowd. I would love to work on this issue! |
Hi, @bmuenzenmeyer. After carefully reading the requirements, I have come up with a couple of doubts:
|
Read our Collaborator Guide.
Right, but it's just a recommendation, not a rule. And we instead separate CSS from the Components to keep the styling separated from the Component. (And other reasons) |
Awesome, thank you @ovflowd! I have gone through the Collaborator Guide and it's all crystal clear to me now. |
@bmuenzenmeyer double ping if you could support, Daniel here 🙇 |
caveat this that i am just translating a static design how i see it - and that @nodejs/ux-and-design / @haydenbleasel is the final say...
agree - the user can use the already existing arrows to navigate, no need to make elipses do anything
I don't have strong opinions here, excepting that if the current |
Perfect, thank you both @ovflowd @bmuenzenmeyer! 😎 |
@ovflowd sir pls. Assign this. I went through the codebase and also understood the approach as suggested by you. It would be so nice of you if this issue is assigned to me . |
I don't assign issues to people. You want to work on an issue, just do it. PRs are merged on a first-served. (https://www.redhat.com/en/blog/dont-lick-cookie) |
Sir some of the previous issues which I saw was assigned to someone |
Right, not by me. (Can you also please not call me "sir", thanks) |
Oh! okay Bhaiya ( Word used to show respect in India ) then to whom should I ask for issue assignment |
Right, no worries. (Now I learnt a word in Indian) So, my recommendation is just work on a task. Assignment is just a formality. You can simply work on the issue and open an PR, and that's it :) |
Okay Bhaiya Thank you so much 😃 |
Hi, @ovflowd and @bmuenzenmeyer, hope you are doing great. I have completed the development of this component in this PR. Please let me know if you have any questions, or if there's any modifications that need to be made. Thank you, and have a great weekend! |
Create a
Pagination
component using the new figma design (direct link).Before You Start...
Details
❓ Not sure where to start breaking down the figma? Read this short guide
🌐 This story requires some internationalization support. Slow down!
Pagination
within theCommon
directory that contains all the new code. (This location may change in the future.)@heroicons/react
module has the iconsarrow-right
andarrow-left
available for usecomponents/common/Pagination/index.stories.tsx
which exercises each of the component's states.Previous
andNext
must be internationalized. Add new keyscomponents.common.pagination.prev
andcomponents.common.pagination.next
to thei18n/locales/en.json
file.FormattedMessage
fromreact-intl
should be used to reference the keys. Look for examples elsewhere in the codebase.Suggested props include:
currentPage
(integer)pages
, an array of objects that looks like this:There are 3 collection states to capture with stories:
There are 4 layout states to capture within styles and stories:
Open Questions
If the current page is not in the displayed list per our previous rules, how should it get displayed? Research other pagination patterns to determine how this should look.
Material UI would suggest something like this:
GitHub does something similar
The text was updated successfully, but these errors were encountered: