Closed taylorcjohnson closed 2 months ago
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 1fdb88fbc8c7f0c1738ca41a99202aab6f99ca07:
Sandbox | Source |
---|---|
example-instantsearch-getting-started | Configuration |
example-react-instantsearch-getting-started | Configuration |
example-react-instantsearch-next-app-dir-example | Configuration |
example-react-instantsearch-next-routing-example | Configuration |
example-vue-instantsearch-getting-started | Configuration |
Summary
This is the fourth pull request to add support for no-code banners to the Hits widget (RFC). Building on the recent changes to the
Hits
instantsearch-ui-component
it updates theHits
React InstantSearch widget to support a newbannerComponent
.EMERCH-1421
There will be a follow-on PR to update React InstantSearch.
Result
The hits widget tests have been updated to ensure that the new optional banner component is supported. No styling was applied in the examples or to
instantsearch.css
- that will most likely come in a follow-up PR.Additionally, the code was tested in the
getting-started
example codebase (connected to appId:F4T6CUV2AH
, index:products
in thebeta
environment - where the test rules with a banner consequence exists).Getting Started App (no
bannerComponent
; query:nikon
;nikon camera promotion
alt text and links tohttps://www.nikonusa.com/
):Getting Started App (custom
bannerComponent
; querynikon
):Getting Started App (
bannerComponent={false}
; querynikon
):