Skip to content

Commit

Permalink
Add second query with catalog integration (#15)
Browse files Browse the repository at this point in the history
* add autcomplete component

* remove font-awesome and add append history function

* add Attribute as a component

* remove hard coded color

* use FormattedMessage instead of formatMessage function

* add ordinal number to intl

* Add DidYouMean, Banner and Suggestions

* update changelog an remove dependencies

* Added SearchQuery and changed biggy-to-vtex conversion into SearchQuery component

* PropTypes and convertOrderBy

* Fix query and searchResult path

* Added search-graphql client

* Remove store from all queries

* Catalog product in autocomplete

* Added unstableProductOrigin count

* Fix suggestionSearches

* Added cacheControl

* Minor fix to compatibility-layer and add suggestions, banners and corrections to searchQuery

* Minor fix to show show-more

Co-authored-by: Hiago Lucas Cardeal <[email protected]>
  • Loading branch information
chrsmutti and hiagolcm authored Dec 27, 2019
1 parent 7bb0ae1 commit 1eab9df
Show file tree
Hide file tree
Showing 43 changed files with 1,953 additions and 900 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Added

- `__unstableProductOrigin` prop into generic app.

## [0.3.6] - 2019-12-26

### Added
Expand Down
7 changes: 4 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ a more complete search experience.
- [Autocomplete](#autocomplete)
- [Order Options](#order-options)
- [Enhanced Search Result](#enhanced-search-result)
- [Plug & Play](#plug--play)
- [Catalog Integration](#catalog-integration)
- [Blocks API](#blocks-api)
- [Configuration](#configuration)
Expand Down Expand Up @@ -124,9 +125,9 @@ passing them to the `hiddenOptions` prop on the `order-by` component.

This app has three new components to improve the search result experience. They are:

- [`did-you-mean`](DidYouMean.md). A possible misspelling correction for the current query.
- [`search-suggestion`](Suggestions.md). A list of search terms similar to the query.
- [`search-banner`](Banner.md). A banner that can be configured by query.
- [`did-you-mean`](DidYouMean.md). A possible misspelling correction for the current query.
- [`search-suggestion`](Suggestions.md). A list of search terms similar to the query.
- [`search-banner`](Banner.md). A banner that can be configured by query.

To add these components to your search-result page, you need to use the `search-result-layout.desktop.enhanced` and `search-result-layout.mobile.enhanced` instead of `search-result-layout.desktop` and `search-result-layout.mobile`. Here is an implementation example:

Expand Down
Loading

0 comments on commit 1eab9df

Please sign in to comment.