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

chore: better select prop types to match antd exports #486

Merged
merged 9 commits into from
Nov 13, 2024

Conversation

tibuurcio
Copy link
Collaborator

@tibuurcio tibuurcio commented Nov 5, 2024

Summary

This PR makes Aquarium Select component match the way Antd exports its props so we are able to use generics while developing with the Select component.

It also fixes the suffixIcon to be the dropdownOpen icon from Aquarium.

Testing Plan

  • Was this tested locally? If not, explain why.

Reference Issue (For mParticle employees only. Ignore if you are an outside contributor)

@ilyusha
Copy link
Collaborator

ilyusha commented Nov 5, 2024

Review Forge

Click Here for AI Insights

Copy link

github-actions bot commented Nov 5, 2024

PR Preview Action v1.4.8
Preview removed because the pull request was closed.
2024-11-13 17:56 UTC

## [1.34.1-chore-better-select-prop-types.1](v1.34.0...v1.34.1-chore-better-select-prop-types.1) (2024-11-05)

### Bug Fixes

* (styles) update font weight of modal ([#484](#484)) ([c2842ac](c2842ac))
* update release env variable ([#483](#483)) ([180c043](180c043))
Copy link
Contributor

@ajenkins-mparticle ajenkins-mparticle left a comment

Choose a reason for hiding this comment

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

This is great, but the name of this PR hides the fact that you've defaulted the suffixIcon for the Select to something specific. It's a good thing for consistency, but probably should add a note about that.

@tibuurcio
Copy link
Collaborator Author

This is great, but the name of this PR hides the fact that you've defaulted the suffixIcon for the Select to something specific. It's a good thing for consistency, but probably should add a note about that.

Oh definitely, thanks for pointing that out. I've been working on this since last week and totally forgot I had done that.

Comment on lines +24 to +25
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error Introduced when we properly typed the Select value and option generics from Aquarium. Need to double check to fix this.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jared-dickman @ZoeAstra would any of you guys be able to take a quick look at this? I didn't want to change anything without the proper context. Ideally the <Select> used here in Qualifier would be typed and hopefully this problem would be avoided 🙌🏼

@tibuurcio tibuurcio merged commit acc0760 into main Nov 13, 2024
9 checks passed
@mparticle-automation
Copy link
Collaborator

🎉 This PR is included in version 1.35.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants