Kamil Gabryjelski
cdd01f4851
fix: Null error when deleting the last owner label in DatasourceEditor/settings ( #11752 )
...
* Fix null error when deleting the last owner in SelectAsyncControl
* Replace "||" with "??"
2020-11-19 14:10:34 -08:00
Kamil Gabryjelski
8a39f2799a
Fix "Select all" option in SelectControl ( #11692 )
2020-11-16 17:23:32 -08:00
Elizabeth Thompson
b277f19808
keep placeholder on multiselect ( #11289 )
2020-11-12 11:36:24 -08:00
Ville Brofeldt
2718909314
feat: add ECharts BoxPlot chart ( #11199 )
...
* feat: add ECharts BoxPlot chart
* lint
* fix cypress tests
* lint
* remove viz.py shim
* bump plugin package
* skip non-legacy plugin cypress dashboard tests
* fix cypress tests
* disable cypress tests for non-leagcy charts
* fix bad rebase
* use midpoint interpolation for quartile calculation
* bump packages and add support for no groupby
* whitespace
* whitespace
* linting
* fix tests
* xit mathjs load test
* bump mathjs to 8.0.1
* disable cypress filter test for v1 charts
2020-11-12 10:01:04 +02:00
Grace Guo
a9f9c4bbd5
[fix] handle null value in date filter ( #11655 )
2020-11-11 09:32:26 -08:00
Kamil Gabryjelski
0c6aeef927
Fix datetime picker issues ( #11621 )
2020-11-09 14:13:27 -08:00
Kamil Gabryjelski
6d5d92a6fe
fix: Issues with filters and metrics popovers ( #11578 )
...
* Fix bugs in AdhocFilterEditPopover
* Fix bugs in AdhocMetricEditPopover
* Remove handleMultiComparatorInputHeightChange function
* Fix tests
2020-11-05 20:00:43 -08:00
Kamil Gabryjelski
1490f3074d
refactor: Replace react-bootstrap MenuItems with Antd Menu ( #11554 )
...
* Refactor SliceHeaderControls
* Refactor DisplayQueryButton
* Fix duplicate keys
* Refactor SliceAdder
* Move css from styles to Emotion
* Fix e2e test
2020-11-05 13:30:03 -08:00
Kamil Gabryjelski
128ddfabb6
fix: Pasting text issues in MetricsControl and AdhocFilterControl inputs ( #11445 )
...
* Fix paste not working in Metrics and Filter inputs
* Use noOp instead of empty function
* Use default Select component instead of OnPasteSelect
* Revert onPaste override
2020-11-04 13:48:48 -08:00
Kamil Gabryjelski
ad98981d9d
refactor: Replace react-bootstrap MenuItems with Antd Menu ( #11487 )
...
* Remove MenuItem from CopyToClipboard
* Refactor DateFilterControl
* fixup! Remove MenuItem from CopyToClipboard
* Remove console log
* Refactor LanguagePicker
* Refactor HeaderActionsDropdown
* Remove dir with Menu component
* Add imports to common/components/index
* Fix after rebase
2020-11-04 13:47:25 -08:00
Jesse Yang
fac29f9dff
refactor: rewrite and enhance chart control withVerification ( #11435 )
...
* refactor: rewrite and enhance chart control withVerification
* Add toasts for failed messages; fixes popover render
2020-11-02 15:06:20 -08:00
Hugh A. Miles II
6c6ded139b
fix: Update "View In SQL Lab" Flow to render source query from datasource object ( #11476 )
2020-11-02 11:44:20 -08:00
Kamil Gabryjelski
19f2deb27f
refactor: Replace react-bootstrap Modals with Antd in Explore ( #11389 )
...
* VizTypeControl
* SaveModal
* explore/PropertiesModal
* Fix e2e tests
* Remove console logs
* Fix tests
* Fix test
* Fix e2e test
* Remove unnecessary fragment
* Fix e2e tests
* Fix e2e test
2020-11-01 23:04:53 -08:00
Kamil Gabryjelski
55a3404b71
refactor: Replace react-bootstrap tabs with Antd tabs ( #11118 )
...
* Replace tabs in BuilderComponentPane
* Replace tabs in ControlPanelsContainer
* Replace tabs in AdhocMetricEditPopover
* Replace Tabs in DatasourceEditor
* Replace tabs in AdhocFilterEditPopover
* Replace tabs in DateFilterControl
* Bug fix
* Change Tab styles
* Fix tests
* Fix cypress tests
* Lint fix
* Fix tests
* Change Tabs style in ControlPanelsContainer
* Change tabs content height
* Lint fix
* Add data test
* Fix e2e test
* Move Tabs file to separate dir
* Fix after rebase
* Fix e2e tests
* Fix after rebase
2020-10-30 22:05:31 -07:00
Kamil Gabryjelski
b2636f01bb
fix: Explore popovers issues ( #11428 )
...
* Fix spaces and comas not working in filter popover
* Fix popup not opening automatically
* Add e2e test
* Remove only from test
* Remove redundant test, add checking label content
* Add comments to e2e test
* Fix unit test
* Use destructuring
* Always open popup for functions and saved metrics, too
* Fix popover for adhoc metrics too
* Small refactor to consistency
* Refactor for consistency
* Remove redundant functions
* Test fix
Co-authored-by: Jesse Yang <jesse.yang@airbnb.com >
2020-10-28 09:38:52 -07:00
David Aaron Suddjian
055781f4a9
fix filter highlighting ( #11439 )
2020-10-27 08:38:24 -07:00
Hugh A. Miles II
fd8f4e9215
feat(explore): update the order of datasource dropdown menu ( #11424 )
2020-10-26 20:44:44 -07:00
Kamil Gabryjelski
894ca3c09b
refactor: Use Modals from Antd instead of react-bootstrap ( #11330 )
...
* Refactor ModalTrigger to use antd modal
* Refactor a few components
* dynamic width
* Fix unit tests
* Use i18n for button text
2020-10-26 11:20:10 -07:00
Kamil Gabryjelski
ad88a06d61
refactor: Use Antd Dropdown instead of react-bootstrap in DatasourceControl ( #11395 )
...
* Create Tooltip component
* Refactor DatasourceControl
* Bug fix
* Lint fix
* E2E test fix
* Move menu item keys to constants
* Remove LESS file
* Test fix
* Test fix
* Lint fix
2020-10-23 09:08:35 -07:00
Elizabeth Thompson
43b92b220f
fix: dashboard edit/save errors ( #10834 )
...
* use conditional operator for lookup
* editing dashboard title should update after save
* uncomment test
* fix json metadata save
* json metadata color scheme should overwrite state
* test's functionality is no longer applicable
* add lastModifiedTime to DashboardInfo
2020-10-22 14:33:22 -07:00
Maxime Beauchemin
64b5aae6bc
style: improve the "Create New Chart" screen's usability ( #11383 )
...
* style: make disabled buttons more readable
* making more of a CTA for VizControl
2020-10-22 10:16:58 -07:00
Kamil Gabryjelski
901a42b1df
refactor: Replace usages of Popover from react-bootstrap with Antd ( #11163 )
...
* New popover component
* LimitControl
* Moar components migrated
* TimeSeriesColumnControl
* Hotkeys
* ColorPicker
* FilterBoxItemCOntrol
* AdhocFilterEditPopover
* AdhocMetric
* AnnotationLayerControl
* DateFilterControl
* Tests fix
* Fix linting issue
* Fix tests
* Bug fix
* Test fix
* Remove Antd global stylesheet
* Fix linting
* Fix test
* Fix test
* Fix test
* Fix test
* Fix test
2020-10-19 20:42:33 -07:00
adam-stasiak-polidea
fc03549299
chore: Added data-test attributes for testing ( #11254 )
...
* Added data-test attributes for testing
* fixed incorrect naming change
* review changes
2020-10-14 16:12:01 -07:00
Erik Ritter
fc74b5d4a2
Revert "fix: keep placeholder in multivalue select when a value exists ( #11181 )" ( #11270 )
...
This reverts commit 31cc4155b7 .
2020-10-14 12:58:58 -07:00
Elizabeth Thompson
31cc4155b7
fix: keep placeholder in multivalue select when a value exists ( #11181 )
2020-10-13 13:45:31 -07:00
Maxime Beauchemin
3d7b805755
chore: more 'datasource' -> 'dataset' renaming ( #11055 )
...
* chore: more 'datasource' -> 'dataset' renaming
* fix build
* explicitely setting disabled to false to avoid cypress confusion
* fix tests
* RAT
2020-10-05 20:04:17 -07:00
Kamil Gabryjelski
07f87149e6
fix: Enable ESLint rule default-props-match-prop-types ( #11058 )
...
* Re-enable ESLint rule default-props-match-props-types
* Add cypress test for switching tabs
* fix
* Typo fix
* Test fix
2020-10-02 15:54:56 -07:00
Jesse Yang
53cd05d74a
perf(explore): render datasource details only when needed ( #10924 )
2020-10-02 12:15:06 -07:00
Maxime Beauchemin
c4d96f64ff
fix: SpatialControl popover won't open ( #11127 )
...
Recently a change related to emotion styling not properly working through
react-bootstrap's popover broke the SpatialControl.
This PR makes SpatialControl use antd's equivalent, and addresses the
issue as a result: emotion's styling context is preserved through
this superior popover.
2020-09-30 23:12:51 -07:00
Kamil Gabryjelski
2fd8fca207
chore: Clean up some console warnings ( #11061 )
...
* Upgrade a few packages
* Update some prop types
* Update HTML
* Moar warning fixes
* Remove wrapper div
2020-09-28 09:43:21 -07:00
Maxime Beauchemin
046bd02d65
style: improve "Datasource & Chart Type" <Label>s ( #10971 )
...
* style: improve default <Label>
* fix name-shifting icon
* adding some styles to remove the inner drop shadow from the 'more' button
Co-authored-by: Evan Rusackas <evan@preset.io >
2020-09-28 08:32:25 -07:00
Grace Guo
f99753a800
Revert "ESLint: Re-enable rule default-props-match-prop-types ( #10868 )" ( #11050 )
...
This reverts commit 9f01a7fdf8 .
2020-09-24 12:33:38 -07:00
Kamil Gabryjelski
9f01a7fdf8
ESLint: Re-enable rule default-props-match-prop-types ( #10868 )
...
* Re-enable rule default-props-match-prop-types
* Restore default props and remove isRequired
* Remove unused props
2020-09-22 13:17:41 -07:00
Moriah Kreeger
4aa53244c7
fix: update the time filter for 'Last Year' option in explore ( #10829 )
...
* Update explore time filter ranges
* rm console statements
* only update moment calculation for years
* tests
* add open/close test
2020-09-21 11:39:11 -07:00
Kamil Gabryjelski
4835d3b0a2
ESLint: Re-enable rule no-access-state-in-setstate ( #10870 )
...
* Re-enable rule no-access-state-in-setstate
* Move accessing event values out of async functions
2020-09-20 23:48:23 -07:00
Kamil Gabryjelski
557a303cc5
ESLint: Enable rule no-named-as-default ( #10879 )
...
* Enable rule no-named-as-default
* Fix wrong import
2020-09-18 13:41:01 -07:00
Kamil Gabryjelski
ccfd293227
ESLint: no-restricted-syntax ( #10889 )
...
* Enable no-restricted syntax rule
* Fix webpack.config.js
* Remove unused function from utils/common.js
* Refactor triple nested for loop
* Fix loops in src/explore components
* Fix loops in SqlLab components
* Fix loops in AlteredSliceTag
* Fix loops in FilterableTable
* Add fixtures and uinit tests for findControlItem
* Add license
2020-09-18 09:05:57 -07:00
Elizabeth Thompson
13cc1a3d2d
fix: front end CI tests and test runner ( #10897 )
2020-09-16 11:35:18 -07:00
Jesse Yang
4eeee4c2eb
chore: enable eslint-import-resolver-typescript ( #10895 )
...
Let eslint understand tsconfig.json when importing modules, so we
can use `compilerOption.paths` to override where to find ts modules.
2020-09-15 15:33:49 -07:00
Jesse Yang
0129c4253d
feat: move ace-editor and mathjs to async modules ( #10837 )
...
Follow up on #10831 , move brace and mathjs to async modules so that the initial page load for dashboards most pages can be faster.
2020-09-15 14:12:06 -07:00
Kamil Gabryjelski
e28f3d6220
Re-enable rule line-between-class-members ( #10862 )
2020-09-14 15:41:32 -07:00
Kamil Gabryjelski
767044bfe5
ESLint: Re-enable rule control-has-associated-label ( #10866 )
...
* Re-enable rule control-has-associated-label
* Change aria-label message in DatasourceControl
Co-authored-by: Evan Rusackas <evan@preset.io >
Co-authored-by: Evan Rusackas <evan@preset.io >
2020-09-14 13:00:39 -07:00
Kamil Gabryjelski
2d8f4e3aaf
Re-enable rule no-else-return ( #10861 )
2020-09-14 13:00:07 -07:00
Kamil Gabryjelski
a75c36281d
Re-enable rule jsx-curly-brace-presence ( #10869 )
2020-09-14 10:44:03 -07:00
Kamil Gabryjelski
1908a94c7e
ESLint: Re-enable rule no-restricted-globals ( #10863 )
...
* Re-enable rule no-restricted-globals
* Fix missing semicolons
2020-09-14 10:39:46 -07:00
Kamil Gabryjelski
7f1012360a
Re-enable no-useless-path-segments rule ( #10860 )
2020-09-14 10:38:18 -07:00
Kamil Gabryjelski
906a629b33
Re-enable rule no-unused-state ( #10871 )
2020-09-14 10:31:16 -07:00
Kamil Gabryjelski
352e8a1afd
Re-enable rule prefer-destructuring (only for objects) ( #10867 )
2020-09-14 10:11:20 -07:00
Kamil Gabryjelski
8a774d59ed
Eslint dependencies versions updates ( #10839 )
...
* Update eslint version to 7.8.1
* Give names to unnamed functions to fix lint errors
* Update eslint-import-resolver-webpack
* Update eslint-plugin-cypress
* Add eslint-plugin-react-hooks
* Update necessary peer dependencies for eslint-config-airbnb
* Update eslint airbnb config and ts plugins
* Remove "this" from functional component
* Disable all rules that cause new errors
* Fix linting errors in tests
* Add licenses to .eslintrc files
* Add path and zlib to package.json
* Disable incompatible rule in eslint-plugin-cypress
* Remove redundant config for typescript linting
* Mark disabled rules with comments
* Remove path and zlib from deps, disable import rule for webpack files
2020-09-13 23:59:02 -07:00
Jesse Yang
9a59bdda48
refactor: merge/upgrade superset-ui packages ( #10790 )
...
* refactor: merge/upgrade superset-ui packages
* Fix flaky big number test
* Fix Flaky AdhocFilters test
2020-09-09 13:18:55 -07:00