Visualizations: Dynamically set any config (min, max, unit, color, thresholds) from query results (#36548)

* initial steps for config from data

* Moving to core and separate transforms

* Progress

* Rows to fields are starting to work

* Config from query transform working

* UI progress

* More scenarios working

* Update public/app/core/components/TransformersUI/rowsToFields/rowsToFields.ts

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>

* transform all

* Refactor

* UI starting to work

* Add matcher UI to transform

* Apply to self

* Adding a reducer option

* Value mapping via new all values reducer

* value mappings workg add -A

* Minor changes

* Improving UI and adding test dashboards

* RowsToFieldsTransformerEditor tests

* Added tests for FieldToConfigMapping Editor

* Added test for ConfigFromQueryTransformerEditor

* Minor UI tweaks

* Added missing test

* Added label extraction

* unified mapping

* Progress refactoring

* Updates

* UI tweaks

* Rename

* Updates

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
Torkel Ödegaard
2021-07-13 10:51:34 +02:00
committed by GitHub
parent e06335ffe9
commit 702fd1cad9
27 changed files with 2818 additions and 104 deletions

View File

@@ -13,15 +13,7 @@ export const PluginStateInfo: FC<Props> = (props) => {
return null;
}
return (
<Badge
color={display.color}
title={display.tooltip}
text={display.text}
icon={display.icon}
tooltip={display.tooltip}
/>
);
return <Badge color={display.color} title={display.tooltip} text={display.text} icon={display.icon} />;
};
function getFeatureStateInfo(state?: PluginState): BadgeProps | null {