-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add Category Panel Component #141
Conversation
Category panel is an optional representation of the category tree response returned by the VTEX product search API. The visibility of the category panel defaults to false.
Hi @sahanljc , thank you for the contribution! |
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.
Thanks for your contribution, just minor adjustments
Hi @gabrielgalc, you can check the feature at this workspace. For detailed search results have a look at the brand search for South Co. You can do full text search for 4414 in Electronic Components, sample in Electronic Components. |
Do you guys think we should apply the map based filter in this panel as well? I am referring to the |
Use `mh4-ns` tachyons class instead of the check on mobile from runtime.
`<h3>` is a block level element as @klzns pointed out and hence the styles can be applied to `<h3>` directly.
* master: (21 commits) Release v3.13.1 Add block to examples Release v3.13.0 Add docs for search-title and remove unecessary padding Update CHANGELOG Add optional title block Update snapshot test Add test id Query by testid Fix comments and update class reference update snapshots Behavior tests Update to VTEX test tools Release v3.12.14 Using store-icons instead of dreamstore-icons Update SNAPSHOT Release v3.12.13 Add new CSS handle filterContent Release v3.12.12 Fix variable name ...
* master: Release v3.13.2 Rename component to SearchTitle Remove showTitle schema property
* master: (60 commits) Release v3.15.1 Use recordsFiltered field from productSearch query Release v3.15.0 Fix tests Add option to toggle visibility of facet item quantity Add default empty products message Fallback to not found page when there are no products Fix fetch more update Update changelog Move selected filter logic to components Fix prop type error Release v3.14.1 Fix messages on not found page Release v3.14.0 Add backwards compat props Add default value for query and convert to function component Prettier Scope messages Use decodeURIComponent when comparing values Remove search-title from default blocks ...
* master: Release v3.16.1 Release v3.16.0 Updating snapshot Removing fixed value on UI Linting Removing default sortby options Release v3.15.5 Fix selected filters not accounting for map Release v3.15.4 check facet map on withFacets check facet query on withFacets add facetMap and facetQuery params to query changelog use productSearchV2 on local query and add default items per page Release v3.15.3 decode uri on gallery title Release v3.15.2 Fix infinite loading on fetch more Update README.md
What is the purpose of this pull request?
Category panel is an optional representation of the category tree response returned by the VTEX product search API. It leverages the
CategoriesHighlights
fromvtex.store-components
. The visibility of the category panel defaults tofalse
.What problem is this solving?
Stores often want to show the category images when a customer searches a product.
vtex.search-results
shows the available category filters in a left panel along with a link. It does not support showing an image.How should this be manually tested?
showCategoryPanel
property of theSearchResultQueryLoader
totrue
.quantityOfItemsPerRow
defaults to 4. You can optionally set it to 2.)Screenshots or example usage
Types of changes