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

refactor: [M3-7537] - PaginationControls Storybook v7 Story #9959

Merged
merged 6 commits into from
Dec 8, 2023

Conversation

coliu-akamai
Copy link
Contributor

@coliu-akamai coliu-akamai commented Dec 4, 2023

Description 📝

  • Migrate PaginationControls component story to a V7 (.tsx) story

Changes 🔄

  • migrate to v7 story
  • update comments + tests

How to test 🧪

Verification steps

As an Author I have considered 🤔

Check all that apply

  • 👀 Doing a self review
  • ❔ Our contribution guidelines
  • 🤏 Splitting feature into small PRs
  • ➕ Adding a changeset
  • 🧪 Providing/Improving test coverage
  • 🔐 Removing all sensitive information from the code and PR description
  • 🚩 Using a feature flag to protect the release
  • 👣 Providing comprehensive reproduction steps
  • 📑 Providing or updating our documentation
  • 🕛 Scheduling a pair reviewing session
  • 📱 Providing mobile support
  • ♿ Providing accessibility support

@coliu-akamai coliu-akamai self-assigned this Dec 4, 2023
@coliu-akamai coliu-akamai marked this pull request as ready for review December 5, 2023 21:20
@coliu-akamai coliu-akamai requested a review from a team as a code owner December 5, 2023 21:20
@coliu-akamai coliu-akamai requested review from jdamore-linode, dwiley-akamai and abailly-akamai and removed request for a team December 5, 2023 21:20
Copy link
Contributor

@dwiley-akamai dwiley-akamai left a 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}
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Contributor Author

@coliu-akamai coliu-akamai Dec 7, 2023

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

@coliu-akamai coliu-akamai added Add'tl Approval Needed Waiting on another approval! and removed Ready for Review labels Dec 7, 2023
Copy link

github-actions bot commented Dec 7, 2023

Coverage Report:
Base Coverage: 86.51%
Current Coverage: 86.52%

@bnussman-akamai bnussman-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Dec 8, 2023
coliu-akamai and others added 2 commits December 8, 2023 17:04
…ontrols.stories.tsx

Co-authored-by: Banks Nussman <115251059+bnussman-akamai@users.noreply.github.com>
@coliu-akamai coliu-akamai merged commit d26bb93 into linode:develop Dec 8, 2023
14 of 15 checks passed
@coliu-akamai coliu-akamai deleted the m3-7537 branch December 19, 2023 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge! Storybook
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants