RESOLVED FIXED 200801
results.webkit.org: Add ToolTips
https://bugs.webkit.org/show_bug.cgi?id=200801
Summary results.webkit.org: Add ToolTips
Jonathan Bedard
Reported 2019-08-15 17:31:41 PDT
We want tool tip text boxes when the user hovers over scale labels and dots.
Attachments
Patch (32.08 KB, patch)
2019-08-15 17:33 PDT, Jonathan Bedard
no flags
ToolTip for dot (66.26 KB, image/png)
2019-08-16 12:03 PDT, Jonathan Bedard
no flags
ToolTip for scale (86.98 KB, image/png)
2019-08-16 12:04 PDT, Jonathan Bedard
no flags
Patch (30.33 KB, patch)
2019-08-20 08:25 PDT, Jonathan Bedard
no flags
Patch (30.47 KB, patch)
2019-08-20 11:11 PDT, Jonathan Bedard
no flags
Jonathan Bedard
Comment 1 2019-08-15 17:33:48 PDT
Aakash Jain
Comment 2 2019-08-16 07:00:26 PDT
How does it look like? Can you provide any screenshots, or sample run.
Jonathan Bedard
Comment 3 2019-08-16 12:03:55 PDT
Created attachment 376513 [details] ToolTip for dot
Jonathan Bedard
Comment 4 2019-08-16 12:04:14 PDT
Created attachment 376514 [details] ToolTip for scale
Aakash Jain
Comment 5 2019-08-16 12:13:51 PDT
@zhifei can you please have a look at it?
Zhifei Fang
Comment 6 2019-08-16 12:14:46 PDT
(In reply to Aakash Jain from comment #5) > @zhifei can you please have a look at it? I will
Zhifei Fang
Comment 7 2019-08-19 13:58:14 PDT
Comment on attachment 376450 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=376450&action=review > Tools/resultsdbpy/resultsdbpy/view/static/css/tooltip.css:26 > +.tooltip { Based on this: <div class="tooltip-arrow-up" ref="${this.arrow}"></div> <div class="tooltip" ref="${this.ref}"> </div> .tooltip should be .tooltip-content .tooltip-arrow-up and .tooltip-arrow-down should be a mix-in. Using a .tooltip class to deduplicate the style for .tooltip-arrow-up .tooltip-arrow-down .tooltip { z-index: 50; position: absolute; opacity: 80%; width: 0; height: 0; border-style: solid; border-width: 15px; -webkit-background-clip: padding-box; background-clip: padding-box; } .tooltip.arrow-up { border-color: transparent transparent #cccd transparent; } .tooltip.arrow-down { border-color: #cccd transparent transparent transparent; } .tooltip-content { z-index: 50; position: absolute; -webkit-backdrop-filter: blur(10px) brightness(88%); backdrop-filter: blur(10px) brightness(88%); color: var(--boldInverseColor); border: 1px solid #ccc; border-radius: 5px; padding: 5px; font-size: var(--smallSize); list-style: none; max-width: 600px; } > Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js:355 > + {x: dots[currentDotIndex]._dotCenter.x, y: dots[currentDotIndex]._dotCenter.y - 3 * radius / 2}, This kind of supervised me, I guess I may have something wrong somewhere, let's keep ASIS, and I will look deep into it. > Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js:709 > + now.tipPoints = [{ We should put this in the mouse move detect function. Adding more calculation in the render cycle will make it slow. > Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js:753 > + let elementForMouseMove = null; You don't need this, you can access ref's element by using cavansRef.element. Once ref have been mounted, ref.element will have value.
Zhifei Fang
Comment 8 2019-08-19 13:59:41 PDT
unofficially r=me (In reply to Zhifei Fang from comment #7) > Comment on attachment 376450 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=376450&action=review > > > Tools/resultsdbpy/resultsdbpy/view/static/css/tooltip.css:26 > > +.tooltip { > > Based on this: > <div class="tooltip-arrow-up" ref="${this.arrow}"></div> > <div class="tooltip" ref="${this.ref}"> > </div> > > .tooltip should be .tooltip-content > .tooltip-arrow-up and .tooltip-arrow-down should be a mix-in. > Using a .tooltip class to deduplicate the style for .tooltip-arrow-up > .tooltip-arrow-down > > .tooltip { > z-index: 50; > position: absolute; > opacity: 80%; > width: 0; > height: 0; > border-style: solid; > border-width: 15px; > -webkit-background-clip: padding-box; > background-clip: padding-box; > } > > .tooltip.arrow-up { > border-color: transparent transparent #cccd transparent; > } > > .tooltip.arrow-down { > border-color: #cccd transparent transparent transparent; > } > > .tooltip-content { > z-index: 50; > position: absolute; > -webkit-backdrop-filter: blur(10px) brightness(88%); > backdrop-filter: blur(10px) brightness(88%); > color: var(--boldInverseColor); > border: 1px solid #ccc; > border-radius: 5px; > padding: 5px; > font-size: var(--smallSize); > list-style: none; > max-width: 600px; > } > > > Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js:355 > > + {x: dots[currentDotIndex]._dotCenter.x, y: dots[currentDotIndex]._dotCenter.y - 3 * radius / 2}, > > This kind of supervised me, I guess I may have something wrong somewhere, > let's keep ASIS, and I will look deep into it. > > > Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js:709 > > + now.tipPoints = [{ > > We should put this in the mouse move detect function. Adding more > calculation in the render cycle will make it slow. > > > Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js:753 > > + let elementForMouseMove = null; > > You don't need this, you can access ref's element by using > cavansRef.element. Once ref have been mounted, ref.element will have value.
Jonathan Bedard
Comment 9 2019-08-20 08:25:34 PDT
Aakash Jain
Comment 10 2019-08-20 10:29:06 PDT
Comment on attachment 376768 [details] Patch rs=me
Zhifei Fang
Comment 11 2019-08-20 10:54:33 PDT
(In reply to Jonathan Bedard from comment #9) > Created attachment 376768 [details] > Patch unofficially rs=me
Jonathan Bedard
Comment 12 2019-08-20 11:11:15 PDT
WebKit Commit Bot
Comment 13 2019-08-20 11:55:41 PDT
Comment on attachment 376783 [details] Patch Clearing flags on attachment: 376783 Committed r248910: <https://trac.webkit.org/changeset/248910>
WebKit Commit Bot
Comment 14 2019-08-20 11:55:42 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 15 2019-08-20 11:56:18 PDT
Note You need to log in before you can comment on or make changes to this bug.