Data trails: Sort related metrics and hide empty panels (#79397)

* Use levenshtein method to sort metric names

* Optionally hide empty panels in MetricSelectScene

* Transform ignore leven

* Refactor code to use $behaviours. Move preview cache to class variable instead of state

* Use lazy loading for metric scene

* Update scenes lib

* simplify behavior

* Remove hide empty toggle

* Bump scenes

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
Andre Pereira
2023-12-20 13:14:57 +00:00
committed by GitHub
parent 8b67464758
commit 16dffaf501
7 changed files with 218 additions and 66 deletions

View File

@@ -3,7 +3,16 @@
// 2. Any wrong timezone handling could be hidden if we use UTC/GMT local time (which would happen in CI).
process.env.TZ = 'Pacific/Easter'; // UTC-06:00 or UTC-05:00 depending on daylight savings
const esModules = ['ol', 'd3', 'd3-color', 'd3-interpolate', 'delaunator', 'internmap', 'robust-predicates'].join('|');
const esModules = [
'ol',
'd3',
'd3-color',
'd3-interpolate',
'delaunator',
'internmap',
'robust-predicates',
'leven',
].join('|');
module.exports = {
verbose: false,