-
Notifications
You must be signed in to change notification settings - Fork 841
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
Added useEuiTextDiff hook #3288
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
@miukimiu I don't know why at the same time |
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3288/ |
To test, I've benchmarked benchmarks
results
interpretations
Given those results, my consideration is between Next I'll start reviewing the implementation of EuiTextDiff |
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.
Thanks for your patience! I've run through and added some thoughts, but I really like how you've set it up.
the text is updated when the |
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.
Couple more things, and once Caroline's done with the design pass will take a last review of the docs side.
I've updated the Checklist in the description, remaining items are a changelog entry and couple jest snapshots:
/cc @cchaos if you want to take any more passes at this |
@anishagg17 My final review is PR4U: anishagg17#11 |
- Adding prop comments - Fixing text contrast - Adding snippets - Added “NEW” badge
Oh and don't forget a changelog entry! |
:wq :wqerge branch 'master' of https://github.com/elastic/eui into text
retest |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3288/ |
@cchaos I am really sorry to say that I forgot to push the snaps and updated test file. Now, the tests are working fine and snaps are updated. |
No worries! I'll rerun. Jenkins, test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3288/ |
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.
Woohoo! Changes LGTM!
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.
🎉 Awesome job! LGTM with a small CL change.
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Preview documentation changes for this PR: https://eui.elastic.co/pr_3288/ |
Congrats on getting this merged, @anishagg17 🎉 |
Thank you very much 🚀 |
Summary
stepping towards #1896
Created
useEuiTextDiff
component, hook based ontext-diff
which renders comparison of initial and final text to the userCan take in
timeout
,customElement renderer
as prop to enhance experience.Screenshots
Checklist