Skip to content

Add regression test for hover tooltip being blocked by BoxAnnotation#14965

Open
muendlein wants to merge 2 commits into
bokeh:branch-3.10from
muendlein:add-test-hover-on-boxannotation
Open

Add regression test for hover tooltip being blocked by BoxAnnotation#14965
muendlein wants to merge 2 commits into
bokeh:branch-3.10from
muendlein:add-test-hover-on-boxannotation

Conversation

@muendlein

@muendlein muendlein commented Mar 22, 2026

Copy link
Copy Markdown
Contributor

@codecov

codecov Bot commented Mar 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (branch-3.10@67a21a8). Learn more about missing BASE report.

Additional details and impacted files
@@              Coverage Diff               @@
##             branch-3.10   #14965   +/-   ##
==============================================
  Coverage               ?   91.36%           
==============================================
  Files                  ?      291           
  Lines                  ?    21066           
  Branches               ?        0           
==============================================
  Hits                   ?    19247           
  Misses                 ?     1819           
  Partials               ?        0           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@muendlein muendlein added this to the 3.10 milestone Mar 22, 2026

await view.ready
})
})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem fixed. As I discussed in the issue, the order of renderers matters. Here the order is glyph, annotation, so when hovering over (2.6, 4.0), there should be no tooltip visible, unless propagate_hover is enabled on the glyph renderer.

This also needs more cases, with different order of renderers, multiple points and propagate_hover set on and off, for a complete test. However, it's already a waste to have this one as an integration test, so I would convert this to a unit test with a has_tooltip_visible() query implemented e.g. via callbacks.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like I misread your comment in the original issue. If I understand it correctly now, you are suggesting that the behavior (no visible tooltip) reported in the original issue is the intended behavior, if the order is first glyph then annotation?
If yes, should the order actually matter or is that also part of the bug (as render level is not affected by the order, right?)?
And maybe a more fundamental question, should a BoxAnnotation in general be placed at the annotation level or rather the underlay level. Personally I feel like many users are applying a BoxAnnotation with the idea in mind that it is placed in the background. This also seems to be the most common approach in UX design, so the current bug acts more like a feature.
What do you think?

For now I will put this as WIP, as there is obviously more work to be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] The Hover tool tip is blocked by the BoxAnnotation

2 participants