Skip to content

fix(breadcrumb): use hierarchical facets only #6645

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

Merged
merged 7 commits into from
Jun 16, 2025

Conversation

shaejaz
Copy link
Contributor

@shaejaz shaejaz commented Jun 9, 2025

Summary
Breadcrumb connector accesses all facet names when generating the breadcrumb list. This results in a menu widget breaking functionality. This PR restricts the breadcrumb connector to only use attribute from the hierarchical menu to prevent this.

CR-8481

Result

Breadcrumbs now only shows hierarchical facets.

This also initializes an 'interaction' shared test suite which tests functionality of widgets used in tandem (only breadcrumbs + hierarchical menu + menu for now)

Codesandbox: https://codesandbox.io/p/sandbox/example-react-instantsearch-getting-started-l7y5j9

Copy link

codesandbox-ci bot commented Jun 9, 2025

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 50d3bb2:

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

@shaejaz shaejaz changed the title wip breadcrumb hierachical menu fix fix(breadcrumb): use hierarchical facets only Jun 10, 2025
@shaejaz shaejaz marked this pull request as ready for review June 11, 2025 11:13
@shaejaz shaejaz requested review from dhayab and Haroenv June 11, 2025 11:14
Copy link
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix looks great, code seems to always have assumed there's only one hierarchical menu on the page before now

@shaejaz shaejaz requested a review from Haroenv June 16, 2025 09:18
@Haroenv Haroenv merged commit c9e50d9 into master Jun 16, 2025
14 checks passed
@Haroenv Haroenv deleted the fix/breadcrumb-hierarchical-menu branch June 16, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants