feat(explore): Replace overlay with alert banner when chart controls change (#19696)

* Rename explore alert

* Rename refreshOverlayVisible to chartIsStale

* Implement banners

* Add tests

* Add clickable text to empty state

* Fix viz type switching

* styling changes

* Fixes after rebasing

* Code review fixes

* Fix bug

* Fix redundant refreshing
This commit is contained in:
Kamil Gabryjelski
2022-04-19 14:57:06 +02:00
committed by GitHub
parent 594523e895
commit 6f4480a06c
12 changed files with 372 additions and 214 deletions

View File

@@ -22,13 +22,10 @@ import { ControlStateMapping } from '@superset-ui/chart-controls';
export function getFormDataFromControls(
controlsState: ControlStateMapping,
): QueryFormData {
const formData: QueryFormData = {
viz_type: 'table',
datasource: '',
};
const formData = {};
Object.keys(controlsState).forEach(controlName => {
const control = controlsState[controlName];
formData[controlName] = control.value;
});
return formData;
return formData as QueryFormData;
}