ref: one codebase for hover tooltip and freezed 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
This commit is contained in:
Ivan Mikheykin
2020-07-09 13:16:09 +03:00
parent 4e281e53d5
commit 8c7279561d
44 changed files with 3967 additions and 1513 deletions
+14 -18
View File
@@ -63,10 +63,6 @@
}
]
},
"data": {
"decimals": null,
"unitFormat": "short"
},
"datasource": "prometheus",
"gridPos": {
"h": 16,
@@ -130,21 +126,21 @@
],
"title": "Pod Status",
"tooltip": {
"show": true
"show": true,
"freezeOnClick": false,
"showItems": false,
"items": []
},
"transparent": true,
"type": "flant-statusmap-panel",
"useMax": true,
"xAxis": {
"labelFormat": "%a %m/%d",
"minBucketWidthToShowWeekends": 4,
"show": true,
"showCrosshair": true,
"showWeekends": true
"show": true
},
"yAxis": {
"show": true,
"showCrosshair": false
"minWidth": -1,
"maxWidth": -1
},
"yAxisSort": "a → z"
},
@@ -310,21 +306,21 @@
],
"title": "Container Status",
"tooltip": {
"show": true
"show": true,
"freezeOnClick": true,
"showItems": false,
"items": []
},
"transparent": true,
"type": "flant-statusmap-panel",
"useMax": true,
"xAxis": {
"labelFormat": "%a %m/%d",
"minBucketWidthToShowWeekends": 4,
"show": true,
"showCrosshair": true,
"showWeekends": true
"show": true
},
"yAxis": {
"show": true,
"showCrosshair": false
"minWidth": -1,
"maxWidth": -1
},
"yAxisSort": "a → z"
}