-
Notifications
You must be signed in to change notification settings - Fork 367
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
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.
Thanks for the help 🙏 Ready for another round of reviews @abailly-akamai @jaalah-akamai |
Coverage Report: ❌ |
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.
Nice!!
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.
✅ storybook
✅ cloud manager - didn't catch any regressions
thank you!
Cloud Manager UI test results🎉 469 passing tests on test run #9 ↗︎
|
Cloud Manager E2E Run #6988
Run Properties:
|
Project |
Cloud Manager E2E
|
Branch Review |
develop
|
Run status |
Passed #6988
|
Run duration | 26m 11s |
Commit |
b4943466e7: refactor: [M3-8637] - Make `EditableText` UI component pure (#11333)
|
Committer | Banks Nussman |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
2
|
Skipped |
0
|
Passing |
469
|
View all changes introduced in this branch ↗︎ |
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 ✅