Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

feat: style package for theming and styled components #362

Merged
merged 5 commits into from
Apr 15, 2020

Conversation

suddjian
Copy link
Member

💔 Breaking Changes

🏆 Enhancements

Adds a new package. For now the package contents are just porting the theme from Superset. This is so it can be used by viz plugins and other superset-ui components.

📜 Documentation

See readme

🐛 Bug Fix

🏠 Internal

@suddjian suddjian requested a review from a team as a code owner April 14, 2020 16:27
@vercel
Copy link

vercel bot commented Apr 14, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/superset/superset-ui/rcx4u5ymb
✅ Preview: https://superset-ui-git-fork-suddjian-style.superset.now.sh

@codecov
Copy link

codecov bot commented Apr 14, 2020

Codecov Report

Merging #362 into master will decrease coverage by 39.65%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #362       +/-   ##
===========================================
- Coverage   91.67%   52.01%   -39.66%     
===========================================
  Files         118      123        +5     
  Lines        1489     2653     +1164     
  Branches      388      394        +6     
===========================================
+ Hits         1365     1380       +15     
- Misses         95     1244     +1149     
  Partials       29       29               
Impacted Files Coverage Δ
packages/superset-ui-style/src/index.ts 100.00% <100.00%> (ø)
plugins/table/src/transformProps.ts 52.00% <0.00%> (-2.17%) ⬇️
plugins/table/src/ReactDataTable.tsx 79.76% <0.00%> (-0.73%) ⬇️
plugins/table/test/testData.ts 100.00% <0.00%> (ø)
...kages/superset-ui-time-format/src/TimeFormatter.ts 100.00% <0.00%> (ø)
...ges/superset-ui-color/src/CategoricalColorScale.ts 100.00% <0.00%> (ø)
...s/superset-ui-number-format/src/NumberFormatter.ts 100.00% <0.00%> (ø)
...cy-plugin-chart-calendar/src/vendor/cal-heatmap.js 0.00% <0.00%> (ø)
plugins/legacy-plugin-chart-calendar/src/index.js 0.00% <0.00%> (ø)
...legacy-plugin-chart-calendar/src/transformProps.js 0.00% <0.00%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 308f2ab...6e2d23b. Read the comment docs.

@@ -0,0 +1,31 @@
{
"name": "style",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"name": "@superset-ui/style"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, thanks for catching that 😐

@@ -0,0 +1,368 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this file. we only check in the yarn.lock at root level

"superset"
],
"scripts": {
"test": "echo \"Error: run tests from root\" && exit 1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add simple unit test to maintain 100% test coverage for core package.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove this script

Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. @kristw see any reason not to merge?

@rusackas rusackas requested a review from kristw April 14, 2020 21:55
@@ -0,0 +1,26 @@
# `style`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README for the other packages have npm and david badges on top. Would be nice to keep the same format.

"author": "Aaron Suddjian <[email protected]>",
"homepage": "https://github.com/apache-superset/superset-ui#readme",
"license": "Apache-2.0",
"main": "lib/index.js",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add

  "sideEffects": false,

for more effective tree-shaking

Copy link
Contributor

@kristw kristw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi, next time you can also scaffold a new package using yeoman and the generator-superset package.

@@ -1,5 +1,8 @@
# `style`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: @superset-ui/style

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants