-
Notifications
You must be signed in to change notification settings - Fork 272
feat(chart): Add <ChartDataProvider />
#120
Conversation
Still have some todos, but I think reviewable enough/the API is stable. |
Codecov Report
@@ Coverage Diff @@
## master #120 +/- ##
==========================================
- Coverage 100% 99.06% -0.94%
==========================================
Files 74 76 +2
Lines 914 964 +50
Branches 220 233 +13
==========================================
+ Hits 914 955 +41
- Misses 0 6 +6
- Partials 0 3 +3
Continue to review full report at Codecov.
|
packages/superset-ui-chart/src/components/ChartDataProvider.tsx
Outdated
Show resolved
Hide resolved
packages/superset-ui-chart/src/components/ChartDataProvider.tsx
Outdated
Show resolved
Hide resolved
packages/superset-ui-chart/src/components/ChartDataProvider.tsx
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #120 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 74 76 +2
Lines 914 958 +44
Branches 220 229 +9
=====================================
+ Hits 914 958 +44
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #120 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 74 76 +2
Lines 914 958 +44
Branches 220 229 +9
=====================================
+ Hits 914 958 +44
Continue to review full report at Codecov.
|
all right this should be good to go now:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for all the work.
🏆 Enhancements
This PR adds a new
<ChartDataProvider />
component to@superset-ui/charts
package, with storybook demo for a handful of vis plugins (new + old). This is essentially a convenienceReact
component aroundChartClient
with an API inspired by the Apollo<Query />
component:The PR makes a few tweaks which were needed to get things working
SupersetClient
public interface whererequest
referencedget
ChartClient
that were giving me issues when using them (such asSliceIdAndOrFormData
).jsx
test file and uses@ts-ignore
for that test in the.tsx
fileRemaining TODO
README
to final APIseparateI think given that this is a fixture file now, it's fine in one filemocks/formData
into separate files@kristw @conglei @xtinec