Commit Graph

8959 Commits

Author SHA1 Message Date
Krist Wongsuphasawat
e11071cd9c feat: Add Encoder (#230)
* feat: add encoder

* feat: add encoder

* refactor: revamp encoding types and derivations

* test: add unit tests

* fix: unit tests

* test: add unit tests

* fix: remove unused code

* fix: channeltype
2021-11-26 11:44:58 +08:00
Krist Wongsuphasawat
e07b6210bd build: fix lint errors (#231) 2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
937a7ecb10 feat: Add channel encoder (#224)
* feat: add channel encoder

* fix: all errors

* fix: test

* feat: complete channel encoder implementation and unit tests

* fix: lint

* fix: address comments

* fix: lint
2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
1f70765f40 docs: update storybook doc 2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
2e607e74c0 docs: add contributing guidelines 2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
be9a396c02 docs: update README 2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
be802de20d docs: update README 2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
6cd7beed69 build: fix storybook type (#227) 2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
1978d9bc2e feat(encodable): fill missing fields in user-specified channel definition (#222)
* feat: fill missing fields in user-specified channel definition

* fix: type

* test: add unit tests

* fix: lint

* test: add more unit tests

* test: add unit tests

* test: fix unit tests

* fix: unit tests

* refactor: change order of parameters

* fix: type annotation

* fix: type annotation

* feat: add generic support

* refactor: reorder params

* fix: rename variables
2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
c0c45c2d3c feat: add promiseTimeout (#223) 2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
e6c3fad721 build: suppress logs from intentionally thrown/caught errors (#221) 2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
ba9f4b71f4 docs: update changelog 2021-11-26 11:44:56 +08:00
Krist Wongsuphasawat
e5377abbab v0.12.3 2021-11-26 11:44:56 +08:00
Krist Wongsuphasawat
885e4e9785 fix: fix React.Fragment complaining about width/height (#219) 2021-11-26 11:44:56 +08:00
Krist Wongsuphasawat
99532444f2 build: add missing unit test for callApi (#218)
* build: add missing unit test for callApi

* fix: test
2021-11-26 11:44:56 +08:00
Krist Wongsuphasawat
095c1839b2 feat: add Wrapper support and bounding box for dynamic width/height (#215)
* feat: add Wrapper support and bounding box for dynamic width/height

* fix: unit tests

* fix: address comments and update unit tests

* docs: update storybook
2021-11-26 11:44:56 +08:00
dependabot-preview[bot]
ed45bdfc06 build(deps): update @superset-ui/legacy-plugin-chart-sankey requirement (#217)
Updates the requirements on [@superset-ui/legacy-plugin-chart-sankey](https://github.com/apache-superset/superset-ui-plugins) to permit the latest version.
- [Release notes](https://github.com/apache-superset/superset-ui-plugins/releases)
- [Changelog](https://github.com/apache-superset/superset-ui-plugins/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apache-superset/superset-ui-plugins/compare/v0.10.0...v0.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:44:56 +08:00
dependabot-preview[bot]
10c1998c61 build(deps): update @superset-ui/legacy-plugin-chart-word-cloud requirement (#216)
Updates the requirements on [@superset-ui/legacy-plugin-chart-word-cloud](https://github.com/apache-superset/superset-ui-plugins) to permit the latest version.
- [Release notes](https://github.com/apache-superset/superset-ui-plugins/releases)
- [Changelog](https://github.com/apache-superset/superset-ui-plugins/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apache-superset/superset-ui-plugins/compare/v0.10.0...v0.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:44:56 +08:00
Krist Wongsuphasawat
74679623b0 refactor: rename encodeable to encodable (#214) 2021-11-26 11:44:56 +08:00
Krist Wongsuphasawat
024b318dd2 feat: add functions for parsing scales (#207)
* feat: add more util functions

* feat: add unit test

* feat: define HasToString

* fix: unit test

* fix: update unit tests

* feat: add scale types

* feat: update scale parsing

* fix: enum

* feat: add color scale extraction

* refactor: create scale from config

* feat: parse more scales and add more test

* feat: add tests for band and point

* test: add more unit tests

* refactor: separate applyXXX into multiple files

* feat: parse nice time

* test: add unit tests

* test: make 100% coverage

* fix: complete coverage

* refactor: update type definitions

* fix: address comments

* fix: add comments for date parts

* fix: build issue

* fix: broken tests
2021-11-26 11:44:56 +08:00
dependabot-preview[bot]
3138aaa229 build(deps): update @superset-ui/legacy-preset-chart-big-number requirement (#213)
Updates the requirements on [@superset-ui/legacy-preset-chart-big-number](https://github.com/apache-superset/superset-ui-plugins) to permit the latest version.
- [Release notes](https://github.com/apache-superset/superset-ui-plugins/releases)
- [Changelog](https://github.com/apache-superset/superset-ui-plugins/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apache-superset/superset-ui-plugins/compare/v0.10.0...v0.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:44:55 +08:00
dependabot-preview[bot]
59affbc29e build(deps): update @superset-ui/legacy-plugin-chart-sunburst requirement (#212)
Updates the requirements on [@superset-ui/legacy-plugin-chart-sunburst](https://github.com/apache-superset/superset-ui-plugins) to permit the latest version.
- [Release notes](https://github.com/apache-superset/superset-ui-plugins/releases)
- [Changelog](https://github.com/apache-superset/superset-ui-plugins/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apache-superset/superset-ui-plugins/compare/v0.10.0...v0.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
51e6d05301 docs: update changelog 2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
d70e634d32 v0.12.2 2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
bffc760ac8 fix: remove is_prequery and prequeries (#208) 2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
3928e063ae v0.12.1 2021-11-26 11:44:55 +08:00
Ville Brofeldt
dc9d0a0d40 feat: add duration formatter (#209)
* feat: add duration formatter

* fix: address review comments
2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
13ceb8dc70 fix: peerDependencies version (#210) 2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
3e5789d150 docs: update readme 2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
129042b6af docs: update changelog 2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
287ee479e0 v0.12.0 2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
be65a04238 feat: add functions for parsing formatters from encoding (#205)
* feat: add function for parsing formatters from encoding

* fix: add unit test

* feat: add getter

* fix: update type
2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
3df26ae76d refactor(chart): remove and rename fields in ChartProps (#174)
* refactor(chart): remove and remove fields in ChartProps

BREAKING CHANGE: ChartProps fields are removed and renamed.

* test: update tests

* fix: unit tests

* fix: type
2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
cb9e617d90 feat: Add types and type guards for encodeable (#201)
* feat: scaffold superset-ui-encodeable

* feat: add type and typeguards

* fix: remove unused

* docs: update comments

* fix: address comments
2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
a7a12c79a2 feat: add control panel support to chart plugin (#203) 2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
0fb91c0e6b feat: deprecate old SuperChart API that accepts chartProps (#202)
BREAKING CHANGE: No longer accept chartProps as a single prop in <SuperChart>. Developers must specify each field in chartProps individually.
2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
9decd815ec feat: split superset-ui/query from superset-ui/chart (#178)
BREAKING CHANGE: some api and types are removed from @superset-ui/chart and moved to /query

* feat: split superset-ui/query from superset-ui/chart

* fix: update references

* test: fix broken tests

* refactor: rename ChartFormData to QueryFormData

* fix: rename file

* fix: remove annotation layer from query package
2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
fa70a61f50 docs: update change log 2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
277c2fb457 v0.11.15 2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
77e7a5319a feat: optimize functions for getting text dimension (#199)
* feat: add function for getting multiple text dimensions

* feat: lazy deletion

* feat: use lazy factory

* fix: comments

* fix: rename variable
2021-11-26 11:44:54 +08:00
erik_ritter
5badd26abb docs: update changelog 2021-11-26 11:44:53 +08:00
erik_ritter
02265669b3 v0.11.14 2021-11-26 11:44:53 +08:00
Erik Ritter
f0204ea9bd feat: allow reactify callbacks to access props (#200) 2021-11-26 11:44:53 +08:00
dependabot-preview[bot]
37e08a7a9d build(deps-dev): update lint-staged requirement from ^8.0.4 to ^9.2.1 (#197)
Updates the requirements on [lint-staged](https://github.com/okonet/lint-staged) to permit the latest version.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v8.0.4...v9.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:44:53 +08:00
Krist Wongsuphasawat
e48b445bfe fix: eslint issues (#198) 2021-11-26 11:44:53 +08:00
schoel-bis
fb4a3c2ec5 fix(connection): disable caching when on an insecure connection (#194)
When the page is served over an insecure connection, some browsers (Firefox) will disable the
CacheStorage API for security reasons and will throw an error when an attempt is made to use it.
Thus, do not even attempt to use CacheStorage on such connections in the first place.

fix #193
2021-11-26 11:44:53 +08:00
dependabot-preview[bot]
69238f0f07 build(deps-dev): update husky requirement from ^2.3.0 to ^3.0.1 (#195)
Updates the requirements on [husky](https://github.com/typicode/husky) to permit the latest version.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v2.3.0...v3.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:44:53 +08:00
Erik Ritter
e1c635d9e2 fix: clean up unneeded Promise.resolves() (#185) 2021-11-26 11:44:53 +08:00
dependabot-preview[bot]
e9c2b7146a build(deps): update whatwg-fetch requirement from ^2.0.4 to ^3.0.0 (#150)
Updates the requirements on [whatwg-fetch](https://github.com/github/fetch) to permit the latest version.
- [Release notes](https://github.com/github/fetch/releases)
- [Commits](https://github.com/github/fetch/compare/v2.0.4...v3.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2021-11-26 11:44:53 +08:00
Erik Ritter
3d6ef61658 fix: move eslint disable comment in reactify test (#184) 2021-11-26 11:44:53 +08:00