chore(examples): add recommend view to showcase with nova styles#7045
Open
FabienMotte wants to merge 4 commits into
Open
chore(examples): add recommend view to showcase with nova styles#7045FabienMotte wants to merge 4 commits into
FabienMotte wants to merge 4 commits into
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 9 |
TIP This summary will be updated as you push new changes.
More templates
algoliasearch-helper
instantsearch-ui-components
instantsearch.css
instantsearch.js
react-instantsearch
react-instantsearch-core
react-instantsearch-nextjs
react-instantsearch-router-nextjs
vue-instantsearch
commit: |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new “Recommend” experience to the JS showcase and ships the missing Nova theme styling needed for the Recommend widgets (notably TrendingFacets) to render consistently.
Changes:
- Added a new
RecommendViewin the showcase and wired it into the experiences list inApp.tsx. - Introduced showcase widget wrappers for Recommend widgets (FrequentlyBoughtTogether, RelatedProducts, LookingSimilar, TrendingItems, TrendingFacets).
- Added Nova theme styles for
TrendingFacets, plus shared Nova title styling for all 5 recommend widgets, and reset support for.ais-TrendingFacets-list.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/instantsearch.css/src/widgets/_trending-facets.scss | Adds Nova styling for TrendingFacets list/chip layout. |
| packages/instantsearch.css/src/themes/reset.scss | Resets .ais-TrendingFacets-list like other widget list elements. |
| packages/instantsearch.css/src/themes/nova.scss | Includes the new trending-facets widget styles in Nova build. |
| packages/instantsearch.css/src/shared/_nova-common.scss | Normalizes recommend widget title styling in Nova. |
| examples/js/showcase/src/views/RecommendView.tsx | New Recommend view that starts an InstantSearch instance and renders recommend widgets via WidgetSwitcher. |
| examples/js/showcase/src/components/widgets/WidgetTrendingItems.tsx | Wrapper for trendingItems using carousel templates. |
| examples/js/showcase/src/components/widgets/WidgetTrendingFacets.tsx | Wrapper for trendingFacets with a simple item template. |
| examples/js/showcase/src/components/widgets/WidgetRelatedProducts.tsx | Wrapper for relatedProducts using carousel templates. |
| examples/js/showcase/src/components/widgets/WidgetLookingSimilar.tsx | Wrapper for lookingSimilar using carousel templates. |
| examples/js/showcase/src/components/widgets/WidgetFrequentlyBoughtTogether.tsx | Wrapper for frequentlyBoughtTogether using carousel templates. |
| examples/js/showcase/src/App.tsx | Adds a new “Recommend” experience entry with icon + view. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
edae25e to
0d676f7
Compare
219b3b7 to
c54c1b9
Compare
Base automatically changed from
refactor/shared-carousel-styles
to
fix/recommend-trending-facets-query-parameters
May 20, 2026 13:18
e6314be to
5c26172
Compare
0d676f7 to
0e768e7
Compare
c54c1b9 to
7ad6105
Compare
7ad6105 to
b21b933
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
RecommendViewto the JS showcase wiring up the four recommend widgets (FrequentlyBoughtTogether, RelatedProducts, LookingSimilar, TrendingItems, TrendingFacets) and ships the nova styles needed to render them cleanly.Stacked on top of #7044.
FX-3779
Includes:
RecommendViewandWidget*wrappers in the showcase.widgets/_trending-facets.scsspartial (chip layout for TrendingFacets — nova was the only theme without any TrendingFacets styles)._nova-common.scsscovering all 5 recommend widgets, mirroring the existing MenuSelect/HitsPerPage/SortBy precedent. Stops the default<h3>rendering as browser-bold inside each card..ais-TrendingFacets-listadded to the existing list reset block.No hover state on the chip — items are inert by default; consumers wrapping items in
<a>/<button>style hover themselves.Result
In the showcase nova theme, the recommend section now renders with normalized titles across all 5 widgets, and TrendingFacets shows a wrapped row of subtle outlined pills.