-
Notifications
You must be signed in to change notification settings - Fork 268
Add WordCloud plugin #50
Conversation
deaa621 to
14f1f50
Compare
Codecov Report
@@ Coverage Diff @@
## master #50 +/- ##
=======================================
Coverage ? 100%
=======================================
Files ? 75
Lines ? 863
Branches ? 194
=======================================
Hits ? 863
Misses ? 0
Partials ? 0
Continue to review full report at Codecov.
|
ed970d1 to
edf3d30
Compare
26e1fe3 to
bd39498
Compare
|
Ported the word cloud plugin to TypeScript and added new tests for P.S. I think we could handle the |
| @@ -0,0 +1,3 @@ | |||
| declare module '*.png'; | |||
| declare module '@superset-ui/color'; | |||
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.
color is now in TS.
| @@ -0,0 +1,3 @@ | |||
| declare module '*.png'; | |||
| declare module '@superset-ui/color'; | |||
| declare module '@superset-ui/translation'; | |||
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.
Has another PR converting translation to TS.
62071f3 to
b801005
Compare
b801005 to
89e2be1
Compare
| } | ||
|
|
||
| export default class ChartPlugin extends Plugin { | ||
| export default class ChartPlugin<T extends FormData = FormData> extends Plugin { |
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.
What does the = FormData do?
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.
defaults to that generic?
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.
Yes, default to that generic so all the charts without specific FormData can fallback to it.
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.
Aha, got it. That makes sense.
xtinec
left a comment
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.
Looking good. Just one Q.
| type PromiseOrValueLoader<T> = () => PromiseOrValue<T> | PromiseOrValue<{ default: T }>; | ||
|
|
||
| export type BuildQueryFunction = (formData: FormData) => QueryContext; | ||
| export type BuildQueryFunction<T extends FormData> = (formData: T) => QueryContext; |
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.
❤️ this
williaster
left a comment
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 after the WIP items 👏 🎬
|
Umm, ci is throwing error that I don't see locally. Have to figure out what is going on. |
89e2be1 to
e3acbce
Compare
xtinec
left a comment
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.
Code change looks great. I think it is good to 🚢 once we sort out the errors on CI.
|
CI passes with 100% coverage. Somehow codecov stalled. I will just merge it to unblock other tasks and fix master build. |
🏆 Enhancements
Add
WordCloudChartPluginWIP: Need to resolve
reactifydependency and add unit tests.