-
Notifications
You must be signed in to change notification settings - Fork 4
Replace hospscotch tooltip JS library for QC Plots with tippy #1172
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
base: develop
Are you sure you want to change the base?
Conversation
labkey-jeckels
left a comment
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.
Can we remove hopscotch as a dependency from this module? It looks like qcTrendPlotReport.jsp still references it. qcSummary.jsp does too. The latter looks like it's still actively using it. There are other references to hopscotch in the codebase - could they be replaced (they may just be CSS style names, etc)
Will do, I just replaced the qc plots data points tooltip, will replace other usage too. |
labkey-jeckels
left a comment
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.
Code is looking good, though see comments.
We should get manual testing on this before merging. I haven't had a chance to do that yet.
| { | ||
| Locator.XPathLocator hopscotchBubble = Locator.byClass("hopscotch-bubble-container"); | ||
| return hopscotchBubble.append(Locator.byClass("hopscotch-bubble-content").append(Locator.byClass("hopscotch-content").withText())); | ||
| return Locator.tagWithClass("div", "qc-plot-hover-panel"); |
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.
Seems redundant with getBubble() now.
| Locator.CssLocator svgBackgrounds = Locator.css("svg g.brush rect.background"); | ||
| Locator.XPathLocator hopscotchBubble = Locator.byClass("hopscotch-bubble-container"); | ||
| Locator.XPathLocator hopscotchBubbleClose = Locator.byClass("hopscotch-bubble-close"); | ||
| Locator.XPathLocator tippyBubble = Locator.tagWithClass("div", "qc-plot-hover-panel"); |
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.
Should this use getBubble()? Or should that use this?
| valueSpan.className = 'qc-hover-field-value'; | ||
| valueSpan.style.flex = '1'; | ||
| valueSpan.style.wordBreak = 'break-all'; | ||
| valueSpan.innerHTML = value; |
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 don't see where HTML encoding is happening. Should this be innerText, or is the caller responsible for encoding (and actually doing it)?
Rationale
https://github.com/LabKey/internal-issues/issues/787
Related Pull Requests
Changes