feat: Results table on Explore view (#11854)

* Upgrade react-split

* Implement split on ExploreChartPanel

* Implement tabs with collapse

* Fix run query button

* Fix copy to clipboard button

* Move table controls to separate file

* Make component more generic to handle samples

* Remove samples from DisplayQueryButton

* Move data tables to separate file

* Make split dynamically controlled

* Fix unit test

* Fix arrow not centered

* fixup! Fix arrow not centered

* Change copy button paddings

* Use translations

* Fix grammar in a comment

* Fix imports

* Use grid units

* Convert new files to typescript

* Fix after rebase

* Remove forceRender

* Fix big_number test

* Delay making request until panel is opened

* White background in south panel

* fixup! White background in south panel

* Lint fix

* Lint fix

* Remove redundant prop types

* Remove console log

* Delay loading samples until user switches tab

* Add debounce to filter input

* Use gridUnit for gutter sizes

* Change types object to Record<string, any>
This commit is contained in:
Kamil Gabryjelski
2020-12-05 04:49:24 +01:00
committed by GitHub
parent 66cd565bff
commit 41738df77d
9 changed files with 569 additions and 216 deletions

View File

@@ -50,7 +50,7 @@ describe('DisplayQueryButton', () => {
theme: supersetTheme,
},
});
expect(wrapper.find(ModalTrigger)).toHaveLength(3);
expect(wrapper.find(Menu.Item)).toHaveLength(5);
expect(wrapper.find(ModalTrigger)).toHaveLength(1);
expect(wrapper.find(Menu.Item)).toHaveLength(3);
});
});