You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Breaking change: The style of TextField got totally redesigned.
How should we do:
Add a new component called TextInput according to the design guideline.
Add description on TextField storybook about this component that has been deprecated from the design system and what is the alternative.
Announce the change on slack after the merge.
Why don't we remove TextField:
Because TextField is still used at many places and probably has feature or bug request in the future. Therefore, we should still maintain the TextField in glints-aries.
Why:
As we are doing design sync stuff, we will have to change the style or behavior which might cause a breaking change.
How:
For any potential breaking change, before we merge the change into v4, we should
console.warningto warn the developer about the legacy props.@deprecatedtag so the other developers can easily be aware of it from IDE.So the breaking changes won't break the production or block the other features and we won't be forced to migrate it on the projects asap.
After we migrate the breaking change on projects and merge the branch into staging, we can start to remove the legacy codes on glints-aries.
Example:
The two examples below both blocked the other features release before because we didn't make the change be backward compatible.
Color:
src/Utils/Colors.ts.TextField:
TextFieldgot totally redesigned.TextInputaccording to the design guideline.TextFieldstorybook about this component that has been deprecated from the design system and what is the alternative.TextField:Because
TextFieldis still used at many places and probably has feature or bug request in the future. Therefore, we should still maintain theTextFieldinglints-aries.