Krist Wongsuphasawat
92f7794a44
Add @superset-ui/dimension ( #88 )
...
* add code for computing text dimension
* update readme
* Add unit tests
* remove dependency
* refactor util function
* add description
2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
f389bd2fb5
Add unit test for generator to keep 100% coverage ( #89 )
2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
df7a49cfac
Minor updates for generators ( #87 )
...
* update version in package template
* change only first letter to uppercase
* update template
* add language choice
2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
0e79c602eb
v0.9.2
2021-11-26 11:44:40 +08:00
Maxime Beauchemin
b12bb31bd0
[SupersetClient] Implement put and delete HTTP methods ( #85 )
...
* feat: Allow any http METHOD
* Add method to RequestConfig
* linting
* fix tests
2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
6e8fe718b1
Add more subgenerators to create package and demo in superset-ui-legacy ( #86 )
...
* feat: add new subgenerators for legacy package and demo
* feat: make the default generator provide choices to choose subgenerators
2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
2ae8d7a74d
v0.9.1
2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
d9252d75d4
fix jed type export ( #83 )
2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
59402bbce6
v0.9.0
2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
68b97db5d7
Convert time-format to TypeScript ( #78 )
...
* convert source to TS
* fix lint
* convert unit test to TS
* fix rebasing issue
* fix typings
* use ts-ignore
2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
18746a9789
make jed work ( #82 )
2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
26f12af273
add legacy flag ( #80 )
2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
597d9b362d
Convert translation to typescript ( #74 )
...
* Convert translation to typescript
* update input types
* update travis
* update node version
2021-11-26 11:44:39 +08:00
Chris Williams
458d9b9987
[deps] build-config@0.0.37 ( #79 )
...
* [deps] build-config@0.0.37
* [chart] lint SuperChart
2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
9a7e3dc7b2
Convert number-format to TypeScript ( #75 )
...
* Convert number-format to TypeScript
* return string
* unit test 100%
* Allow developer to specify return type for loader
* add doc
2021-11-26 11:44:39 +08:00
Christopher Council
56f8af889f
Combined two similarly-named test files, updated release notes ( #76 )
...
* internal: Combined two similarly-named test files
* internal: Update CHANGELOG
2021-11-26 11:44:38 +08:00
Christopher Council
28a1124719
v0.8.0 ( #72 )
2021-11-26 11:44:38 +08:00
Christopher Council
99568b6bc8
Handle BigNumber conversions in JSON properly (without loss of precision) ( #71 )
...
* Handle BigNumber conversions in JSON properly (without loss of precision)
* Rewrap "errors" from JSONbig.parse in proper error object.
* Use DefinitelyTyped's fetch-mock type def
* Improved type def for json-bigint
* Added type casts to some tests due to addition of fetchMock type def
2021-11-26 11:44:38 +08:00
Krist Wongsuphasawat
fded8f1a1c
Migrate @superset-ui/color to TypeScript ( #69 )
...
* Refactor: Convert color to TS
2021-11-26 11:44:38 +08:00
Krist Wongsuphasawat
1d62f764e2
Add SuperChart ( #68 )
...
* Add superchart and convert to ts
* fix compilation error
* fix build issue
* unit test working
* Add default width and height to ChartProps
* export SuperChart
* Add null check and update unit tests
* update unit tests
* complete test coverage
* Add generic
* reduce timeout
2021-11-26 11:44:38 +08:00
Krist Wongsuphasawat
fb6cde64d8
Convert core to TS ( #62 )
...
feat: convert core models to ts
2021-11-26 11:44:38 +08:00
Chris Williams
6c8e40c710
[build] fix typescript builds ( #56 )
...
* [build] fix typescript builds
* [typescript] ensure types pass in build
* [typescript][connection] declare modules in tests
* [typescript][connection] fix ts errors in tests
* [typescript][connection] test/types.ts => types/external.d.ts
* [chart][typescript] add @types/react-loadable
* [chart][components] convert to ts
* [charts][tests][broken] convert to ts
* [chart][typescript] re-write component generics
* [chart][typescript] fix reactify generic, add react-dom types
* [chart][typescript] more iteration
* - Tweaking reactify types (using Readonly types).
- Uncovered an issue in which ReactifyProps and Props can collide on id and className.
- Move @types/react-loadable to dev dependency
- Fixing a lint error
* [chart][deps] add @types/fetch-mock
* [client][typescript] add and export SupersetClientInterface
* [chart][clients] fix ts
* [charts][components] more ts iterations
* [chart][client] assert FormData type
* [chart][deps] try adding newest @types/react
* [chart][components][ts] fix reactify prop TS
* [chart] lint
* [chart][ts] lint #2 , move @types to deps not dev-deps
* [chart][jest] fix tests
* [chart][tests] up branch coverage
* [chart][ts][test] null => undefined
* [chart][tests] hundo
* [chart][tests] update name
* [chart][ts] ChartClient type fixes
2021-11-26 11:44:38 +08:00
Conglei
908f9693f0
Revert "[Chart]Unify Metric format ( #63 )" ( #65 )
...
This reverts commit a97f66689ae51ad2e02101230ca959fa3e429218.
2021-11-26 11:44:38 +08:00
Conglei
9c8c0a9692
[Chart]Unify Metric format ( #63 )
...
* unify the metric format
* fix test
* fix lint
* fix lint
* change per comments in pr
2021-11-26 11:44:38 +08:00
Krist Wongsuphasawat
fcb7ded22a
Add ChartClient (v2) ( #57 )
...
feat: Add ChartClient
2021-11-26 11:44:38 +08:00
Christine Chambers
07ad06f595
Allow metrics arrays in form data ( #61 )
...
Metrics can take shape of an array of metrics in form data for a given metrics key. For example, `{ metrics: ['sum__num'] }`. This PR changes Metrics class to handle the array case.
2021-11-26 11:44:38 +08:00
Christine Chambers
466084706d
Make connection and color packages peer dependencies ( #59 )
...
* Make connection and color packages peer dependencies
- Also updating the version of the color package in the demo package to be the latest
* Addressing PR comments. Only updating the version of the color package in the demo package
2021-11-26 11:44:37 +08:00
Krist Wongsuphasawat
19bb506ca1
Convert chart models to TS and export additional modules ( #55 )
...
internal: Convert Chart models to ts
2021-11-26 11:44:37 +08:00
Krist Wongsuphasawat
d9163364f9
Separate SupersetClient and SupersetClientClass ( #53 )
...
feat: Export `SupersetClientClass`
internal: Increase test coverage.
2021-11-26 11:44:37 +08:00
Chris Williams
3cf863fb58
[bugfix][connection] fix client promise ( #52 )
2021-11-26 11:44:37 +08:00
Krist Wongsuphasawat
3b54039428
Add reactify ( #51 )
...
feat: Add `reactify` function from `incubator-superset`
2021-11-26 11:44:37 +08:00
Krist Wongsuphasawat
a4c3e7da3a
Add createLoadableRenderer
( #49 )
...
feat: Add `createLoadableRenderer`
2021-11-26 11:44:37 +08:00
Christine Chambers
0f3bd0cd9c
Moving query module into superset-ui from incubator-superset ( #48 )
...
* migrate query code from incubator-superset
* Getting tests to pass
- Up build-config version to pick up a fix to eslint-typescript-parser
- Remove usage of default exports in favor of named exports unless the export is the only thing being exported out of a module
- Fixing up a few linting errors
* - Remove DatasourceKey interface in favor of readonly id and type properties on the DatasourceKey class directly.
- Adding tests for DatasourceKey.
2021-11-26 11:44:37 +08:00
Krist Wongsuphasawat
ffc52baced
v0.7.2
2021-11-26 11:44:37 +08:00
Christine Chambers
084115a7d2
Type promises ( #47 )
...
- type rejectAfterTimeout with generics.
- fixing an import typo in tests.
2021-11-26 11:44:37 +08:00
Krist Wongsuphasawat
5485593fb1
Fix typo in unit test description ( #45 )
2021-11-26 11:44:36 +08:00
Krist Wongsuphasawat
06ecc4742e
allow leading and trailing space when looking up formatter ( #46 )
...
feat: allow leading and trailing space when looking up formatter
2021-11-26 11:44:36 +08:00
Krist Wongsuphasawat
0d001900b6
v0.7.1
2021-11-26 11:44:36 +08:00
Krist Wongsuphasawat
6f7d57721a
Expose factory functions as public API ( #43 )
...
feat: Expose factory functions through API
2021-11-26 11:44:36 +08:00
Krist Wongsuphasawat
e18ae6621d
v0.7.0
2021-11-26 11:44:36 +08:00
Krist Wongsuphasawat
81b82f82c2
update dependency
2021-11-26 11:44:36 +08:00
Krist Wongsuphasawat
ebf1fe4c89
Merge branch 'master' of github.com:apache-superset/superset-ui
2021-11-26 11:44:36 +08:00
Krist Wongsuphasawat
c3db185c41
Add @superset-ui/time-format ( #38 )
...
feat: Add @superset-ui/time-format
* update unit test (+6 squashed commits)
Squashed commits:
[5fae1ed] fix lint
[7672544] support local and utc
[c33fae7] update unit tests
[97fdc0d] fix all unit tests
[88e8029] add formatter code
[a33c76c] initialize
* update readme
* add formatDate and formatDateVerbose equivalent
* add unit test
* extract constants
* get to 100 coverage
* update readme
* Update preview test
* explicitly disable magic number
2021-11-26 11:44:36 +08:00
Chris Williams
b3444d86df
add Typescript support + convert @superset-ui/connection to Typescript ( #41 )
...
* [typescript] add build support for typescript
* [typescript] working lint and build
* [typescript] refactor SupersetClient to TS
* [typescript][connection] leverage RequestInit types when relevant
* [typescript][connection] callApi.js => callApi.ts
* [typescript][connection] remaining .js => .ts
* [typescript][connection] add and export src/types.ts, refactor things, convert test to .ts and fix
* [typescript] build:ts only in typescript-containing packages
2021-11-26 11:44:35 +08:00
Conglei
4a92a91cb6
changed the default value for buildQuery to null ( #40 )
2021-11-26 11:44:35 +08:00
Krist Wongsuphasawat
307ce86ece
Add overwritePolicy for Registry ( #37 )
...
BREAKING CHANGE: Change Registry constructor API to take object instead of single string name.
feat: Add overwritePolicy for Registry so developer can customize whether overwriting is ALLOW, WARN or PROHIBIT.
2021-11-26 11:44:35 +08:00
Krist Wongsuphasawat
f6ea69b7b2
Rename D3Formatter
to D3NumberFormatter
( #36 )
...
BREAKING CHANGE: rename D3Formatter to D3NumberFormatter
2021-11-26 11:44:35 +08:00
Krist Wongsuphasawat
4e39bf7f6e
Rename ColorScheme field 'name' to 'id' ( #35 )
...
BREAKING CHANGE: Rename ColorScheme field 'name' to 'id'
2021-11-26 11:44:35 +08:00
Krist Wongsuphasawat
1edfdcf1b5
Add @superset-ui/number-format package ( #31 )
...
* feat: Add number-format package
2021-11-26 11:44:35 +08:00
Krist Wongsuphasawat
af725ce874
Make CategoricalColorScale instance a function and remove .toFunction() ( #33 )
...
* Feat: Use the recently added ExtensibleFunction to make an instance of CategoricalColorScale be a function
* BREAKING CHANGE: Remove categoricalColorScale.toFunction().
* BREAKING CHANGE: The color scale no longer convert input to lowercase before finding color.
* Fix: Also transform input value before setting color.
2021-11-26 11:44:35 +08:00
Krist Wongsuphasawat
ffcc27270c
fix: npm exclude template files ( #34 )
2021-11-26 11:44:35 +08:00
Krist Wongsuphasawat
a546210bda
fix: generator-superset public access
2021-11-26 11:44:34 +08:00
Krist Wongsuphasawat
0ab3f094a5
v0.6.0
2021-11-26 11:44:34 +08:00
Krist Wongsuphasawat
74b91268bc
Update generator-superset package name and change log
2021-11-26 11:44:34 +08:00
Krist Wongsuphasawat
f639763cc2
Add ExtensibleFunction class ( #32 )
2021-11-26 11:44:34 +08:00
Krist Wongsuphasawat
f408cb1550
Add RegistryWithDefaultKey class ( #27 )
...
* import main lodash instead of lodash/fp
* add factory and unit test
* more unit test to increase branch coverage
* refactor color
* update unit test and references
2021-11-26 11:44:34 +08:00
Krist Wongsuphasawat
166de54924
Add more unit tests for color package ( #28 )
...
* add more unit tests for color package
* revert file name
* rename
2021-11-26 11:44:34 +08:00
Krist Wongsuphasawat
86f0007a77
Add generator-superset ( #21 )
...
* add generator to monorepo
* Squash all attempts (+21 squashed commits)
Squashed commits:
[cca27ae] enable jest projects
[e7dc4ce] wip
[dd3ea7a] run in order
[cf87275] define projects
[69baf16] use specific version
[c880cfa] ignore generator test
[e9e0fd3] update travis
[4bbb3c0] update travis
[d63118b] update travis config
[267fe08] remove config
[44883e8] update travis
[40580c3] reduce node version
[59b6add] update ignore rule
[fbbd03c] update readme
[b299dfe] remove script
[a988933] fix test and lint
[95b7d5b] try install and not install
[f4583b4] remove unnecessary files
[c735329] remove eslint-config-xo
[49b3106] pass lint and test
[56c6def] remove git and readd
* can get test to pass if exclude generator-superset
* add afterall to correct working directory
* update config
* add readme
2021-11-26 11:44:34 +08:00
Chris Williams
010890ae76
[demo] add package + storybook ( #25 )
...
* [demo] add package + storybook
* [demo] add color stories
* [demo] update readme, add gh-pages hooks, remove vx deps
* [demo] remove nesting for color stories
* [gh-pages] run postrelease
* [gh-pages] add link in readme
* [demo] exclude demo package from build script
2021-11-26 11:44:33 +08:00
Krist Wongsuphasawat
4e0d2c1dae
v0.5.0
2021-11-26 11:44:33 +08:00
Krist Wongsuphasawat
5bb2fd599c
use simple js to create range ( #24 )
2021-11-26 11:44:33 +08:00
Krist Wongsuphasawat
ae476317d6
Add @superset-ui/chart with extract modules and additional unit tests ( #23 )
...
* initialize chart package
* add unit tests for metadata and chartprops
* fix lint
* add unit test for ChartPlugin
* update README
2021-11-26 11:44:33 +08:00
Krist Wongsuphasawat
537b6a53e5
v0.4.0
2021-11-26 11:44:33 +08:00
Krist Wongsuphasawat
fbdefa7e3c
Update color module ( #22 )
...
* add brand color
* update test
* add unit tests
2021-11-26 11:44:33 +08:00
Krist Wongsuphasawat
3df20eff6e
@superset-ui/color ( #20 )
...
* add initial files
* update references
* fix lint issues
* Define top-level exports
* disable linting for color schemes
* update test
* update travis
* update travis
* revert travis
* install once
* update clear()
* update core index test
* update color index test
* update travis
* try build before test
* update unit tes
* override beemo config
* remove test command
* update ignore path
* use new build config
2021-11-26 11:44:33 +08:00
Krist Wongsuphasawat
6dc7871f05
v0.3.0
2021-11-26 11:44:32 +08:00
Krist Wongsuphasawat
7097a0e89f
Merge pull request #19 from apache-superset/kristw--new-core
...
Add new core modules from incubator-superset
2021-11-26 11:44:32 +08:00
Krist Wongsuphasawat
b9391d3c6b
add badges
2021-11-26 11:44:32 +08:00
Krist Wongsuphasawat
a285b55b80
Merge pull request #18 from apache-superset/kristw--rename-core
...
rename core package to connection
2021-11-26 11:44:32 +08:00
Krist Wongsuphasawat
68c8873370
Merge pull request #17 from apache-superset/kristw--readme
...
Update readme and remove unnecessary items from package.json
2021-11-26 11:44:32 +08:00
Krist Wongsuphasawat
730d532087
v0.2.1
2021-11-26 11:44:32 +08:00
Krist Wongsuphasawat
3594d09191
Merge pull request #16 from apache-superset/kristw--wran
...
Make the translation module less strict and won't crash the app if not configured.
2021-11-26 11:44:32 +08:00
Krist Wongsuphasawat
267c7c063c
v0.2.0
2021-11-26 11:44:31 +08:00
Krist Wongsuphasawat
d77f81d0b7
Merge pull request #15 from apache-superset/kristw--translation-num
...
Add tn / translateWithNumber
2021-11-26 11:44:31 +08:00
Chris Williams
282e719bb1
[build-config] move to monorepo root ( #11 )
...
* [build-config] move to monorepo root
* [lint-staged] testing
* [@babel/runtime] move to package level
* [build-config] update travis.yml for root build
* [lint] generate prettier config before linting
* [build-config] ^0.0.24
* [jest] add test:watch script
* [translation] remove package scripts
* [core] set author
* [core] add .eslintrc for root overrides
* [root] fix lint + prettier scripts
* [travis][jest] try --no-cache --debug
* [travis][jest] try running jest directly
* build-config@^0.0.25 to fix jest
* travis and test script to non-debug mode
* [travis] lerna bootstrap instead of installing 2x
* [npmrc] package-lock=false
* [travis] lerna bootstrap in script not install
* [travis] install and run tests per-package
* yarn workspaces are magical
2021-11-26 11:44:31 +08:00
Krist Wongsuphasawat
fca5c4bf67
Merge pull request #14 from apache-superset/kristw--publishconf
...
update package.json to include publishConfig
2021-11-26 11:44:31 +08:00
Krist Wongsuphasawat
524ea2df2c
v0.1.0
2021-11-26 11:44:31 +08:00
Krist Wongsuphasawat
0981b6dc5b
Merge pull request #13 from apache-superset/kristw--translator-lint
...
Fix lint issues in translation module
2021-11-26 11:44:31 +08:00
Krist Wongsuphasawat
e2c83f92e9
Merge pull request #12 from apache-superset/kristw--translation
...
Add @superset-ui/translation
2021-11-26 11:44:31 +08:00
Chris Williams
e0c71f0188
v0.0.7
2021-11-26 11:44:31 +08:00
Chris Williams
d9cc46fd17
[SupersetClient] include csrfToken passed in configuration in headers ( #10 )
2021-11-26 11:44:31 +08:00
Chris Williams
1f2b4fe765
v0.0.6
2021-11-26 11:44:31 +08:00
Chris Williams
f0b02cdf21
[SupersetClient] allow csrf token to be passed as configuration ( #9 )
...
* [SupersetClient] allow csrf token to be passed as configuration
* [SupersetClient] update readme
* [build-config] ^0.0.20
* [SupersetClient] fix test.
* [build-config] ^0.0.21
* [build-config] ^0.0.22
* [build-config] ^0.0.23
2021-11-26 11:44:31 +08:00
Chris Williams
405dda57ac
v0.0.5
2021-11-26 11:44:31 +08:00
Chris Williams
1bc6e79bb2
[core][client] mirror window.location.protocol format in config ( #8 )
2021-11-26 11:44:30 +08:00
Chris Williams
446914ed0d
v0.0.4
2021-11-26 11:44:30 +08:00
Chris Williams
f5d62e3f33
[core] support empty CSRF
token ( #7 )
...
* [core][deps] remove unused deps
* [core][test] add test for response.ok=false
* [core] support csrf_token=''
* [core][tests] move mock to sole function that uses it
2021-11-26 11:44:30 +08:00
Chris Williams
eabb10de4f
v0.0.3
2021-11-26 11:44:30 +08:00
Chris Williams
fc471d6511
[core] add parseMethod
( #5 )
...
* [core] expose 'parseMethod' in SupersetClient and callApi for text responses
* [parseResponse][test] fix parseMethod test
* [monorepo] gitignore .npmrc
* [core][deps] @data-ui/build-config => ^0.0.14
* [monorepo] tweak npm scripts
* [core] clean up parseResponse
* [core] clean up parseResponse more
* [core] don't fallback to text parsing if response is supposed to be json, allow for null responseParser
* [core][tests] fix borken tests, return promises instead of calling done()
2021-11-26 11:44:30 +08:00
Chris Williams
d821d5c9b2
v0.0.2
2021-11-26 11:44:30 +08:00
Chris Williams
c3b28b8202
[core] add missing babel-runtime dep ( #4 )
2021-11-26 11:44:30 +08:00
Chris Williams
d50f0fdbcf
v0.0.1
2021-11-26 11:44:30 +08:00
Chris Williams
39677afc8a
[monorepo] add travis + codecov ✅ ( #3 )
...
* [monorepo] initial attempt at travis
* [monorepo] coveralls => codecov
* [monorepo] don't lerna bootstrap?
* [monorepo] ignore lock files, add lint:fix script
* [core] add node-fetch dev dep
* [monorepo] tweak codecov call
* [monorepo] tweak codecov call take ii
* [monorepo] codecov again
* [core][deps] build-config@^0.0.11
* [core][jest] add <rootDir> to coveragePathIgnorePatterns paths
* [core][jest] add collectCoverageFrom config
* [core][jest] try adding rootDir to collectCoverageFrom glob
* [core][deps] build-config@0.0.12
* [travis] yolo
* [travis] this is the one
* [travis] install global codecov
* [travis] no quotes in yml
* [travis] no quotes in yml part 2
2021-11-26 11:44:30 +08:00
Chris Williams
c4b946f965
Merge pull request #1 from apache-superset/chris--core-package
...
[SIP-4] add lerna monorepo and`@superset-ui/core` package with `SupersetClient`
2021-11-26 11:44:30 +08:00