-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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: Moves Fade component into TableElement #13458
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13458 +/- ##
==========================================
+ Coverage 72.74% 73.48% +0.73%
==========================================
Files 906 604 -302
Lines 45654 21249 -24405
Branches 5516 5515 -1
==========================================
- Hits 33212 15614 -17598
+ Misses 12232 5508 -6724
+ Partials 210 127 -83
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
I have mixed feelings about this. I know the component is negligible in size and purpose but I think I like the fact that you can use it as a small utility component. Either way, the code LGTM and it can go if it reaches consensus.
@geido I would say that when you look at the component's name, you can imagine a reusable component used in multiple places. But when you look at the implementation and props you will see that is just a div with almost no behavior and used only in |
I have a very strong opinion about not assembling components (to be honest i will always be against it). But I don't see anything wrong with the code. I just disagree with the PR's goal. |
For me, always is a very strong word in the context of software development. I tend to analyze case by case considering the context.
Thank you for the search. That's a strong indicator that in fact, we should have a
I understand that if we already have a component available that will prevent duplications, but this does not mean that every little bit of code that we do should be in the components folder. Generally, when we have classical components like Button we start there, but a lot of components evolve to a shared component and end up in the components folder by merit. I think that this is the case with Fade. If we identify multiple places with this behavior and resolve all use cases using a nice API, then we can move it there. |
These components have some "fade behavior":
There are also "fade effects" in less files that I was unable to find the components that use them. Again, this search was very superficial (I searched for the name "fade" And I did a very simple reading of the code). If we look for "transition" + "opacity" effects, I believe we will find more. |
I agree 100%, that's why I said I have a very strong opinion in this case hahaha But again, this is my opinion and not a pattern of this project, you are totally free to disagree and this is not a block for the merge. |
/testenv up |
@rusackas Ephemeral environment spinning up at http://18.236.206.238:8080. Credentials are |
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.
I think the way this fade component is used, with all of the state management and so forth, is probably more complex than it needs to be. We can circle back later, but I'm willing to bet a refactor of this could greatly simplify things.
TL;DR: LGTM.
Ephemeral environment shutdown and build artifacts deleted. |
SUMMARY
Moves
Fade
component intoTableElement
. It didn't make the cut to be a component in itself 😆.TEST PLAN
1 - Execute
TableElement
tests.2 - All tests should pass.
@rusackas @junlincc
ADDITIONAL INFORMATION