-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[Stepper] Add new component #3132
Conversation
@namKolo Wow, that looks awesome 👍 👍 Thanks a lot for your contribution 👍 🎉 This is certainly a good start but there are some things I'd like to point out before other maintainers review too.
You don't really have to take care of these all by your self. I'm sure we can help out. In fact. I think it might not be a bad idea to do a premature merge, before documenting it so we can tackle with it as much as we can, before publishing it. @oliviertassinari @newoga @mbrookes What do you guys think? |
Thank you so much for your attention. I will write Docs for this component soon. |
|
||
contextTypes: { | ||
muiTheme: PropTypes.object, | ||
completedIcon: PropTypes.node, |
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.
To be confirmed, but I think that React is going to allow only one property to be passed with the context.
Can't we use a property here?
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.
Yeah I'd also prefer to find a way to use a prop
here if possible
@namKolo - fantastic work! Thanks for sharing with the community. 👍 Whilst a horizontal stepper isn't part of this PR, I'm wondering how it will be accommodated in the future? Is there an opportunity to separate the logic in the |
@namKolo Very cool and excellent job maintaining code consistency and following the same patterns the other components are using. It makes this much easier to follow. 👍 I'll review code and API soon.
I'm fine with this. I really want to review this closely. It's such a cool component I want to make sure we get it right the first time. 😄 Actually, on second thought, could we have @namKolo work on some examples in docs? I recommend we can create a route for it without linking to it on the |
@newoga thanks for your feedbacks, i will follow convention. And I am working on examples for this component in docs. I will push it soon. |
the step is last step or not (which passed by automatically from Steps wrapper parent, no need | ||
to pass directly) | ||
*/ | ||
isLastStep: PropTypes.bool, |
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.
@alitaheri Are props like this what we're planning to use the @internal
tag for? Or @ignore
?
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.
it's @ignore
😁
@newoga i pushed the example as you said. |
@mbrookes i will try a |
Great, thanks! |
@namKolo It's 3AM my time, I just tried your branch out and I think this is super cool! I'm sorry it's taking us some time to review, I promise this isn't being ignored. I haven't had a chance to thoroughly go over the code an API but it's on my list. |
@newoga thank you so much for your reviewing :) By the way, I will push Horizontal Stepper soon. It's nearly finished |
@namKolo Awesome! |
children: PropTypes.node, | ||
|
||
/** | ||
*Override the inline-styles of div which contains all the children include control button groups |
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.
Sorry! This is a Nitpick, could you add a space in each line before starting the comment? 😁
/**
*Good
*/
/**
* Better
*/
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.
Let 's me add that space =D
@oliviertassinari @alitaheri Should we just have @namKolo write the I'm noticing now that he already wrote Edit: @namKolo, just to give you some context, we're going to moving towards functional and class based components, and away from mixins. So even though you did an excellent job following the general code style, it's something we're planning on moving away from soon. |
@newoga it means i shouldn't use mixin any more ? Get them through context types? |
@newoga Yeah this is surprising well done for a new component and a first contribution. well done @namKolo 👍 👍
I think it would be better if we did it all in one big PR so we can be sure that approach has no caveats. for now it's better to stick to the old ways until we make sure it works as expected 😁 |
Fair enough, ignore what I said @namKolo! |
@alitaheri Just for clarification, do you think the Only reason why I asked is because I started doing the |
How do you mean? O.o
That's not related to the components. I meant for the components, because it's gonna be one huge |
Could be a browser compatibility issue (Google Chrome), I'll have another look after the next update. Just a gentle reminder, there are a couple of comments still to be addressed: https://github.com/callemall/material-ui/pull/3132/files Also, please check this off in the ROADMAP so that it gets updated when this gets merged. |
@namKolo Feel free to reach out if you need any additional help wrapping this up. I'm here as a resource for you. |
@nathanmarks 👍 thank. P/S I figured out why i failed. I forgot to change stepper -> Stepper in some places. Pls ignore this comment |
horizontal: PropTypes.bool, | ||
|
||
/** | ||
* Callback function that is fired when the header of step is touched. |
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.
"...when the step header is touched."
Sorry, missed this one.
Okay, I think this is beyond ready to merge. 👍 @namKolo you've been very patient with all our suggestions. Please squash (you can make the commit title match the PR title), then if there's anything else we can pick it up after it's merged. |
👍 nice, i will squash soon |
I squashed. If there are any suggestions or any feedback, please tell me. Thanks |
Yee haw! 👍 Thanks so much @namKolo 🎉 ✨ |
This is a great addition to the collection 👍 Thanks a lot for your awesome work @namKolo 😍 😍 🎉 🎉 🍻 👍 |
@namKolo Great job! You're welcome to contribute any time! 😄 🎉 |
Hey, when we will be able to use the stepper component in material-ui? Really looking forward to it! Thanks! |
@igorpreston You can use it in |
Nice work @namKolo - a very critical component for our UX flow. Thank you very much for doing this! |
@newoga Hello all and i'd like to say thanks for all the hard work! I'm very excited to try it out but unfortunately have had no luck after a few hours of trying to integrate it to a project. Very likely could be due to my inexperience porting from part a commit but experienced a few errors. Thanks again! |
Please ask in SO or gitter. |
[Stepper] Add new component
Closes #2722.
I just created**_ Vertical Stepper_** include animation, linear step, non-linear step, optional step.
To be clear and easy to handle logic how to active a step and when the step is completed, the component delegate the implementation of those function to user(who use this component) to handle logic by themselves.
This is a picture to demonstrate how it work
Please take a look at this component.
Thank you so much :)