feat(explore): metrics and filters controls redesign (#12095)

* Redesign metrics control

* Redesign filters control

* Bugfixes

* Fix unit tests

* Fix tests

* Code review fixes
This commit is contained in:
Kamil Gabryjelski
2020-12-17 23:13:37 +01:00
committed by GitHub
parent d1dfe82d6c
commit b61e243f39
24 changed files with 793 additions and 535 deletions

View File

@@ -22,7 +22,6 @@ import sinon from 'sinon';
import { shallow } from 'enzyme';
import Popover from 'src/common/components/Popover';
import Label from 'src/components/Label';
import AdhocMetric from 'src/explore/AdhocMetric';
import AdhocMetricOption from 'src/explore/components/AdhocMetricOption';
import { AGGREGATES } from 'src/explore/constants';
@@ -54,7 +53,7 @@ describe('AdhocMetricOption', () => {
it('renders an overlay trigger wrapper for the label', () => {
const { wrapper } = setup();
expect(wrapper.find(Popover)).toExist();
expect(wrapper.find(Label)).toExist();
expect(wrapper.find('OptionControlLabel')).toExist();
});
it('overlay should open if metric is new', () => {