-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Renaming Material UI base form controls #2657
Comments
Hi @eric-burel @yairtal I would be interested in your feedback. |
Ping @EloyID |
HI! |
Hi @EloyID! Thanks for the feedback! Let me explain my logic. The components I am proposing to rename in In my mind
Whether to use
...or
What is everybody's preference? |
One more thing we may want to do is to register all of these components with registerComponent (instead of using |
@ErikDakoda We are more taking the direction of going backward on this, because that's make them very very difficult to maintain, it creates unseen dependencies based on name etc. I would except developer with actual custom need to maintain a fork, that's less magic but in the end maybe as efficient. You might want to check this: VulcanJS/vulcan-next#3 |
@eric-burel It is a good idea to test new and more efficient patterns for Vulcan, and once a workable solution is implemented, tested and documented, to roll it out to the community. In the meantime, though, we have existing apps with tens of thousands of lines of code using current patterns that drew us to Vulcan in the first place. I think it's legitimate to make improvements to existing code using those older patterns. I am only suggesting adding I don't think that contradicts possibly moving away from |
Yeah of course, feel free to apply any modification because in the end you've probably got one of the biggest Vulcan Material UI app currently active, alongside Live for Good. You can reach Eloy directly to discuss that. I've found back the actual ticket I wanted to share: #2549 |
I prefer Form since we already know they are controls (inputs) but we want to know that we override them for the SmartForm I'm really not an expert about the idea of import/registerComponent, but an idea would be
|
Thank you for the feedback, guys, I will move forward with the renaming using the |
@eric-burel I have seen "Magical replacement of components" before - but I will re-read it to better understand where you are going with |
I am going to rename components in
vulcan-ui-material/lib/components/forms/base-controls/
because their names conflict with the style sheet names (used for Global theme overrides) of some core MUI components - for exampleMuiInput
.These components are actually not registered with
registerComponent
, only exported. This would be a breaking change for anyone who has built custom components based on them using import (our codebase at Etail21 has 6 such instances, for example).Here are the proposed changes:
MuiCheckbox
=>CheckboxBase
MuiCheckboxGroup
=>CheckboxGroupBase
MuiFormControl
=>FormControlBase
MuiFormHelper
=>FormHelper
MuiInput
=>InputBase
MuiPicker
=>PickerBase
MuiRadioGroup
=>RadioGroupBase
MuiRequiredIndicator
=>RequiredIndicator
MuiSelect
=>SelectBase
MuiSuggest
=>SuggestBase
MuiText
=>TextBase
Please let me know if you agree with this change or if you would like to suggest an alternative. Thanks!
The text was updated successfully, but these errors were encountered: