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(ts): convert RefinementList component to TypeScript #4702

Merged
merged 11 commits into from
Apr 6, 2021

Conversation

yannickcr
Copy link
Contributor

Summary

Converts the RefinementList component to TypeScript

@yannickcr yannickcr requested review from a team, eunjae-lee and shortcuts and removed request for a team March 29, 2021 16:20
@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 29, 2021

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 90dc9b9:

Sandbox Source
InstantSearch.js Configuration

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@yannickcr yannickcr force-pushed the feat/ts-refinementlist branch from e40a200 to 837dc73 Compare March 29, 2021 16:26
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.

very impressive!

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@yannickcr yannickcr requested a review from Haroenv March 30, 2021 16:55
Base automatically changed from feat/ts-ratingmenu to master March 31, 2021 09:06
@yannickcr
Copy link
Contributor Author

@Haroenv Here's the attempt to set RefinementList as a Generic (to pass templateProps and cssClasses) 232974f

Let me know what you think 🙂

@yannickcr yannickcr requested a review from Haroenv April 1, 2021 13:48
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.

this looks good, but since it's a big pr, let's make sure it's reviewed by someone else too

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.

Massive work. Looks good to me. Thanks Yannick!

@Haroenv Haroenv merged commit fd562de into master Apr 6, 2021
@Haroenv Haroenv deleted the feat/ts-refinementlist branch April 6, 2021 13:49
@Haroenv
Copy link
Contributor

Haroenv commented Apr 8, 2021

something here broke the RatingMenu component, will investigate!

edit: unrelated after all #4728

Haroenv added a commit that referenced this pull request Jan 11, 2024
Handle the clicks in the RefinementList component (used by RatingMenu) when the clicked element isn't a `HTMLElement`.

The fixed behaviour is fairly finicky to reproduce, you need to click exactly on the "star image", if you click between them or on the text, no issue existed before this PR either.

The removed check was introduced in #4702, when translating the component to TypeScript.

This implements a barebones CTS for RatingMenu, including being fully skipped for React InstantSearch, as the widget doesn't exist.
Haroenv added a commit that referenced this pull request Jan 16, 2024
* fix(RatingMenu): handle clicks in svg

Handle the clicks in the RefinementList component (used by RatingMenu) when the clicked element isn't a `HTMLElement`.

The fixed behaviour is fairly finicky to reproduce, you need to click exactly on the "star image", if you click between them or on the text, no issue existed before this PR either.

The removed check was introduced in #4702, when translating the component to TypeScript.

This implements a barebones CTS for RatingMenu, including being fully skipped for React InstantSearch, as the widget doesn't exist.

* lint
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

3 participants