-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feature/add-number-per-pages #232
Conversation
Coverage after merging feature/add-number-per-pages into feature/sc-46253/sdk-table-pagination
Coverage Report
|
1 similar comment
Coverage after merging feature/add-number-per-pages into feature/sc-46253/sdk-table-pagination
Coverage Report
|
1487224
to
e83e159
Compare
Coverage after merging feature/add-number-per-pages into feature/sc-46253/sdk-table-pagination
Coverage Report
|
1 similar comment
Coverage after merging feature/add-number-per-pages into feature/sc-46253/sdk-table-pagination
Coverage Report
|
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.
At first sight, everything looks good.
Expect a diff in a Chromatic snapshot that, IMO, should not be there.
I'll let @cybervinvin do the functional review as he implementing the table in the platform
26a0713
to
14a3278
Compare
…o chore/simplify-table-styling
e83e159
to
42ad223
Compare
Why didn't that pop in the previous PR?
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.
Works fine.
Maybe we could take some times to discuss how each other see if the table should prevent fail behaviors from its events
packages/visualizations-react/stories/Table/PaginatedTemplates.tsx
Outdated
Show resolved
Hide resolved
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.
Let's merge!
Summary
The goal for this PR is to add page size options to pagination.
(Internal for Opendatasoft only) Associated Shortcut ticket: sc-46253. (same as base pr
Changes
The biggest change is that I removed all kind of internal state for the current page or the current number per page. This proves impractical when you add number per pages, leading to having to track the current page in the app on top of the SDK component itself. So now the current page and the current number per page are fully controlled and determined by a single prop.
The select is a native select too. We currently don't support children/slots, so it's possible to use a platform select or something like that. But a native select should be fine for the use.
Options have both a label and a value because we may want to add extra wording (e.g. "5 / page") or other labelling ("small", "large" etc.)
Review checklist