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 |
chandlerprall
left a comment
There was a problem hiding this comment.
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 |
chandlerprall
left a comment
There was a problem hiding this comment.
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/ |
chandlerprall
left a comment
There was a problem hiding this comment.
Woohoo! Changes LGTM!
cchaos
left a comment
There was a problem hiding this comment.
🎉 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
useEuiTextDiffcomponent, hook based ontext-diffwhich renders comparison of initial and final text to the userCan take in
timeout,customElement rendereras prop to enhance experience.Screenshots
Checklist