digma-ai / digma-intellij-plugin

Digma JetBrains plugin
MIT License
31 stars 7 forks source link

Browser native tooltips are not working in JetBrains IDEs v >= 2023.x.x #876

Open kshmidt-digma opened 1 year ago

kshmidt-digma commented 1 year ago

STR:

  1. Go to the Assets tab
  2. Hover the cursor over the insight icon
  3. Native browser tooltip with the insight type name should appear image

Affected versions and environments: JetBrains Rider/IntelliJ IDEA 2023.1.2 - 2023.1.3 (macOS/Windows)

Note: IntelliJ IDEA 2022.3.1 works as expected

kshmidt-digma commented 1 year ago

A possible workaround for this issue is the implementation of the custom tooltips.

Design mockup: https://www.figma.com/file/knBV9hsfk9Au7mDQdFAFea/READY-TO-DEV?type=design&node-id=1629-401445&mode=design&t=dgQbBClr7pHhwg89-0

FYI @shaykeren

arik-dig commented 1 year ago

note that tool tips won't work on Recent Activity as well

image

shalom938 commented 1 year ago

I don't understand the workaround

kshmidt-digma commented 1 year ago

@shalom938 Currently, tooltips are implemented using the standard HTML alt attribute. Browsers (including Chromium) show them as text tooltips. I did a quick test and found that custom tooltips implemented with JavaScript (not HTML) are working correctly, so a possible workaround to solve the problem with the tooltips is to implement a custom separate React component.