-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Add inventory advanced section #35164
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
Test Results SummaryCommit SHA: 70966d2
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. |
louwie17
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 tested well, and changes are simple and straightforward, nice work!
It would be great to add a couple tests around this though.
Approving this, there are some merge conflicts, so let me know when you need a re-approval.
louwie17
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 is looking good @joshuatf, also appreciate you adding tests.
I did leave one comment in one of the tests, the name of it kinda confused me, in relation to what the test was actually doing.
Also when the track quantity is enabled it seems the margin is a lot bigger between the Advanced ^ button and the When out of stock label, compared to the margin between Restrictions and the toggle when track quantity is disabled.
See screenshot:

| ).toHaveClass( 'is-disabled' ); | ||
| } ); | ||
|
|
||
| it( 'should not render the manage stock section if inventory management is turned on', () => { |
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.
Should this actually be that the manage stock is not disabled?
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.
It should! Thanks for the catch!
louwie17
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.
Styling looks good now, nice work @joshuatf , this looks good!
Btw you will likely have to rebase again with latest of trunk to fix the code sniff error.
louwie17
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.
LGTM 🚀
|
Hi @joshuatf, thanks for merging this pull request. Please take a look at these follow-up tasks you may need to perform:
|
All Submissions:
Changes proposed in this Pull Request:
Adds the advanced section for product inventory management. Note that some styling changes around radios and radio labels exist in #35047.

Closes #34389 .
How to test the changes in this Pull Request:
wp-admin/admin.php?page=wc-settings&tab=products§ion=inventoryOther information:
pnpm --filter=<project> run changelog add?FOR PR REVIEWER ONLY: