-
Notifications
You must be signed in to change notification settings - Fork 841
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
WIP Convert NavDrawer to TypeScript #2772
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
This is a WIP. I'm at a point where I could use some help and eyes. There are some choices I made that I'm unsure are correct. And then there a few choices left to be made that I wasn't sure how to choose. |
97864ce
to
9852ebf
Compare
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.
Took an initial pass, didn't see anything major. Most comments are around EUI's typescript component patterns.
Let's address the any
and unknown
types once things are a bit cleaner / more final. Looks like it will be solved with a handful of generics.
There are still about 5 locations of TypeScript errors. Thanks for the detailed feedback. Tried to address all of it. Please mark as resolved any comments you feel were adequately addressed. |
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.
Thanks for the updates!
I've added one new request, and closed the requests that I saw in effect, though there are a handful of unresolved requests/comments still pending.
@dannyfritz Know you're still busy, just checking in :) |
❌ Author of the following commits did not sign a Contributor Agreement: Please, read and sign the above mentioned agreement if you want to contribute to this project |
There are still 2 errors left, but I think someone should take those 2 over the finish line for me. They are either quirks in how the library is using HTML elements, or the HTML elements assigned to the component is too specific. |
72e5332
to
081c41a
Compare
Thanks @dannyfritz ! We can address the remaining issues. Could sign our Contributor License Agreement at https://www.elastic.co/contributor-agreement using the email address associated with your GitHub account? |
I too ran into this very problem today (that its not exposed in eui.d.ts.) |
@dimitropoulos any interest in taking the rest of this one on? No pressure to, but if you're still looking for things to typescript-ify... :) |
I'd be more than happy to help out! My 🔝 priority is #2891 right now because it's so big (and so close!), but after that's done I can make my way here next! That said, I have two other components I'm working on for material-ui, so I haven't quite figured out how I'm gonna prioritize which ones I work on (especially with my nights-and-weekends time being so restricted due to the recent global events). By all means, if someone has time to get to it first, I won't be offended. It'd likely (comparing to the other ones I've done so far) be a one-night affair (or so), so no worries about toe-stepping! 😸 |
@chandlerprall can I work upon this? |
I (mostly) finished it this weekend but haven't had a chance to push yet - maybe gimme until tonight @anishagg17 and if I (for whatever reason) can't get the PR up, then please feel free! |
@anishagg17: I pushed it #3268 (although I wrote the code a few days ago, I wanted to notate my changes (which takes some time) so that's why I hadn't pushed it until now - thanks for your patience everyone!) |
Regarding #2658
Converting NavDrawer to TypeScript.