Refactor state timeline/status history to cue model and refactor TimelineChart component (#61631)

* Adapt state timeline to scuemata

* Refactor status history to cue model

* Refactor

* Refactor TimelineChart as a core component

* wip

* Change as per CR

Co-authored-by: sam boyer <sdboyer@grafana.com>
This commit is contained in:
Victor Marin
2023-01-26 07:03:59 +00:00
committed by GitHub
co-authored by sam boyer
parent 6c9174a766
commit 6a93c77082
28 changed files with 376 additions and 216 deletions
+54 -2
View File
@@ -1349,6 +1349,30 @@
"pluralMachineName": "serviceaccounts",
"pluralName": "ServiceAccounts"
},
"statetimelinepanelcfg": {
"category": "composable",
"codeowners": [
"grafana/grafana-bi-squad"
],
"currentVersion": [
0,
0
],
"grafanaMaturityCount": 0,
"lineageIsGroup": true,
"links": {
"docs": "https://grafana.com/docs/grafana/next/developers/kinds/composable/statetimelinepanelcfg/schema-reference",
"go": "n/a",
"schema": "https://github.com/grafana/grafana/tree/main/public/app/plugins/panel/state-timeline/panelcfg.cue",
"ts": "https://github.com/grafana/grafana/tree/main/public/app/plugins/panel/state-timeline/panelcfg.gen.ts"
},
"machineName": "statetimelinepanelcfg",
"maturity": "experimental",
"name": "StateTimelinePanelCfg",
"pluralMachineName": "statetimelinepanelcfgs",
"pluralName": "StateTimelinePanelCfgs",
"schemaInterface": "PanelCfg"
},
"statpanelcfg": {
"category": "composable",
"codeowners": [
@@ -1373,6 +1397,30 @@
"pluralName": "StatPanelCfgs",
"schemaInterface": "PanelCfg"
},
"statushistorypanelcfg": {
"category": "composable",
"codeowners": [
"grafana/grafana-bi-squad"
],
"currentVersion": [
0,
0
],
"grafanaMaturityCount": 0,
"lineageIsGroup": true,
"links": {
"docs": "https://grafana.com/docs/grafana/next/developers/kinds/composable/statushistorypanelcfg/schema-reference",
"go": "n/a",
"schema": "https://github.com/grafana/grafana/tree/main/public/app/plugins/panel/status-history/panelcfg.cue",
"ts": "https://github.com/grafana/grafana/tree/main/public/app/plugins/panel/status-history/panelcfg.gen.ts"
},
"machineName": "statushistorypanelcfg",
"maturity": "experimental",
"name": "StatusHistoryPanelCfg",
"pluralMachineName": "statushistorypanelcfgs",
"pluralName": "StatusHistoryPanelCfgs",
"schemaInterface": "PanelCfg"
},
"tableoldpanelcfg": {
"category": "composable",
"codeowners": [],
@@ -1744,7 +1792,9 @@
"postgresqldatasourcecfg",
"prometheusdataquery",
"prometheusdatasourcecfg",
"statetimelinepanelcfg",
"statpanelcfg",
"statushistorypanelcfg",
"tableoldpanelcfg",
"tempodataquery",
"tempodatasourcecfg",
@@ -1757,7 +1807,7 @@
"zipkindataquery",
"zipkindatasourcecfg"
],
"count": 63
"count": 65
},
"core": {
"name": "core",
@@ -1791,11 +1841,13 @@
"histogrampanelcfg",
"newspanelcfg",
"piechartpanelcfg",
"statetimelinepanelcfg",
"statpanelcfg",
"statushistorypanelcfg",
"textpanelcfg",
"xychartpanelcfg"
],
"count": 12
"count": 14
},
"mature": {
"name": "mature",
@@ -71,6 +71,8 @@ func corePlugins(rt *thema.Runtime) []pfs.ParsedPlugin {
parsePluginOrPanic("public/app/plugins/panel/nodeGraph", "nodeGraph", rt),
parsePluginOrPanic("public/app/plugins/panel/piechart", "piechart", rt),
parsePluginOrPanic("public/app/plugins/panel/stat", "stat", rt),
parsePluginOrPanic("public/app/plugins/panel/state-timeline", "state_timeline", rt),
parsePluginOrPanic("public/app/plugins/panel/status-history", "status_history", rt),
parsePluginOrPanic("public/app/plugins/panel/table-old", "table_old", rt),
parsePluginOrPanic("public/app/plugins/panel/text", "text", rt),
parsePluginOrPanic("public/app/plugins/panel/traces", "traces", rt),