grafana/public/app/features/variables/editor
Josh Hunt 1c6eca09bb
Variables: Explicitly type variable editor extended state (#44749)
* Narrow Variable editor state using selector functions

 - Explicitly type "extended" editor state in editor/reducter.ts using a union
 - Create selectors to narrow the types, using unique properties from each extended state to discriminate the union
 - Update DataSourceVariableEditor to use new style of redux connector
 - Update variable editor components to use new selectors

* fix tests

* Make adhoc variable infoText optional, because it is!

* Add AdHocVariableEditor tests

* DataSourceVariableEditor tests

* comment

* reset

* Wrote tests for selectors \(that actually caught a bug, whodathunkit)

* fix stray types and lint issues

* Rename selector functions
2022-02-08 09:31:42 +11:00
..
actions.test.ts Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
actions.ts Update dependency prettier to v2.5.1 (#43473) 2022-02-02 12:02:32 +00:00
getVariableQueryEditor.test.tsx Variables: Adds new Api that allows proper QueryEditors for Query variables (#28217) 2020-11-18 15:10:32 +01:00
getVariableQueryEditor.tsx Variables: Adds new Api that allows proper QueryEditors for Query variables (#28217) 2020-11-18 15:10:32 +01:00
LegacyVariableQueryEditor.tsx Chore: reduces circular dependencies for variables/utils.ts (#44087) 2022-01-17 12:48:26 +01:00
reducer.test.ts Variables: Explicitly type variable editor extended state (#44749) 2022-02-08 09:31:42 +11:00
reducer.ts Variables: Explicitly type variable editor extended state (#44749) 2022-02-08 09:31:42 +11:00
SelectionOptionsEditor.tsx Chore: Move variable field selectors to data-testid (#44801) 2022-02-04 11:55:19 +11:00
selectors.test.ts Variables: Explicitly type variable editor extended state (#44749) 2022-02-08 09:31:42 +11:00
selectors.ts Variables: Explicitly type variable editor extended state (#44749) 2022-02-08 09:31:42 +11:00
types.ts Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
VariableEditorContainer.tsx Update dependency prettier to v2.5.1 (#43473) 2022-02-02 12:02:32 +00:00
VariableEditorEditor.tsx Chore: Move variable field selectors to data-testid (#44801) 2022-02-04 11:55:19 +11:00
VariableEditorList.tsx Variables: Adds user interaction reports (#42802) 2021-12-08 10:11:01 +01:00
VariableEditorListRow.tsx Variables: Adds user interaction reports (#42802) 2021-12-08 10:11:01 +01:00
VariableHideSelect.tsx Chore: Move variable field selectors to data-testid (#44801) 2022-02-04 11:55:19 +11:00
VariableSectionHeader.tsx Emotion: Upgrades emotion from 10 to 11 and updates all import paths (#32541) 2021-04-01 14:15:23 +02:00
VariableSelectField.tsx Chore: Move variable field selectors to data-testid (#44801) 2022-02-04 11:55:19 +11:00
VariableSwitchField.tsx A11y: Fix misc. fastpass issues (#41088) 2021-11-01 14:45:23 +00:00
VariableTextAreaField.tsx Chore: E2E tests for various variables types (#44747) 2022-02-03 09:58:56 +11:00
VariableTextField.tsx Chore: Move variable field selectors to data-testid (#44801) 2022-02-04 11:55:19 +11:00
VariableTypeSelect.tsx Chore: Move variable field selectors to data-testid (#44801) 2022-02-04 11:55:19 +11:00
VariableValuesPreview.tsx Emotion: Upgrades emotion from 10 to 11 and updates all import paths (#32541) 2021-04-01 14:15:23 +02:00