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

fix(types): improve UiState types #3763

Merged
merged 1 commit into from
May 13, 2019
Merged

Conversation

francoischalifour
Copy link
Member

This adds types for the UI state.

@francoischalifour francoischalifour requested a review from a team May 7, 2019 14:16
@ghost ghost requested review from eunjae-lee and Haroenv and removed request for a team May 7, 2019 14:16
@algobot
Copy link
Contributor

algobot commented May 7, 2019

Deploy preview for instantsearchjs ready!

Built with commit 273f69a

https://deploy-preview-3763--instantsearchjs.netlify.com

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.

I guess it's better than nothing indeed

Copy link
Contributor

@eunjae-lee eunjae-lee left a comment

Choose a reason for hiding this comment

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

LGTM

@francoischalifour francoischalifour merged commit e8ea57b into develop May 13, 2019
@francoischalifour francoischalifour deleted the fix/types-UiState branch May 13, 2019 08:27
eunjae-lee pushed a commit that referenced this pull request May 14, 2019
# [3.5.0](v3.4.0...v3.5.0) (2019-05-14)

### Bug Fixes

* **hitsPerPage:** improve warning for missing state value ([#3707](#3707)) ([93d8432](93d8432))
* **numericMenu:** prevent refinement reset on checked radio click ([#3749](#3749)) ([e4a6e75](e4a6e75))
* **rangeSlider:** round the slider pit value ([#3758](#3758)) ([6edee3e](6edee3e)), closes [#2904](#2904)
* **types:** improve UiState types ([#3763](#3763)) ([e8ea57b](e8ea57b))
* **voice:** import correct noop ([#3766](#3766)) ([6a80422](6a80422))

### Features

* **voiceSearch:** add connector and widget ([#3601](#3601)) ([21e4d81](21e4d81))
refinementList?: {
[attribute: string]: string[];
};
numericRefinementList?: {
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 a numericRefinementList widget.

range?: {
[attribute: string]: string;
};
starRating?: {
Copy link
Contributor

Choose a reason for hiding this comment

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

The name is ratingMenu not starRating.

@@ -31,7 +31,45 @@ interface DisposeOptions {
}

export type UiState = {
Copy link
Contributor

Choose a reason for hiding this comment

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

The type does not contain: geoSearch, numericMenu.

numericRefinementList?: {
[attribute: string]: number;
};
numericSelector?: {
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 a numericSelector widget.

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.

5 participants