Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

ref: one codebase for the hover tooltip and the frozen tooltip #109

Merged
merged 1 commit into from
Jul 9, 2020

Conversation

diafour
Copy link
Collaborator

@diafour diafour commented Jul 9, 2020

This PR is a continuation of #86. It addresses suggestions in this comment: #86 (comment).

  1. Hover tooltip and frozen tooltip display similar content now. What you see on mouseover, is what you get on click. No ambiguity for mobile users.

  2. Filtering by index is fixed earlier, in Fixed coloring values when filter is -1 #91.

  3. 'Tooltip' settings pane is reworked, fields are reorganized. It is compatible with the new layout of 'Edit mode' in Grafana 7.

  4. Variable names are renamed.

    • $time become ${__url_time_range} without leading & — Grafana 7 has this variable.
    • $series_label become ${__y_label}
    • $series_extra become ${__value} and ${__value_N} similar to 'table' plugin.
    • date formatting implemented with ${__value_date} and ${__value_N_date} variables and 'Date format' field.
  5. Url section in the tooltip and Help popup is now visible when the light theme is used.

Known issues:

  • No indication of a link between the bucket and the frozen tooltip.
  • The frozen tooltip has a fixed left position. It doesn't follow a bucket on time range refresh and on panel resize.
  • If the tooltip is frozen in Edit mode in Grafana 5.4, it then appears in Normal mode. Grafana 6.7 and 7 don't have this problem.

frozen tooltip

- rename variables for URL template, use templateSrv to render URL links
- fix visibility of tooltip items and url template help popup whe the light theme is used
- rework Tooltip settings pane, organize tooltip editor fields
- rename properties in panel config, implement migration logic for legacy configuration
- close button for the frozen tooltip
- use relative positioning for proper page scrolling
@diafour
Copy link
Collaborator Author

diafour commented Jul 9, 2020

implement migration logic for legacy configuration

That is a simple converter for initial urls property as proposed in this comment: #93 (comment)

@JoaquinJimenezGarcia FYI

@diafour
Copy link
Collaborator Author

diafour commented Jul 13, 2020

@kevinbin does `${__graph_range} works earlier?

It looks that "system" variables are missing, I check this.

@diafour
Copy link
Collaborator Author

diafour commented Jul 13, 2020

Oops, I got it. The popup for URL template is not updated. The variable for time range is ${__url_time_range} — it is named after a similar variable from Grafana 7.

I'll fix the help message.

@diafour diafour added this to the 0.3.0 milestone Jul 14, 2020
@kevinbin
Copy link

Does the variable for time range support in grafana 6.x ?

@diafour
Copy link
Collaborator Author

diafour commented Jul 15, 2020

Yes. The plugin sets this variable, so it works in 5.4.x as well.

@diafour diafour deleted the feat_one_tooltip branch July 19, 2021 19:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants