mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 17:43:35 -06:00
* 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 |
||
---|---|---|
.. | ||
actions.test.ts | ||
actions.ts | ||
getVariableQueryEditor.test.tsx | ||
getVariableQueryEditor.tsx | ||
LegacyVariableQueryEditor.tsx | ||
reducer.test.ts | ||
reducer.ts | ||
SelectionOptionsEditor.tsx | ||
selectors.test.ts | ||
selectors.ts | ||
types.ts | ||
VariableEditorContainer.tsx | ||
VariableEditorEditor.tsx | ||
VariableEditorList.tsx | ||
VariableEditorListRow.tsx | ||
VariableHideSelect.tsx | ||
VariableSectionHeader.tsx | ||
VariableSelectField.tsx | ||
VariableSwitchField.tsx | ||
VariableTextAreaField.tsx | ||
VariableTextField.tsx | ||
VariableTypeSelect.tsx | ||
VariableValuesPreview.tsx |