-
Notifications
You must be signed in to change notification settings - Fork 800
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
Protect: Add FreeList and PaidList pagination #39058
Conversation
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Protect plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
disabled={ currentPage === 1 } | ||
variant={ 'secondary' } | ||
> | ||
{ '<' } |
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.
Suggestion: could use an icon here from @wordpress/icons
setCurrentPage( pageNumber ); | ||
}, [] ); | ||
|
||
const [ isSmall, setIsSmall ] = useState( window.matchMedia( '(max-width: 1220px)' ).matches ); |
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.
Could useBreakpointMatch
be useful here?
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.
I started with useBreakpointMatch
but found that we seem to have a unique requirement with how our UI shifts in various viewports that was not exactly covered by the options it provided (isSm
, isMd
, isLg
).
I'll look into it! |
@dkmyta I found a Figma file which might be useful! TTzDk3dzct551hYWRXPFa3-fi-7790_96468 |
projects/plugins/protect/src/js/components/threats-list/styles.module.scss
Outdated
Show resolved
Hide resolved
Looking good and testing well 👍 Sketched out some suggestions in #39249 |
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.
Very nice enhancement to the threats UI! Looks good works good LGTM 👍
* Add threats list pagination * changelog * Add items per page constant, and handling * Fix mobile view * Simplify and consolidate * Fix versions * Use custom media query to improve responsiveness * Revert versions updates * Update and improve implementation * Compact * Set iconSize on parent component level * Adjustments to pagination design and accessibility (#39249) --------- Co-authored-by: Nate Weller <[email protected]>
Description
Add pagination to the current FreeList and PaidList components
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
Screenshots
Desktop:
Mobile: