-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Add pagination to variations list #35979
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
Conversation
|
This PR is blocked by #35976 |
Test Results SummaryCommit SHA: 5a9578f
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
joshuatf
left a comment
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.
Testing well and code looks great! Left one comment about adding in the text transform we discussed earlier, but pre-approving ✅
| margin: 0; | ||
| } | ||
|
|
||
| &__footer { |
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 know @jarekmorawski hasn't responded yet on whether or not we want to change this for all pagination components, but in the meantime I think it would be okay to update the styling just for variations to the casing in the design.

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.
That was solved -> 53b3f20
plugins/woocommerce-admin/client/products/fields/variations/variations.scss
Outdated
Show resolved
Hide resolved
joshuatf
left a comment
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.
This looks great and is testing well on my end!
I committed one minor style change (feel free to revert if I was incorrect on this or if the styling looks different on your end) so that you can merge without needing to get approval again.
* Add changelog * Add pagination to variations list * Apply styles for pagination paddings and to keep it at the bottom of the section card * Returning back per page option from 2 to 25 * Fix pagination label text from uppercase to normal and font styles * Update variation footer gap Co-authored-by: Joshua T Flowers <[email protected]>
All Submissions:
Changes proposed in this Pull Request:
Closes #35788
How to test the changes in this Pull Request:
Products -> Add Newpage or use and existing variable product/wp-admin/admin.php?page=wc-admin&path=/product/{product_id}. Replace the{product_id}string with your real id.Optionstab and in theVariationssection you should see the pagination component at the botton of the list if and only if the product has more than 25 variations and if the items per page is less than the total amount of variations.Screen.Recording.2022-12-14.at.2.41.27.PM.mov
Other information:
pnpm --filter=<project> changelog add?FOR PR REVIEWER ONLY: