-
Notifications
You must be signed in to change notification settings - Fork 367
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
refactor: [M3-7537] - PaginationControls Storybook v7 Story #9959
Conversation
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.
Story loads in Storybook ✅
Pagination still works in Cloud ✅
Unit test passes ✅
<PaginationControls | ||
{...args} | ||
onClickHandler={context.setPage} | ||
page={context.page} |
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.
Just noting that the page control doesn't seem to work (it doesn't in prod Storybook either)
Video
Screen.Recording.2023-12-07.at.4.12.44.PM.mov
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.
👀 hmm wondering if it's because of page={context.page}
, so maybe it ignores that argument? will look into it some more
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.
edit: i think it's because of context.page
. When I changed the args object to include page: 1
, changing the page control affects the component but then the onClickHandler (context.setPage
) doesn't work. Made a controlled pagination example that should work now! ty for catching
Coverage Report: ✅ |
packages/manager/src/components/PaginationControls/PaginationControls.stories.tsx
Outdated
Show resolved
Hide resolved
…ontrols.stories.tsx Co-authored-by: Banks Nussman <115251059+bnussman-akamai@users.noreply.github.com>
Description 📝
Changes 🔄
How to test 🧪
Verification steps
yarn test PaginationControls
As an Author I have considered 🤔
Check all that apply