Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Conversation

@Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Oct 9, 2018

@Haroenv Haroenv requested a review from a team October 9, 2018 16:21
@algobot
Copy link

algobot commented Oct 9, 2018

Deploy preview for instantsearch-css ready!

Built with commit a5a3c17

https://deploy-preview-86--instantsearch-css.netlify.com

Copy link
Contributor

@francoischalifour francoischalifour left a comment

Choose a reason for hiding this comment

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

Note that the excludedAttributes array is used to filter includedAttributes, and then the whole thing is transformed with transformItems.

@Haroenv
Copy link
Contributor Author

Haroenv commented Oct 9, 2018

Yes, that makes sense to me. We can move to the better descriptions once we did the API ref docs

@Haroenv Haroenv merged commit 5beaa15 into master Oct 9, 2018
@Haroenv Haroenv deleted the feat/current-refinements-reset branch October 9, 2018 16:34
- name: excludedAttributes
description: Attributes not to clear
- name: includedAttributes
description: Attributes to show exclusively
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't have this one on CurrentRefinements?

Copy link
Contributor

@francoischalifour francoischalifour Oct 9, 2018

Choose a reason for hiding this comment

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

We do have it for both ClearRefinements (algolia/instantsearch#3114) and CurrentRefinements (yet to be implemented).

Copy link
Contributor

@samouss samouss Oct 9, 2018

Choose a reason for hiding this comment

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

Yep but it's not written in the specs.

Copy link
Contributor

Choose a reason for hiding this comment

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

You're right. Will add it!

- name: excludedAttributes
description: list of attributes not to show
- name: clearsQuery
- name: includesQuery
Copy link
Contributor

@samouss samouss Oct 9, 2018

Choose a reason for hiding this comment

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

We now have two different option names includesQuery and clearsQuery?

Copy link
Contributor

Choose a reason for hiding this comment

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

We can rename it to includesQuery in ClearRefinements.

Copy link
Contributor

Choose a reason for hiding this comment

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

To me it feels a bit redundant to have excludes, includes and includesQuery. It could be implemented as includes with a wildcard for example (probably not the best though - see below). An other solution is to have the value of the query present by default in CurrentRefinements & ClearRefinements.

includes = ['*', 'query']

Copy link
Contributor

Choose a reason for hiding this comment

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

That's a new pattern in InstantSearch I think?
I reckon it's a good compromise. Maybe calling this option attributes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That would be confusing because that’s the previous option name no?

Copy link
Contributor

@samouss samouss Oct 9, 2018

Choose a reason for hiding this comment

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

We should still be able to excludes & includes with only attributes we can't. I agree with @Haroenv on the question about the name of the options. attributes will be a bit confusing regarding the other widgets.

sarahdayan pushed a commit to algolia/instantsearch that referenced this pull request Dec 12, 2022
sarahdayan pushed a commit to algolia/instantsearch that referenced this pull request Dec 14, 2022
sarahdayan pushed a commit to algolia/instantsearch that referenced this pull request Dec 14, 2022
…search-specs#86)

* feat(CurrentRefinements): add query and remove reset

* feat: includedAttributes
sarahdayan pushed a commit to algolia/instantsearch that referenced this pull request Dec 14, 2022
…search-specs#86)

* feat(CurrentRefinements): add query and remove reset

* feat: includedAttributes
sarahdayan pushed a commit to algolia/instantsearch that referenced this pull request Dec 15, 2022
…search-specs#86)

* feat(CurrentRefinements): add query and remove reset

* feat: includedAttributes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants