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
In-app search filtering #40333
In-app search filtering #40333
Conversation
|
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: |
…hub.com/woocommerce/woocommerce into update/in-app-multiple-category-filters
Test Results SummaryCommit SHA: 013116d
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. |
…ultiple-category-filters
…ultiple-category-filters
|
I just merged #40368 into this PR, so it may looks slightly bigger from what it should be. |
…hub.com/woocommerce/woocommerce into add/marketplace-theme-discover-section
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.
💛 Beautiful. Get it merged!
| __( | ||
| "We didn't find any results for “%s”", | ||
| "We didn't find %1$s for “%2$s”", |
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'm not sure how well this translates to other languages: "injecting" substrings like this can be tricky. I can't think of any specific examples, but there might exist languages where this doesn't work.
Like how in Japanese you use a different set of numbers when enumerating small quantities of physical things, depending on their shape, there could well be languages where the verb "find" conjugates differently depending on the object of the verb. Like if in English it was more-correct to say "We didn't find any themes" but "We didn't discover any extensions".
Probably not an issue, and I can't think of a "nice" solution anyway, but just mentioning in case you think it's worth doing anything about.
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 we just have two strings, one for themes and one for extensions?
…x-start` – items were looking weird centred when there weren't enough to fill a row.
|
@bgrgicak was this close intentionally? Just checking in case it was accidental and still needs review. |
No this was a mistake. |
…ommerce/product-editor, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/data, @woocommerce/components, @woocommerce/block-templates, woocommerce-beta-tester, woocommerce
…-category-filters
…tplace-theme-discover-section
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 all checks out for me! Since a lot of my search tab code is based on this, everything makes sense!
* Support for themes in in-app marketplace. Contains the changes from: #40247 #40272 #40302 #40303 #40333 #40368 #40375 #40375 #40389 * `.woocommerce-marketplace__discover`: changed `align-items` `flex-start` to `stretch` to properly display products on large and very large viewports. * Delete plugins/woocommerce/changelog/add-18026-marketplace-theme-cards Removing from feature branch before final review * Delete plugins/woocommerce/changelog/add-18027-themes-to-in-app-search Removing from feature branch before final review * Delete plugins/woocommerce/changelog/add-marketplace-theme-discover-section Removing from feature branch before final review * Delete plugins/woocommerce/changelog/update-in-app-multiple-category-filters Removing from feature branch before final review * Delete plugins/woocommerce/changelog/update-theme-no-result-style Removing from feature branch before final review * Add changefile(s) from automation for the following project(s): woocommerce --------- Co-authored-by: And Finally <andfinally@users.noreply.github.com> Co-authored-by: Dan Q <dan@danq.me> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Dan Q <danq@automattic.com>
Changes proposed in this Pull Request:
This PR adds support for selecting categories in the in-app search.
Category selector now accepts a type prop and loads different data for theme and extension search sections.
Clicking all extensions in the filter resulted with no data being returned, it was fixed by excluding the _all category from search requests.
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
Changelog entry
Significance
Type
Message
Comment
Update the marketplace search flow and fix category filtering for theme and extension search.