Commit Graph

1061 Commits

Author SHA1 Message Date
Krist Wongsuphasawat
d40a7d140a docs: update changelog 2021-11-26 11:46:13 +08:00
dependabot-preview[bot]
bb985c3672 build(deps): bump dompurify from 2.0.10 to 2.0.11 (#449)
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 2.0.10 to 2.0.11.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/2.0.10...2.0.11)

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:13 +08:00
dependabot-preview[bot]
8d82317bf7 build(deps-dev): bump lint-staged from 10.2.0 to 10.2.2 (#431)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.2.0 to 10.2.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.2.0...v10.2.2)

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:12 +08:00
dependabot-preview[bot]
c2434dcef3 build(deps): bump yeoman-generator from 4.9.0 to 4.10.0 (#438)
Bumps [yeoman-generator](https://github.com/yeoman/generator) from 4.9.0 to 4.10.0.
- [Release notes](https://github.com/yeoman/generator/releases)
- [Commits](https://github.com/yeoman/generator/compare/v4.9.0...v4.10.0)

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:12 +08:00
dependabot-preview[bot]
ae13204ec9 build(deps): bump @vx/axis from 0.0.195 to 0.0.196 (#450)
Bumps [@vx/axis](https://github.com/hshoff/vx) from 0.0.195 to 0.0.196.
- [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.195...v0.0.196)

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:12 +08:00
Krist Wongsuphasawat
67e15d011a fix: hundreds lint warning (#447)
* fix: lint

* fix: more lints

* fix: more lints

* fix: comment

* fix: any

* fix: ChartDataProvider test lint

* fix: lints

* fix: chartprops
2021-11-26 11:46:12 +08:00
Evan Rusackas
6d7de01abe chore(release): publish v0.13.8 2021-11-26 11:46:12 +08:00
Ville Brofeldt
5e541322fd fix: Remove .ts suffix from NVD3 imports (#453)
* fix: Remove .ts suffix from imports

* add lint disable

* yet more
2021-11-26 11:46:12 +08:00
dependabot-preview[bot]
82349fcd44 build(deps): bump moment from 2.25.0 to 2.25.3 (#441)
Bumps [moment](https://github.com/moment/moment) from 2.25.0 to 2.25.3.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/commits)

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:12 +08:00
dependabot-preview[bot]
4fa971b063 build(deps): bump @vx/scale from 0.0.195 to 0.0.196 (#434)
Bumps [@vx/scale](https://github.com/hshoff/vx) from 0.0.195 to 0.0.196.
- [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.195...v0.0.196)

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:12 +08:00
Evan Rusackas
f75c378935 chore(release): publish v0.13.7 2021-11-26 11:46:12 +08:00
dependabot-preview[bot]
68b16a954b build(deps): bump @vx/responsive from 0.0.195 to 0.0.196 (#436)
Bumps [@vx/responsive](https://github.com/hshoff/vx) from 0.0.195 to 0.0.196.
- [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.195...v0.0.196)

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:12 +08:00
Evan Rusackas
9d946f0a04 feat(plugin-chart-sunburst): migrate control panel from incubator-superset (#443)
* chore: pulling in controls from incubator-superset

* style: adding extension to make eslint happy

* un-bumping version

* style: removing .ts, ignoring lint warning
2021-11-26 11:46:11 +08:00
Krist Wongsuphasawat
e87bf3bc24 chore(release): publish v0.13.6 2021-11-26 11:46:11 +08:00
Ville Brofeldt
57ae5e482e chore(legacy-preset-chart-nvd3): move bullet chart option parsing from backend to frontend (#440)
* chore: move bullet chart option parsing from backend to frontend

* fix: lintiing

* fix: lintiing

* chore: add unit tests and license headers

* fix: unit tests

* fix: lint

* Move dependency

* convert to typescript and add unit tests for decimal cases

* fix tests

* fix import error

* change Number to number
2021-11-26 11:46:11 +08:00
Ville Brofeldt
4322d1cd39 feat(query): Add force to QueryContext (#445)
* Add force to QueryContext

* fix tests

* fix test
2021-11-26 11:46:11 +08:00
Ville Brofeldt
5ff9f2220a fix(legacy-plugin-world-map): set useLegacyApi to true by default (#444) 2021-11-26 11:46:11 +08:00
David Aaron Suddjian
561f309d09 add calendar control panel (#432) 2021-11-26 11:46:11 +08:00
dependabot-preview[bot]
25cea1d824 build(deps): bump moment from 2.24.0 to 2.25.0 (#430)
Bumps [moment](https://github.com/moment/moment) from 2.24.0 to 2.25.0.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.24.0...2.25.0)

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:11 +08:00
Krist Wongsuphasawat
ec061d18fb docs: update changelog 2021-11-26 11:46:11 +08:00
Krist Wongsuphasawat
95cd9cc4d5 chore(release): publish v0.13.5 2021-11-26 11:46:11 +08:00
Krist Wongsuphasawat
62b2a50faf fix: lint errors (#420)
* fix: lint errors

* fix: lint

* fix: more lints

* fix: broken test

* fix: singleton type
2021-11-26 11:46:11 +08:00
Krist Wongsuphasawat
619045048f fix(plugin-chart-word-cloud): make wordcloud take current formdata (#428)
* fix: make wordcloud take current formdata

* docs: fix storybook
2021-11-26 11:46:10 +08:00
Krist Wongsuphasawat
445a44642c chore(legacy-preset-chart-big-number): rename directory (#427)
* chore: rename directory

* chore: correct naming
2021-11-26 11:46:10 +08:00
Krist Wongsuphasawat
7cce8f0081 feat(superset-ui): include control utils in the umbrella package (#421) 2021-11-26 11:46:10 +08:00
dependabot-preview[bot]
a8d6b83698 build(deps): bump @babel/runtime from 7.9.2 to 7.9.6 (#423)
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) from 7.9.2 to 7.9.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.9.6/packages/babel-runtime)

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:10 +08:00
dependabot-preview[bot]
9d732d47c4 build(deps-dev): bump @babel/core from 7.9.0 to 7.9.6 (#426)
Bumps [@babel/core](https://github.com/babel/babel) from 7.9.0 to 7.9.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.9.0...v7.9.6)

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:10 +08:00
dependabot-preview[bot]
1221302995 build(deps): bump encodable from 0.3.4 to 0.3.5 (#425)
Bumps [encodable](https://github.com/apache-superset/encodable) from 0.3.4 to 0.3.5.
- [Release notes](https://github.com/apache-superset/encodable/releases)
- [Changelog](https://github.com/apache-superset/encodable/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apache-superset/encodable/compare/v0.3.4...v0.3.5)

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:10 +08:00
Krist Wongsuphasawat
be6789f9aa chore(legacy-plugin-chart-table): rename directory (#422) 2021-11-26 11:46:10 +08:00
Krist Wongsuphasawat
c45a534e2f chore(release): publish v0.13.4 2021-11-26 11:46:10 +08:00
David Aaron Suddjian
9c2495c03c feat(legacy-plugin-chart-big-number): add control panel config for the BigNumber charts (#419)
* move nvd3 controls file to the correct directory

* feat: BigNumber registers its own controls

* fix: nvd3 controls imports

* fix: disable rules for some lines

* controls -> controlPanel

* control utils got moved

* fix: control utils required from nvd3

* fix: version

Co-authored-by: Krist Wongsuphasawat <krist.wongz@gmail.com>
2021-11-26 11:46:10 +08:00
Krist Wongsuphasawat
ead6efe5ad chore(release): publish v0.13.3 2021-11-26 11:46:10 +08:00
Krist Wongsuphasawat
79ffc1bb59 build: change config 2021-11-26 11:46:09 +08:00
Krist Wongsuphasawat
279f5d372d chore(release): publish v0.13.2 2021-11-26 11:46:09 +08:00
Krist Wongsuphasawat
5152708e83 fix: peer dependencies 2021-11-26 11:46:09 +08:00
Krist Wongsuphasawat
8e2732d282 chore(release): publish v0.13.1 2021-11-26 11:46:09 +08:00
Krist Wongsuphasawat
82503cedf3 fix: bump peer dependencies 2021-11-26 11:46:09 +08:00
Krist Wongsuphasawat
f226e14869 build: remove list changes which stop auto-publishing 2021-11-26 11:46:09 +08:00
Krist Wongsuphasawat
01701b6acd docs: update changelog 2021-11-26 11:46:09 +08:00
Krist Wongsuphasawat
7d746a482c chore(release): publish v0.13.0 2021-11-26 11:46:09 +08:00
Krist Wongsuphasawat
91d00ac8b1 feat(plugin-word-cloud): change how wordcloud is exported (#418)
* feat(plugin-word-cloud): change how wordcloud is exported

* docs: fix storybook
2021-11-26 11:46:09 +08:00
Krist Wongsuphasawat
2be7b4ba0a feat(control-utils): add packages control-utils (#417)
* feat(control-utils): add package

* fix: remove export

* fix: export

* fix: dep version
2021-11-26 11:46:09 +08:00
dependabot-preview[bot]
4baff0f9e1 build(deps-dev): bump lint-staged from 10.1.3 to 10.2.0 (#415)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.1.3 to 10.2.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.1.3...v10.2.0)

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:08 +08:00
Krist Wongsuphasawat
ea27fbb246 chore: delete unused files (#412)
* chore: delete unused files

* chore: delete files

* chore: move files back
2021-11-26 11:46:08 +08:00
ʈᵃᵢ
c21ad5cee4 fix: export superset theme props (#391)
* fix: export superset theme props

* add spec
2021-11-26 11:46:08 +08:00
dependabot-preview[bot]
7ce8637c09 build(deps): bump @types/react-dom from 16.9.6 to 16.9.7 (#394)
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 16.9.6 to 16.9.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

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:08 +08:00
dependabot-preview[bot]
145f7e4c62 build(deps): bump d3-color from 1.4.0 to 1.4.1 (#392)
Bumps [d3-color](https://github.com/d3/d3-color) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/d3/d3-color/releases)
- [Commits](https://github.com/d3/d3-color/compare/v1.4.0...v1.4.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:08 +08:00
dependabot-preview[bot]
0d2276dd1f build(deps): bump yeoman-generator from 4.8.2 to 4.9.0 (#395)
Bumps [yeoman-generator](https://github.com/yeoman/generator) from 4.8.2 to 4.9.0.
- [Release notes](https://github.com/yeoman/generator/releases)
- [Commits](https://github.com/yeoman/generator/compare/v4.8.2...v4.9.0)

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:08 +08:00
dependabot-preview[bot]
473900594a build(deps): bump @vx/legend from 0.0.194 to 0.0.195 (#396)
Bumps [@vx/legend](https://github.com/hshoff/vx) from 0.0.194 to 0.0.195.
- [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.194...v0.0.195)

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:08 +08:00
Krist Wongsuphasawat
587e6e1a77 feat(preset-chart-nvd3): migration from plugins repo (#399) 2021-11-26 11:46:08 +08:00
dependabot-preview[bot]
6f2005d1f3 build(deps): bump @types/lodash from 4.14.149 to 4.14.150 (#397)
Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.14.149 to 4.14.150.
- [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:08 +08:00
Ville Brofeldt
9aa7b6f5ee chore: bump pretty-ms (#398)
* chore: bump pretty-ms

* fix: unit test

* fix: Add unit test for colonNotation
2021-11-26 11:46:07 +08:00
David Aaron Suddjian
fb4664235b feat(chart): add shared plugin controls utilities (#389)
* add shared controls utilities

* accidentally yarn lock

* bring in date formatting fix

* turn off no-plusplus rule

* address PR feedback, reorganize modules a bit

* turn off no-plusplus

* bring in new external changes

* superset-ui packages should be peer dependencies

* add tests for ported in code
2021-11-26 11:46:07 +08:00
Krist Wongsuphasawat
afed1a0818 feat(preset-chart-xy): migrate from plugins repo (#377)
* chore: move chart-xy and word-cloud

* fix: babel settings

* fix: remove file

* docs: update storybook code

* docs: word cloud storybook working

* chore: move files back

* fix: ts issues

* fix: import path

* fix: all storybook thingy

* fix: add query storybook back

* fix: address comments

* fix: sorting
2021-11-26 11:46:07 +08:00
Jesse Yang
8ab578e121 fix(superset-ui-query): add unit tests for #387 (#390) 2021-11-26 11:46:07 +08:00
Ville Brofeldt
1917d84c7a fix: make all filter operators uppercase (#378)
* fix: make all filter operators uppercase

* fix: test case

* fix: convertFilter test case
2021-11-26 11:46:07 +08:00
Jesse Yang
10e9db8226 chore(legacy-table): move @types/datatables.net to dependencies
So to `npm link` in `incubator-superset` can work.
2021-11-26 11:46:07 +08:00
Jesse Yang
e20e086a80 chore: ignore yarn.lock in child packages 2021-11-26 11:46:07 +08:00
erik_ritter
aa4a8cf6c4 chore(release): publish v0.12.23 2021-11-26 11:46:07 +08:00
Erik Ritter
0cb4e4f9ff fix: unset row_limit when it's not a number (#387)
* fix: unset row_limit when it's not a number

* fix: address comments
2021-11-26 11:46:07 +08:00
erik_ritter
0293228f44 chore(release): publish v0.12.22 2021-11-26 11:46:06 +08:00
Erik Ritter
b711d3eba7 feat: add retry to callApi (#384) 2021-11-26 11:46:06 +08:00
Jesse Yang
9b009e7198 feat(table): enable table filter and better typing (#344) 2021-11-26 11:46:06 +08:00
Krist Wongsuphasawat
aa2cdcaad5 chore(release): publish v0.12.21 2021-11-26 11:46:06 +08:00
Krist Wongsuphasawat
8dd02b3633 feat(legacy-plugin-chart-country-map): migrate and replace india map (#376)
* feat(legacy-plugin-chart-country-map): migrate and replace india map with smaller file

* fix: lint

* chore: move files

* docs: update storybook

* docs: wire storybook

* fix: lint
2021-11-26 11:46:06 +08:00
Krist Wongsuphasawat
084a1b3600 build: remove demo page build 2021-11-26 11:46:06 +08:00
Krist Wongsuphasawat
81ca3b9801 feat: migrate chart plugins (#375)
* feat(legacy-plugin-chart-rose): migrate package and lint

* feat(legacy-plugin-chart-sankey): migrate

* feat(legacy-plugin-chart-sankey-loop): migrate

* feat(legacy-plugin-chart-sunburst): migrate and lint

* feat(legacy-plugin-chart-treemap): migrate

* feat(legacy-plugin-chart-world-map): migrate

* docs: update storybooks

* feat(legacy-plugin-chart-force-directed): migrate and lint

* feat(legacy-plugin-chart-map-box): migrate and lint

* feat(legacy-plugin-chart-histogram): migrate and lint

* docs: update storybooks
2021-11-26 11:46:06 +08:00
Krist Wongsuphasawat
2bd63d92c4 build: disable version bumping 2021-11-26 11:46:05 +08:00
Krist Wongsuphasawat
1e2039388f chore(release): publish v0.12.20 2021-11-26 11:46:05 +08:00
Krist Wongsuphasawat
f230f3b89f build: configure publish workflow 2021-11-26 11:46:05 +08:00
Krist Wongsuphasawat
a45efd7cb8 build: update workflow 2021-11-26 11:46:05 +08:00
Krist Wongsuphasawat
07091811f0 build: fix ci 2021-11-26 11:46:05 +08:00
Krist Wongsuphasawat
5aa5854d3f build: fix workflow 2021-11-26 11:46:05 +08:00
Krist Wongsuphasawat
830e305d1e build: update workflow 2021-11-26 11:46:05 +08:00
Krist Wongsuphasawat
3f24fb447a build: update workflow 2021-11-26 11:46:05 +08:00
Krist Wongsuphasawat
53f9f84570 build: update workflow 2021-11-26 11:46:05 +08:00
Krist Wongsuphasawat
7b641b9278 build: update workflow 2021-11-26 11:46:04 +08:00
Krist Wongsuphasawat
51e27a6555 build: update workflow 2021-11-26 11:46:04 +08:00
Krist Wongsuphasawat
f28aa7d72b build: update workflow 2021-11-26 11:46:04 +08:00
Krist Wongsuphasawat
ff51929ada build: add more scripts and pilot workflow 2021-11-26 11:46:04 +08:00
Krist Wongsuphasawat
ca3897c638 chore: move files 2021-11-26 11:46:04 +08:00
Krist Wongsuphasawat
41d62ba640 docs: update readme 2021-11-26 11:46:04 +08:00
Krist Wongsuphasawat
b562418eb6 docs: update url in package.json and readme 2021-11-26 11:46:04 +08:00
Krist Wongsuphasawat
f00c2ffdae docs: update readme 2021-11-26 11:46:04 +08:00
Krist Wongsuphasawat
8d688d5c10 chore: remove already migrated packages 2021-11-26 11:46:04 +08:00
Krist Wongsuphasawat
dfb0451022 chore: move unmigrated files 2021-11-26 11:46:03 +08:00
Krist Wongsuphasawat
493df5c808 feat: migrate xy-chart to use encodable (#438)
* feat: migrate xy-chart to use encodable (#420)

* feat: use encodable in BoxPlot

* feat: migrate legend

* docs: update storybook

* fix: label overlap

* fix: lint

* fix: remove comments

* fix: path

* feat: migrate scatterplot to use encodable (#421)

* feat: migrate scatter plot

(cherry picked from commit 0d607a60cdab8037ece7f29a74bef1c0a5432c5d)

* fix: legend

* feat: migrate line chart to use encodable (#427)

* feat: migrate line to use encodable

* fix: storybook ts

* fix: remove comment

* refactor: delete deprecated files (#430)

* refactor: delete outdated files

* feat: update index exports and add test

* refactor: delete more files

* fix: import order

* fix: update dependency

* fix: update dependency

* build: fix babel

* fix: remvoe comments

* fix: babel

* refactor: move files (#432)

* refactor: move files

* refactor: move files

* fix: small issues with charts post-migration (#433)

* fix: scatterplot issue

* fix: bump encodable and fix time scale nicing

* fix: issue with label rotation

* refactor: remove deep import

* fix: demo import

* feat: bump and remove unnecessary dependencies (#436)

* feat: bump dependencies

* feat: remove unnecessary dependencies
2021-11-26 11:46:02 +08:00
wyg
2aae804ae5 fix: compatible with window (#426) 2021-11-26 11:46:02 +08:00
Jianchao Yang
7497a61be6 chore: cleanup big number and table chart (#422)
They are moved to superset-ui by apache-superset/superset-ui#333
2021-11-26 11:46:02 +08:00
Krist Wongsuphasawat
0176d1dd04 v0.11.21 2021-11-26 11:46:02 +08:00
Jianchao Yang
80b6e066eb feat(big-number): allow fallback to last available value and fix time range for trend lines (#403)
* feat(big-number): add option to align time range

In Superset, when a timeseries query has no data at the beginning period
or end period of the filtered time range, there will not no data records
at those periods, hence the trendline in Big Number chart would not
render those periods. This often causes confusion and misinterpretaiton
in dashboards, especially for those with multiple trendline charts
aligned with each other. They could all be a very smooth line, but
actually showing very different time ranges.

This PR adds an option "alignTimeRange" to apply the filtered time
range on the xAxis. Date periods for empty data will be rendered, but
there will be no connected lines, dots, or tooltips for them.

It's possible to still show tooltips for those periods, but I decided
not to do that as: 1) it makes things much more complicated; 2) I don't
want to confuse zero or nulls with empty data.

* fix(big-number): disable alignRange by default

* refactor(big-number): migrate to Typescript

* fix(big-number): typescript build

* fix(big-number): change tooltip trigger; fix storybook

* fix(big-number): move @types to dependencies

* fix(big-number): move all files to ts

* build(big-number): add @types/d3-color as dependency

* refactor(big-number): remove renderTooltip as prop

* feat(big-number): add timeRangeUseFallback options and some refactor

* fix(big-number): update formatting functions

* fix(big-number): update copy for no data

* fix(big-number): address PR feedbacks

* feat(big-number): replace timeRangeUseFallback with bigNumberFallback

* fix: upgrade @types/react-bootstrap

* build(big-number): move react-bootstrap to dependencies

* refactor(big-number): more coherent types

* feat(big-number): use alert box for fallback values

* build(big-number): remove react-bootstrap

* build: upgrade nimbus and fix versions

Keep running into building errors locally, so upgrade nimbus and
fix all related packages to the working latest version.

* feat(big-number): adjust fallback warning alignment

* build: use a non-fixed version for @types/shortid

* build: revert package versions in main
2021-11-26 11:46:02 +08:00
Jianchao Yang
cb3206b583 feat(big-number): format datetime according to granularity (#402)
This adds support for "Time Grain" in Superset for Big Number with Trendline chart.
2021-11-26 11:46:02 +08:00
Krist Wongsuphasawat
5532c5ee1d v0.11.20 2021-11-26 11:46:02 +08:00
Jianchao Yang
f45ab69462 fix(legacy-table): adjust sort icon position (#399) 2021-11-26 11:46:02 +08:00
Krist Wongsuphasawat
c41297827b v0.11.19 2021-11-26 11:46:01 +08:00
Jianchao Yang
182d112d86 fix(legacy-table): container height on tall headers (#398)
* fix(legacy-table): container height on tall headers

* fix(legacy-table): possible undefined lint error
2021-11-26 11:46:01 +08:00
Krist Wongsuphasawat
2571d516eb v0.11.18 2021-11-26 11:46:01 +08:00
Jianchao Yang
b51674e172 fix(legacy-table-chart): when data is empty (#397) 2021-11-26 11:46:01 +08:00
Krist Wongsuphasawat
d831f3fcd1 v0.11.17 2021-11-26 11:46:01 +08:00
dependabot-preview[bot]
093df00361 build(deps): bump @vx/scale from 0.0.194 to 0.0.195 (#394)
Bumps [@vx/scale](https://github.com/hshoff/vx) from 0.0.194 to 0.0.195.
- [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.194...v0.0.195)

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:01 +08:00