-
Notifications
You must be signed in to change notification settings - Fork 839
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
[Docs] Convert all Elastic Charts docs pages to Typescript #7277
Conversation
- convert `PropTypes` to TS types - Inline events to avoid having to type them explicitly
- convert to new API
- some where moved to theme settings instead, others just shouldn't have been there at all in the first place?
- mixed logic is a bit of a headache try to simplify it via a conditional generic
- moving onChange callback to inline removes the need for typing the params explicitly
- which removes the need to type the params explicitly
- remove unused text/title props - make `description` correctly conditional, and add more spacing to the affected card to make up for it
- including obj iteration microperf improvements
- charts lib appears to work now with react 18
5bd19b5
to
c99b5e3
Compare
@nickofthyme Hey hey! Would appreciate your help with the following:
The rest of the commits are pretty straightforward type updates and I'm fairly confident in them, but the above ones are props/APIs owned by your team that I kinda guesstimated by either looking through your changelog or repo. In particular I'm not confident in |
Oh no 😞, not too surprised. Yes, happy to take a look! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preview staging links for this PR:
|
💚 Build Succeeded
History
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM!
Huzzah!! Thank you for the fixes Nick, you rock! |
Summary
Turns out there's a whole lot of out of date APIs that weren't getting caught in our automated Elastic Charts updates, because the files were in JS 😬 This should help our docs keep more up to date with charts APIs.
QA
General checklist
N/A, docs only