Skip to content
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

feat(current-refinements): provide indexId of refinements in transformItems #5546

Merged
merged 2 commits into from Mar 15, 2023

Conversation

dhayab
Copy link
Member

@dhayab dhayab commented Mar 14, 2023

Summary

The currentRefinements widget provides a way to transform/filter refined items to be returned, which is useful in multi-indices context, to potentially remove refinements from another index.

This works well when indices are different, but in the context of multi-indices targeting the same index with different configuration, it is impossible to easily determine which refinements are from where.

This PR adds a indexId parameter to the items provided in transformItems, which solves this issue.

@dhayab dhayab requested review from a team, FabienMotte and aymeric-giraudet and removed request for a team March 14, 2023 18:20
@dhayab dhayab changed the title feat(connectCurrentRefinements): provide indexId of refinements in transformItems feat(current-refinements): provide indexId of refinements in transformItems Mar 14, 2023
@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 14, 2023

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 820e263:

Sandbox Source
InstantSearch.js Configuration
react-instantsearch-app Configuration
example-react-instantsearch-hooks-default-theme Configuration
example-vue-instantsearch-default-theme Configuration

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.

Well I guess typescript needs to pass first, but code looks good

@dhayab dhayab merged commit 89781db into master Mar 15, 2023
13 checks passed
@dhayab dhayab deleted the feat/current-refinements-items-indexid branch March 15, 2023 09:41
Haroenv pushed a commit that referenced this pull request Mar 16, 2023
* fix: add aria-hidden=true to all instances of ais-SearchBox-submitIcon

* fix: add aria-hidden=true to all instances of ais-SearchBox-loadingIcon

* fix: add aria-hidden=true to all instances of ais-SearchBox-resetIcon

* fix: add remaining svg aria-hidden labels to components and IS search-box widget

* chore: move aria-hidden attrs to top for a-z order

* feat(current-refinements): provide indexId of refinements in transformItems (#5546)

* chore: more aria-hidden attrs to top for a-z order

---------

Co-authored-by: Dhaya <154633+dhayab@users.noreply.github.com>
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.

None yet

2 participants