-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[reviewable] [refactor] Split visTypes into one file for each visualization type #6290
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6290 +/- ##
=======================================
Coverage 77.33% 77.33%
=======================================
Files 67 67
Lines 9578 9578
=======================================
Hits 7407 7407
Misses 2171 2171 Continue to review full report at Codecov.
|
24b7c33
to
e6ac9a2
Compare
LGTM |
@@ -0,0 +1,47 @@ | |||
import { t } from '@superset-ui/translation'; | |||
import * as sections from './sections'; |
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.
same re *
@@ -0,0 +1,52 @@ | |||
import { t } from '@superset-ui/translation'; | |||
import * as sections from './sections'; |
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.
same re *
}); | ||
} | ||
|
||
return [].concat( |
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.
any reason not to use ...
here since you use it for all object spreading?
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.
Umm, this block of code I didn't touch. It was copy straight from original.
Prefer to leave it the same for 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 overall, couple small comments 👍
e6ac9a2
to
8cc7529
Compare
…zation type (apache#6290) * extract two files * pass linting * rename variables * rename file * fix lint * Rename controlPanelConfigs.js to controlPanels/index.js * use specific imports
For maintainability, and future compatibility with plugins.
visTypes.jsx
tocontrolPanelConfigs.js
controlPanels/
directory.@williaster @conglei @graceguo-supercat @michellethomas @xtinec @mistercrunch