-
Notifications
You must be signed in to change notification settings - Fork 484
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
Add a copy icon to entries in KeyValuesTable (#204) #292
Add a copy icon to entries in KeyValuesTable (#204) #292
Conversation
Signed-off-by: Everett Ross <[email protected]>
the copy icon can be animated to transform to a green checkbox. Q: in what format is the tag being copied? I.e. how does the above example look after pasting it as text? |
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.
I would suggest using the tooltip on the icon to state / indicate:
- "Copy JSON" on mouseover
- "Copied to clipboard" on click
- Set a
mouseLeaveDelay
to something like 500ms (or so) to let the user more easily read the message
- Set a
What do you think?
Signed-off-by: Everett Ross <[email protected]>
@yurishkuro the
The |
@yurishkuro @tiffon I went with the tooltip over the icon change as the tooltip will help with clarity for both before and after the copy event. |
…ltip hide Signed-off-by: Everett Ross <[email protected]>
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.
Changes look great. A few small comments. There is an issue with the yarn.lock
file.
packages/jaeger-ui/src/components/TracePage/TraceTimelineViewer/SpanDetail/KeyValuesTable.js
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/TracePage/TraceTimelineViewer/SpanDetail/KeyValuesTable.css
Outdated
Show resolved
Hide resolved
Signed-off-by: Everett Ross <[email protected]>
Signed-off-by: Everett Ross <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #292 +/- ##
==========================================
- Coverage 82.23% 82.23% -0.01%
==========================================
Files 141 141
Lines 3101 3112 +11
Branches 645 647 +2
==========================================
+ Hits 2550 2559 +9
- Misses 437 439 +2
Partials 114 114
Continue to review full report at Codecov.
|
…gertracing#292) * Add a copy icon to entries in KeyValuesTable (jaegertracing#204) Signed-off-by: Everett Ross <[email protected]> * Add a tooltip to copy icon in KeyValuesTable Signed-off-by: Everett Ross <[email protected]> * Fix copied test name, add test for KeyValuesTable state change on tooltip hide Signed-off-by: Everett Ross <[email protected]> * Add eslint rule to prevent unnecessary braces in jsx Signed-off-by: Everett Ross <[email protected]> * Add classname to tr to remove element selector, fix yarn.lock Signed-off-by: Everett Ross <[email protected]> Signed-off-by: Everett Ross <[email protected]>
…gertracing#292) * Add a copy icon to entries in KeyValuesTable (jaegertracing#204) Signed-off-by: Everett Ross <[email protected]> * Add a tooltip to copy icon in KeyValuesTable Signed-off-by: Everett Ross <[email protected]> * Fix copied test name, add test for KeyValuesTable state change on tooltip hide Signed-off-by: Everett Ross <[email protected]> * Add eslint rule to prevent unnecessary braces in jsx Signed-off-by: Everett Ross <[email protected]> * Add classname to tr to remove element selector, fix yarn.lock Signed-off-by: Everett Ross <[email protected]> Signed-off-by: vvvprabhakar <[email protected]>
…gertracing#292) * Add a copy icon to entries in KeyValuesTable (jaegertracing#204) Signed-off-by: Everett Ross <[email protected]> * Add a tooltip to copy icon in KeyValuesTable Signed-off-by: Everett Ross <[email protected]> * Fix copied test name, add test for KeyValuesTable state change on tooltip hide Signed-off-by: Everett Ross <[email protected]> * Add eslint rule to prevent unnecessary braces in jsx Signed-off-by: Everett Ross <[email protected]> * Add classname to tr to remove element selector, fix yarn.lock Signed-off-by: Everett Ross <[email protected]> Signed-off-by: Everett Ross <[email protected]> Signed-off-by: vvvprabhakar <[email protected]>
## Which problem is this PR solving? - Resolves #1503 ## Short description of the changes - Adds a second Copy icon that copies value only - Change Copy JSON icon to `snippets`, to be visually different - Reduce fade-out time for tooltip Original Copy JSON was added in #292 / #312. --------- Signed-off-by: Yuri Shkuro <[email protected]>
Which problem is this PR solving?
Short description of the changes
(again, my converted gifs have a weird background color issue, looks fine in the browser and .webm recording)
Copied JSON:
I went with the copy icon over the word copy since I believe it is fairly ubiquitous, but open to changing.