-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New marketplace search component #39149
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
New marketplace search component #39149
Conversation
Test Results SummaryCommit SHA: d26ede8
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. |
|
Hi @Dan-Q, @andfinally, @simranvijwani, Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
|
Hi @Dan-Q, @andfinally, @kdevnel, @simranvijwani, Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
simranvijwani
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.
I haven't tested the PR yet, but based on my observation of the code, I recommend using variables in CSS.
Check out this example CSS file from the woocommerce-admin plugin where we utilize variables. It seems like we have to use variables from the Gutenberg base style. We have a stylesheet with available color variables here.
979e7d0 to
4d3d663
Compare
kdevnel
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 seems to work as described in your testing. Just noting that the design and location of the component has changed quite a lot since you opened this for review so I've requested changes for that reason only.
plugins/woocommerce-admin/client/marketplace/components/search/search.scss
Show resolved
Hide resolved
|
@simranvijwani @kdevnel |
kdevnel
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.
Looking great, I'm going to approve this one. There are some linting errors in the automated checks. I've suggested fixes for them for now.
plugins/woocommerce-admin/client/marketplace/components/search/search.scss
Show resolved
Hide resolved
plugins/woocommerce-admin/client/marketplace/components/search/search.scss
Outdated
Show resolved
Hide resolved
plugins/woocommerce-admin/client/marketplace/components/search/search.scss
Outdated
Show resolved
Hide resolved
plugins/woocommerce-admin/client/marketplace/components/search/search.scss
Outdated
Show resolved
Hide resolved
plugins/woocommerce-admin/client/marketplace/components/search/search.scss
Outdated
Show resolved
Hide resolved
plugins/woocommerce-admin/client/marketplace/components/search/search.scss
Outdated
Show resolved
Hide resolved
plugins/woocommerce-admin/client/marketplace/components/search/search.scss
Outdated
Show resolved
Hide resolved
|
Thanks @kdevnel - made all the changes to fix linters, only the changelog missing, but definitely agree we can do a big Feature Branch one at the end. |
Dan-Q
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.
One minor a11y change suggested (type="search").
One other comment (a11y/progressive) that I don't think's worth acting on but noting for educational purposes.
plugins/woocommerce-admin/client/marketplace/components/search/search.tsx
Outdated
Show resolved
Hide resolved
plugins/woocommerce-admin/client/marketplace/components/search/search.tsx
Show resolved
Hide resolved
|
@Dan-Q I've implemented your requested change now. Thanks for the review! |
46eafdf to
d5ba426
Compare
c7c0262 to
acc23fc
Compare
acc23fc to
d26ede8
Compare
Submission Review Guidelines:
Changes proposed in this Pull Request:
Add a new search component to the new marketplace react page (under WooCommerce WP Admin).
This component is prepared to call the WooCommerce marketplace API when a search query is entered.
We still need to add locale and country to the query as Props when calling the component.
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
import Search from '../search/search';toplugins/woocommerce-admin/client/marketplace/components/content/content.tsxreturn <Search>instead ofreturn <Extensions>on line 22<Search>component - I purposely did not set the width to it so it would adapt easily to different layouts.debugger;. line torunSearchinplugins/woocommerce-admin/client/marketplace/components/search/search.tsxto confirm that it's triggered both when clicking the magnifying glass icon and when hitting Enter on the keyboard.Changelog entry
Details
Significance
Type
Message
Comment