-
Notifications
You must be signed in to change notification settings - Fork 363
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
refactor: [M3-8637] - Make EditableText
UI component pure
#11333
base: develop
Are you sure you want to change the base?
refactor: [M3-8637] - Make EditableText
UI component pure
#11333
Conversation
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.
This looks great to me, and the best approach I can think of.
Now, I feel like this brings a bigger question. Until what point do we decide to make a component pure and move it to the UI library?
Asking those question because our definition of pure
perhaps needs clarification. Is a component pure because it does not use a third party package, or is its lack of side effects (btw it should be both!) - but in this case EditableText isn't pure, mainly because of its callbacks.
Cloud Manager UI test results🎉 462 passing tests on test run #5 ↗︎
|
Description 📝
EditableText
frommanager
toui
📁EditableText
to not depend onreact-router-dom
to keep our new component library pure 💧EditableText
that allows consumers to pass aCustomLink
componentPreview 📷
How to test 🧪
Author Checklists
As an Author, to speed up the review process, I considered 🤔
👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support
As an Author, before moving this PR from Draft to Open, I confirmed ✅