react-pwa-reference-storefront
react-pwa-reference-storefront copied to clipboard
[WIP] Feature/bloomreach search results page WIP - DO NOT MERGE
Description:
This PR implements bloomreach search. Once bloomreach is enabled in ep.config.json the search bar presented will do a keyword search on an endpoint described here: https://help.bloomreach.com/display/BRINT/Product+search+API.
The search results page will be similar in UI to the original search results with two differences:
- The facets are collapsible.
- The facets will contain the number of results that a particular facet will filter.
Bloomreach modules will now each have their own d.ts files outlining their types. No types will be found in the .tsx files. (should refactor all modules to follow this pattern as it is cleaner).
The configurations have been refactored in this PR so the bloomreach autosuggestions component will also need to be re-tested.
Linting:
- [ ] No linting errors
Component Updates:
- [ ] Component package requires update on npm @elasticpath/store-components
Tests:
- [ ] E2E tests (npm test run with
e2e) - [ ] Manual tests
- Paste these BR settings: WIP -- Change the bloomreach settings here...
"bloomreach": {
"env": {
"baseUri": "http://core.dxpapi.com/api/v1/core/?",
"accountId": "account_id=6226",
"authKey": "auth_key=fcao6uq86z58xup0",
"domainKey": "domain_key=elastic_path",
"requestId": "request_id=1239723156472",
"brUID2":"_br_uid_2=uid%3D8030319374785%3Av%3D11.8%3Ats%3D1536857546532%3Ahc%3D111",
"url": "url=www.bloomique.com",
"refurl": "ref_url=www.bloomique.com"
},
"keywordSearch": {
"enable": false,
"requestType": "request_type=search",
"rows": "rows=10",
"start": "start=0",
"facetLimit": "facet.limit=20",
"fl": "fl=pid%2Ctitle%2Cbrand%2Cprice%2Csale_price%2Cpromotions%2Cthumb_image%2Csku_thumb_images%2Csku_swatch_images%2Csku_color_group%2Curl%2Cprice_range%2Csale_price_range%2Cdescription",
"searchType": "search_type=keyword"
},
"suggestions": {
"enable": false,
"baseUri": "http://suggest.dxpapi.com/api/v1/suggest/?",
"requestType": "request_type=suggest"
}
},
- Test the keyword search
- Test the facet filtering
- Start up storybook and notice that rudimentary stories have been placed in
Documentation:
- [ ] Requires documentation updates