Skip to content

Conversation

@markov00
Copy link
Member

@markov00 markov00 commented Dec 5, 2019

Summary

If the tooltip type is hidden (TooltipType.None) then the tooltip should not be shown. This add the
check in the selector and includes also a smoke test for all tooltips.

side notes
there was already a test checking if the tooltip was visible or not, but it doesn't include a check if the highlighter was visible or not.

fix #478

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

  • [ ] Any consumer-facing exports were added to src/index.ts (and stories only import from ../src except for test data & storybook)
  • [ ] This was checked for cross-browser compatibility, including a check against IE11
  • [ ] Proper documentation or storybook story was added for features that require explanation or tutorials
  • Unit tests were updated or added to match the most common scenarios
  • Each commit follows the convention

If the tooltip type is hidden (TooltipType.None) then the tooltip should not be shown. This add the
check on the selector and includes also a smoke test.

fix elastic#478
@markov00 markov00 added bug Something isn't working regression labels Dec 5, 2019
@codecov-io
Copy link

codecov-io commented Dec 5, 2019

Codecov Report

Merging #482 into master will increase coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #482      +/-   ##
==========================================
+ Coverage   83.76%   83.83%   +0.06%     
==========================================
  Files         158      158              
  Lines        4706     4720      +14     
  Branches      953      960       +7     
==========================================
+ Hits         3942     3957      +15     
+ Misses        749      748       -1     
  Partials       15       15
Impacted Files Coverage Δ
src/specs/settings.tsx 100% <100%> (ø) ⬆️
.../selectors/get_tooltip_values_highlighted_geoms.ts 87.5% <100%> (+0.4%) ⬆️
src/utils/commons.ts 100% <100%> (ø) ⬆️
.../chart_types/xy_chart/crosshair/crosshair_utils.ts 93.18% <0%> (-0.23%) ⬇️
..._types/xy_chart/state/selectors/get_cursor_line.ts 100% <0%> (ø) ⬆️
...rc/chart_types/xy_chart/renderer/dom/crosshair.tsx 82.97% <0%> (+2.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 77c4a74...8a17915. Read the comment docs.

Copy link
Collaborator

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

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

Added the mergePartial changes you wanted.

Also looks like the ON_POINTER_MOVE action is still triggered. Would be nice to prevent that but that can be done some other time.

export const DEFAULT_TOOLTIP_SNAP = true;

export const DEFAULT_SETTINGS_SPEC = {
export const DEFAULT_SETTINGS_SPEC: SettingsSpec = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice!!

@markov00 markov00 merged commit 6032c29 into elastic:master Dec 5, 2019
@markov00 markov00 deleted the 2019-12-05_fix_highlighter_on_none_tooltip branch December 5, 2019 19:30
markov00 pushed a commit that referenced this pull request Dec 5, 2019
## [15.0.3](v15.0.2...v15.0.3) (2019-12-05)

### Bug Fixes

* **highlighter:** hide it when tooltip type is None ([#482](#482)) ([6032c29](6032c29)), closes [#478](#478) [#479](#479)
@markov00
Copy link
Member Author

markov00 commented Dec 5, 2019

🎉 This PR is included in version 15.0.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Dec 5, 2019
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working regression released Issue released publicly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Highlighter shown with hidden tooltip

3 participants