Commit Graph

8839 Commits

Author SHA1 Message Date
Krist Wongsuphasawat
183547b9e0 v0.10.6 2021-11-26 11:44:45 +08:00
Chris Williams
fea7c589f5 chore(chart): remove faux @superset-ui/core TS declaration (#121)
* chore(chart): remove faux @superset-ui/core TS declaration

* test(chart): test all ChartPlugin.register() branches

* refactor(chart): support loaders that return esmodules

* refactor(chart): rename ChartMetaDataConfig => ChartMetadataConfig

* test(chart): fix loader test + branch coverage

* test(chart): hit all branches in sanitizeLoader

* refactor(chart): use ChartMetadata in registry
2021-11-26 11:44:45 +08:00
Chris Williams
30cc661f11 v0.10.5 2021-11-26 11:44:45 +08:00
Chris Williams
df18f3b0f9 v0.10.5 2021-11-26 11:44:45 +08:00
Chris Williams
49efedb83e v0.10.5 2021-11-26 11:44:45 +08:00
Chris Williams
7ad0e1f57d v0.10.5 2021-11-26 11:44:45 +08:00
Chris Williams
061faab818 feat(chart): Add <ChartDataProvider /> (#120)
* docs: [demo][connection] add ConfigureCORS story for testing CORS

* docs: [demo][ConfigureCORS] better instructions

* feat: [chart] add mvp DataProvider component

* docs: better CORS story, update webpack for @babel/polyfill

* docs: [chart] add DataProvider story with WordCloudPlugin

* docs: [chart] add DataProvider deets to Readme

* test(chart): move SuperChart.test.jsx => .tsx and instead use @ts-ignore

* fix(connection): point interface.request to client.request

* feat(chart): re-write DataProvider as ChartDataProvider

* docs(demo): re-write LegacyWordCloudStories => ChartDataProviderStories

* refactor(chart): use IDENTITY as ChartPlugin buildQuery default

* feat(chart): support legacy + v1 loadQueryData endpoints in ChartClient

* docs(demo): add sankey + sunburst plugins to ChartDataProvider story

* style(chart): run prettier on SuperChart

* feat(chart): export QueryData type from models/ChartProps

* feat(chart): export Metrics and BaseFormData from types/ChartFormData

* feat(chart): add request option overrides in ChartDataProvider

* fix(chart): use Partial<> for ChartClient request option overrides

* test(chart): add ChartDataProvider tests

* build: include demo pkg in type script

* build: move storybook/mocks to test/fixtures

* build: move json-bigint TS declaration to root

* test(chart): clean up ChartDataProvider test TS

* chore(chart): lint fix SuperChart

* fix(chart): set ChartPlugin.buildQuery default back to undefined

* test(connection): fix expected Client.get call count

* test(chart): fix ChartClient tests and add test for legacy API

* fix(chart): uninitialized typo, change fetching => loading

* docs(chart): update README to final ChartDataProvider API

* docs(chart): fix typo

* test(chart): get ChartDataProvider to one hundo

* feat(chart): add and export more meaningful Datasource type

* feat(chart): use Datasource type in ChartClient
2021-11-26 11:44:45 +08:00
Chris Williams
facb0aa4b3 docs(demo): Add TS support + CORS demo (#118)
* docs: [demo] add custom webpack config to resolve TS files

* docs: [demo] add @babel/polyfill

* docs: [demo][connection] add ConfigureCORS story for testing CORS

* docs: [demo][ConfigureCORS] better instructions

* fix: [demo] install an existing version of @superset-ui/connection

* docs: better CORS story, update webpack for @babel/polyfill
2021-11-26 11:44:45 +08:00
Conglei
86c0c26213 feat: 🎸 Improved QueryObject to handle more fields (#116)
* feat: 🎸 Improved QueryObject to handle more fields

The commit is to ensure the feature parity between frontend and backend
QueryOjbect

* test: 💍 Added tests to improve the coverage
2021-11-26 11:44:45 +08:00
Krist Wongsuphasawat
01a411ebc5 v0.10.4 2021-11-26 11:44:45 +08:00
Krist Wongsuphasawat
ac241aa599 feat: add dimension type (#117) 2021-11-26 11:44:44 +08:00
Krist Wongsuphasawat
a98cde6b3e feat: re-export types from @superset-ui/dimension (#115) 2021-11-26 11:44:44 +08:00
Krist Wongsuphasawat
4c49331f3c v0.10.3 2021-11-26 11:44:44 +08:00
Krist Wongsuphasawat
349adeda92 docs: update CHANGELOG 2021-11-26 11:44:44 +08:00
Krist Wongsuphasawat
494f7853c7 docs: update CHANGELOG 2021-11-26 11:44:44 +08:00
Krist Wongsuphasawat
e5d7e50ee2 feat: add mergeMargin() function (#114)
* feat: add mergeMargin()

* fix: typings

* refactor: address chris' comments
2021-11-26 11:44:44 +08:00
Krist Wongsuphasawat
b162aacb90 v0.10.2 2021-11-26 11:44:44 +08:00
Krist Wongsuphasawat
72772e9ed9 docs: update changelog 2021-11-26 11:44:44 +08:00
fabiomendescom
3c53885aba feat(superset-ui-connection): Allow PUT and PATCH in call API 2021-11-26 11:44:44 +08:00
Krist Wongsuphasawat
9454aed59f feat: 🎸 add .clone() function to ChartMetadata (#112)
* feat: 🎸 add .clone() function to ChartMetadata

* test: 💍 add unit tests

* fix: 🐛 lint
2021-11-26 11:44:44 +08:00
Krist Wongsuphasawat
e14d6567a9 v0.10.1 2021-11-26 11:44:44 +08:00
Krist Wongsuphasawat
ca04f8ce85 refactor: make @superset-ui/core peer dependency (#111)
* refactor: 💡 make @superset-ui/core peer dependency

BREAKING CHANGE: @superset-ui/core becomes peer dependency
2021-11-26 11:44:43 +08:00
Krist Wongsuphasawat
3c85cd1ffc chore: add commitlint and commitizen config 2021-11-26 11:44:43 +08:00
Krist Wongsuphasawat
df861706e3 docs: update changelog 2021-11-26 11:44:43 +08:00
Krist Wongsuphasawat
1975277cb0 v0.10.0 2021-11-26 11:44:43 +08:00
Krist Wongsuphasawat
0cde8a2884 feat: Add SMART_NUMBER formatter and make it default (#109)
* feat: implement smart number format

* test: add unit tests

* refactor: Rename number formats
BREAKING CHANGE: NumberFormat.xxx are renamed

* feat: Make smart number default formatter

* fix: add unit test

* refactor: move formatters outside
2021-11-26 11:44:43 +08:00
Krist Wongsuphasawat
8fe9e2f2cb refactor: Migrate word cloud to superset-ui-plugins (#110)
refactor: Migrate word cloud to superset-ui-plugins
2021-11-26 11:44:43 +08:00
Krist Wongsuphasawat
0332e8d602 Feat: Set default color scheme for the color registries (#108)
* Set default color scheme for the color registries

* fix: Add unit test
2021-11-26 11:44:43 +08:00
Krist Wongsuphasawat
0f5e88eb5a Feat: Enable warnings when values are overwritten in registries (#107)
* enable warning

* add warning

* fix order
2021-11-26 11:44:43 +08:00
Krist Wongsuphasawat
11378a4ea5 Fix: update build config version (#106) 2021-11-26 11:44:43 +08:00
Krist Wongsuphasawat
e4cd35a02e Rename FormData to ChartFormData (#100) 2021-11-26 11:44:43 +08:00
Krist Wongsuphasawat
dd9cf0deb6 Point to @superset-ui/build-config 2021-11-26 11:44:42 +08:00
Krist Wongsuphasawat
d7f8394cd6 seems not helpfing 2021-11-26 11:44:42 +08:00
Krist Wongsuphasawat
e2ff5523b7 Update changelog and pin beemo version 2021-11-26 11:44:42 +08:00
Krist Wongsuphasawat
b175c28df8 v0.9.6 2021-11-26 11:44:42 +08:00
Krist Wongsuphasawat
b17b350c3a fix superset-ui-chart peerDependencies 2021-11-26 11:44:42 +08:00
Krist Wongsuphasawat
86cde58f0f v0.9.5 2021-11-26 11:44:42 +08:00
Krist Wongsuphasawat
80290426ec Remove unnecessary export types and reorganize types (#99)
* fix re-export types in translation

* Fix more types

* reorganize type in chart package

* Fix unit tests

* remove Array<> in favor of []
2021-11-26 11:44:42 +08:00
Krist Wongsuphasawat
dba200aa84 Manage dependencies (#98) 2021-11-26 11:44:42 +08:00
Krist Wongsuphasawat
b22f9b941a update change log and dependency (#97) 2021-11-26 11:44:42 +08:00
Krist Wongsuphasawat
74365f4271 v0.9.4 2021-11-26 11:44:42 +08:00
Krist Wongsuphasawat
d7da5ff0cb Merge branch 'kristw--template' 2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
6c3a410a0e make id optional (#96) 2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
48c881f5c3 update generator and bump build config version 2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
9863d8779f update @data-ui/config to fix build (#95)
* update @data-ui/config

* update to 39
2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
87a78ded84 Add storybooks for number-format and time-format (#93)
* add number format storybook

* Add explanation

* add time-format storybook
2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
447537f5d7 v0.9.3 2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
7a922f0527 make lerna use yarn workspaces 2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
dc363854e9 specify npm client for lerna 2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
55248c10c5 remove unnecessary dependencies 2021-11-26 11:44:41 +08:00