Commit Graph

180 Commits

Author SHA1 Message Date
Erik Ritter
9993b336ff feat: support warning_markdown on metrics (#1011) 2021-11-26 11:46:59 +08:00
Jesse Yang
4de346c0b6 chore: upgrade node to v14 (#970) 2021-11-26 11:46:56 +08:00
Mayur
9357d2bd82 fix(legacy-plugin-chart-pivot-table): fix displaying image inside rows (#954)
* fix

* lint

* lint

* complete fix

* remove log

* Add storybook entry for html

Co-authored-by: Jesse Yang <jesse.yang@airbnb.com>
2021-11-26 11:46:55 +08:00
Ville Brofeldt
d3bb433560 fix(plugin-chart-echarts): label type and hover bugs (#942) 2021-11-26 11:46:53 +08:00
dependabot-preview[bot]
b409a7e6df build(deps): bump @babel/cli from 7.12.8 to 7.12.10 (#923)
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.12.8 to 7.12.10.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.10/packages/babel-cli)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:52 +08:00
dependabot-preview[bot]
51a76628be build(deps): bump @storybook/addon-knobs from 5.3.18 to 6.1.15 (#924)
Bumps [@storybook/addon-knobs](https://github.com/storybookjs/storybook/tree/HEAD/addons/knobs) from 5.3.18 to 6.1.15.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v6.1.15/addons/knobs)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:52 +08:00
dependabot-preview[bot]
6b816c7844 build(deps): [security] bump nested-object-assign from 1.0.3 to 1.0.4 (#927)
Bumps [nested-object-assign](https://github.com/Geta/NestedObjectAssign) from 1.0.3 to 1.0.4. **This update includes a security fix.**
- [Release notes](https://github.com/Geta/NestedObjectAssign/releases)
- [Commits](https://github.com/Geta/NestedObjectAssign/compare/v1.0.3...v1.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:52 +08:00
dependabot-preview[bot]
6f7ddf15c9 build(deps): bump @babel/preset-env from 7.12.7 to 7.12.11 (#917)
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.12.7 to 7.12.11.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.11/packages/babel-preset-env)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:51 +08:00
dependabot-preview[bot]
8a11eb9160 build(deps): bump @types/react-bootstrap from 0.32.22 to 0.32.25 (#910)
Bumps [@types/react-bootstrap](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-bootstrap) from 0.32.22 to 0.32.25.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-bootstrap)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:51 +08:00
dependabot-preview[bot]
60220d56c1 build(deps): bump core-js from 3.6.5 to 3.8.3 (#911)
Bumps [core-js](https://github.com/zloirock/core-js) from 3.6.5 to 3.8.3.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/compare/v3.6.5...v3.8.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:51 +08:00
Jesse Yang
75298ecda3 refactor(plugin-chart-table): migrate to API v1 (#889) 2021-11-26 11:46:51 +08:00
dependabot-preview[bot]
6d4c24f59e build(deps): bump @vx/tooltip from 0.0.197 to 0.0.199 (#785)
Bumps [@vx/tooltip](https://github.com/hshoff/vx) from 0.0.197 to 0.0.199.
- [Release notes](https://github.com/hshoff/vx/releases)
- [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hshoff/vx/compare/v0.0.197...v0.0.199)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:51 +08:00
dependabot-preview[bot]
987bc30008 build(deps): bump @vx/responsive from 0.0.197 to 0.0.199 (#780)
Bumps [@vx/responsive](https://github.com/hshoff/vx) from 0.0.197 to 0.0.199.
- [Release notes](https://github.com/hshoff/vx/releases)
- [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hshoff/vx/compare/v0.0.197...v0.0.199)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:51 +08:00
dependabot-preview[bot]
39acf658b3 build(deps-dev): bump @types/fetch-mock from 6.0.5 to 7.3.3 (#898)
Bumps [@types/fetch-mock](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/fetch-mock) from 6.0.5 to 7.3.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/fetch-mock)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:50 +08:00
dependabot-preview[bot]
c9e5d68f26 build(deps): bump @types/lodash from 4.14.164 to 4.14.167 (#887)
Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.14.164 to 4.14.167.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:49 +08:00
Jesse Yang
d8e1bbb9dd chore: upgrade eslint and babel (#892) 2021-11-26 11:46:49 +08:00
Evan Rusackas
066b830ddd chore: bumping nvd3-fork package (#891) 2021-11-26 11:46:48 +08:00
dependabot-preview[bot]
11d43e7722 build(deps): [security] bump urijs from 1.19.2 to 1.19.4 (#883)
Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.2 to 1.19.4. **This update includes a security fix.**
- [Release notes](https://github.com/medialize/URI.js/releases)
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md)
- [Commits](https://github.com/medialize/URI.js/compare/v1.19.2...v1.19.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:48 +08:00
dependabot-preview[bot]
f66caf581c build(deps): bump mathjs from 8.0.1 to 8.1.1 (#885)
Bumps [mathjs](https://github.com/josdejong/mathjs) from 8.0.1 to 8.1.1.
- [Release notes](https://github.com/josdejong/mathjs/releases)
- [Changelog](https://github.com/josdejong/mathjs/blob/develop/HISTORY.md)
- [Commits](https://github.com/josdejong/mathjs/compare/v8.0.1...v8.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:47 +08:00
dependabot-preview[bot]
b9ad0e4b76 build(deps): [security] bump dompurify from 2.0.11 to 2.0.17 (#872)
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 2.0.11 to 2.0.17. **This update includes a security fix.**
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/2.0.11...2.0.17)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:47 +08:00
dependabot-preview[bot]
2afcb1edab build(deps): [security] bump ini from 1.3.5 to 1.3.8 (#865)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. **This update includes a security fix.**
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:47 +08:00
Jesse Yang
55ee542813 refactor: remove queryFields from formData and improve typing (#862) 2021-11-26 11:46:47 +08:00
Jesse Yang
05f335477d test: use stable random for stories (#861)
* test: use stable random for stories

* Seed with superset-ui

* Add tests for random
2021-11-26 11:46:46 +08:00
Jesse Yang
286255d85a build: remove nimbus (#847) 2021-11-26 11:46:46 +08:00
ʈᵃᵢ
d995eaaa97 ci: add chromatic visual testing step (#849) 2021-11-26 11:46:45 +08:00
Ville Brofeldt
8c4c4ef020 feat(plugin-chart-echarts): bump to version 5.0 (#852)
merge to test feat: Results table on Explore view #11854
2021-11-26 11:46:45 +08:00
Krist Wongsuphasawat
778a7a5865 fix(legacy-preset-chart-nvd3): time compare and stacked area tooltips (#850)
* fix: time compare tooltip

* refactor: create separate function

* refactor: remove fn

* fix: area chart tooltip
2021-11-26 11:46:45 +08:00
Ville Brofeldt
a52cd691f0 feat: native filter components (#840)
* feat: add AntD filter components

* add missing files

* add filter hook

* fix hook name

* required thumbnail

* add native filters to where clause

* add isNativeFilter flag to ChartMetadata

* rename native_filters to extra_form_data

* lint

* move hook to SuperChart props

* add NOOP default to setSelectedValues

* replace extra_form_data with override_ and append_

* add support for appending freeform where

* address review comments

* Add default values

* Update packages/superset-ui-core/test/query/processExtraFormData.test.ts

Co-authored-by: Evan Rusackas <evan@preset.io>

* Update packages/superset-ui-core/test/query/processExtraFormData.test.ts

Co-authored-by: Evan Rusackas <evan@preset.io>

* add storybook entry and change width to 100%

* add placeholder

* add default thumbnails

Co-authored-by: Evan Rusackas <evan@preset.io>
2021-11-26 11:46:44 +08:00
Ville Brofeldt
2a81e9fb23 chore: bump mathjs to latest version on all plugins (#832) 2021-11-26 11:46:44 +08:00
Jesse Yang
3f20f0b5f4 chore(chart-controls): clean up typing (#825)
After recent changes to chart controls in Superset, some typing has become obsolete. Let's clean it up.
2021-11-26 11:46:43 +08:00
dependabot-preview[bot]
c457db93e9 build(deps): bump xss from 1.0.6 to 1.0.8 (#824)
Bumps [xss](https://github.com/leizongmin/js-xss) from 1.0.6 to 1.0.8.
- [Release notes](https://github.com/leizongmin/js-xss/releases)
- [Changelog](https://github.com/leizongmin/js-xss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/leizongmin/js-xss/compare/v1.0.6...v1.0.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:43 +08:00
Ville Brofeldt
f1a6e964e1 chore: bump yarn.lock (#826) 2021-11-26 11:46:43 +08:00
dependabot-preview[bot]
7cb79b3e60 build(deps): bump @types/lodash from 4.14.157 to 4.14.164 (#822)
Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.14.157 to 4.14.164.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:43 +08:00
dependabot-preview[bot]
7b212eacb3 build(deps): bump react-table from 7.2.1 to 7.6.1 (#814)
Bumps [react-table](https://github.com/tannerlinsley/react-table) from 7.2.1 to 7.6.1.
- [Release notes](https://github.com/tannerlinsley/react-table/releases)
- [Changelog](https://github.com/tannerlinsley/react-table/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tannerlinsley/react-table/compare/v7.2.1...v7.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:43 +08:00
Ville Brofeldt
06ef549122 feat(plugin-chart-echarts): add support for formula annotations (#817)
* feat(plugin-chart-echarts): add support for formula annotations

* address comments
2021-11-26 11:46:43 +08:00
dependabot-preview[bot]
2f28131377 build(deps): [security] bump markdown-to-jsx from 6.11.0 to 6.11.4 (#773)
Bumps [markdown-to-jsx](https://github.com/probablyup/markdown-to-jsx) from 6.11.0 to 6.11.4. **This update includes a security fix.**
- [Release notes](https://github.com/probablyup/markdown-to-jsx/releases)
- [Commits](https://github.com/probablyup/markdown-to-jsx/compare/6.11.0...6.11.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:40 +08:00
dependabot-preview[bot]
99777a0edc build(deps): bump @types/jest from 26.0.4 to 26.0.13 (#766)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.4 to 26.0.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:39 +08:00
Jesse Yang
9cc96b96f4 chore: move @types/react to peerDependencies (#774)
* chore: move @types/react to peerDependencies

* chore: move react-bootstrap and react-loadable to peerDependencies, too
2021-11-26 11:46:39 +08:00
Jesse Yang
415ce5efd8 refactor: merge core superset-ui packages (#768)
1. move translation, connection, query to core (#729)
2. update encodable to remove formatter inter-dependency (#744)
3. move number-format and time-format to core (#730)
4. move superset-ui/dimension to core (#732)
5. move superset-ui/color to core (#755)
6. move superset-ui/style to core (#756)
7. move superset-ui/validator to core (#757)
8. move superset-ui/chart-composition to core (#759)
9. move superset-ui/chart to core (#760)
2021-11-26 11:46:38 +08:00
Ville Brofeldt
e916fd9015 feat: Add ECharts Timeseries plugin (#737)
* make it work

* Add color scheme and timeseries limits

* latest improvements

* bump

* moving dependencies to plugin

* Shuffling logic to transformProps, making Typescript happy.

* zoom controls!

* declaration for the dang PNG files

* Revert "declaration for the dang PNG files"

This reverts commit b37f01076e36ba2b05424f861187a182f4d327d6.

* PIE! (super basic)

* lowercase import name, moving types.

* capitalization fix

* nixing console log

* removing echarts peer dependency (missed it earlier)

* basic pie controls/types

* typescript fixes and whatnot

* yarn alphabetizing peerDependencies

* fixing Pie chart typing

* less enthusiasm

* fixing resize and data redraw quirks

* fixing zoom display quirks

* add predictive analytics

* fix controls

* improve typing and tests

* add rebasing to forecasts

* improve stacking etc

* Minor improvements

* add tooltip

* Charts draw and resize correctly

* clean up code

* lint

* yet more lint

* fix unit tests

* fix unit tests

* fix tests

* add useEchartsComponent and address comments

* address comments

* address more comments

* Add Echart component

* bump echarts to 4.9.0

* clean up Echart component

* add storybook

* replace radios with boolean

* address review comments

Co-authored-by: Evan Rusackas <evan@preset.io>
2021-11-26 11:46:37 +08:00
Jesse Yang
46ea73953b chore: clean up a couple of TypeScript warnings (#754) 2021-11-26 11:46:37 +08:00
dependabot-preview[bot]
0ac877ddc3 build(deps): [security] bump lodash from 4.17.15 to 4.17.20 (#735)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.20. **This update includes security fixes.**
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.20)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:37 +08:00
dependabot-preview[bot]
4de1eb9f34 build(deps): bump storybook-addon-jsx from 7.2.3 to 7.3.4 (#736)
Bumps [storybook-addon-jsx](https://github.com/storybookjs/addon-jsx) from 7.2.3 to 7.3.4.
- [Release notes](https://github.com/storybookjs/addon-jsx/releases)
- [Changelog](https://github.com/storybookjs/addon-jsx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/addon-jsx/compare/v7.2.3...v7.3.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:37 +08:00
Jesse Yang
2fd1070a2e chore: update lock file 2021-11-26 11:46:36 +08:00
Mike Du
12bfdb2767 fix: dist bar will render value multi times (#713) 2021-11-26 11:46:36 +08:00
dependabot-preview[bot]
48bf531d04 build(deps): bump @vx/axis from 0.0.197 to 0.0.198 (#683)
Bumps [@vx/axis](https://github.com/hshoff/vx) from 0.0.197 to 0.0.198.
- [Release notes](https://github.com/hshoff/vx/releases)
- [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hshoff/vx/compare/v0.0.197...v0.0.198)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:35 +08:00
dependabot-preview[bot]
a07c831eb2 build(deps): bump @vx/legend from 0.0.197 to 0.0.198 (#673)
Bumps [@vx/legend](https://github.com/hshoff/vx) from 0.0.197 to 0.0.198.
- [Release notes](https://github.com/hshoff/vx/releases)
- [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hshoff/vx/compare/v0.0.197...v0.0.198)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:34 +08:00
dependabot-preview[bot]
10cfefffb0 build(deps): bump @vx/event from 0.0.197 to 0.0.198 (#672)
Bumps [@vx/event](https://github.com/hshoff/vx) from 0.0.197 to 0.0.198.
- [Release notes](https://github.com/hshoff/vx/releases)
- [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hshoff/vx/compare/v0.0.197...v0.0.198)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:34 +08:00
Jesse Yang
7b7c8a0c1a fix(plugin-chart-table): value undefined when table name has dot (#686)
* fix(plugin-chart-table): value undefined when table name has dot

* Upgrade react everywhere

* add comment
2021-11-26 11:46:33 +08:00
dependabot-preview[bot]
5ff6c30ff1 build(deps): bump fetch-retry from 3.1.0 to 4.0.1 (#664)
Bumps [fetch-retry](https://github.com/jonbern/fetch-retry) from 3.1.0 to 4.0.1.
- [Release notes](https://github.com/jonbern/fetch-retry/releases)
- [Commits](https://github.com/jonbern/fetch-retry/compare/3.1.0...4.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:46:33 +08:00