Skip to content
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

chore: TypeScript <Label /> #10494

Merged
merged 11 commits into from
Aug 7, 2020
Merged

chore: TypeScript <Label /> #10494

merged 11 commits into from
Aug 7, 2020

Conversation

mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Jul 31, 2020

Tried @rusackas 's approach of bringing a react-bootstrap component in Storybook just for fun.

One thought is around the fact that labels are used in controls, and that it calls for eventually having to refactor components into its own package that other packages can depend on.

Screen Shot 2020-08-05 at 5 42 40 PM

Screen Shot 2020-08-05 at 5 42 30 PM

@rusackas
Copy link
Member

rusackas commented Aug 5, 2020

I believe I've fixed last test... if this gets merged in, remind me to open another PR and use the new syledMount helper all over the place.

@codecov-commenter
Copy link

codecov-commenter commented Aug 5, 2020

Codecov Report

Merging #10494 into master will decrease coverage by 4.20%.
The diff coverage is 81.48%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10494      +/-   ##
==========================================
- Coverage   63.64%   59.44%   -4.21%     
==========================================
  Files         764      766       +2     
  Lines       36165    36180      +15     
  Branches     3438     3441       +3     
==========================================
- Hits        23019    21507    -1512     
- Misses      13033    14482    +1449     
- Partials      113      191      +78     
Flag Coverage Δ
#cypress ?
#javascript 60.04% <81.48%> (+0.10%) ⬆️
#python 59.09% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...et-frontend/src/SqlLab/components/LimitControl.jsx 87.17% <ø> (ø)
...frontend/src/SqlLab/components/QueryStateLabel.jsx 100.00% <ø> (ø)
...rset-frontend/src/SqlLab/components/QueryTable.jsx 61.53% <ø> (ø)
...erset-frontend/src/SqlLab/components/SouthPane.jsx 81.81% <ø> (ø)
...erset-frontend/src/SqlLab/components/SqlEditor.jsx 50.90% <ø> (-2.43%) ⬇️
superset-frontend/src/components/CachedLabel.jsx 42.10% <ø> (ø)
...et-frontend/src/components/Label/label.stories.jsx 0.00% <0.00%> (ø)
superset-frontend/src/components/TableSelector.jsx 79.08% <ø> (-5.89%) ⬇️
superset-frontend/src/components/Timer.jsx 96.87% <ø> (-3.13%) ⬇️
...erset-frontend/src/datasource/DatasourceEditor.jsx 66.86% <0.00%> (-4.15%) ⬇️
... and 166 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 3d74c3c...cd2b205. Read the comment docs.

@rusackas
Copy link
Member

rusackas commented Aug 5, 2020

Ugh... this python pre-commit hook is failing on a random text file. I'm fixing it in this in #10515

@rusackas
Copy link
Member

rusackas commented Aug 5, 2020

🏷 storybook

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.

Up to you if you wanna get the Emotion stuff in, or leave it for a subsequent PR, but this thing seems to be workin' for now.

@mistercrunch mistercrunch reopened this Aug 6, 2020
@nytai
Copy link
Member

nytai commented Aug 6, 2020

I was just working with labels and wanted to make some tweaks. Having this in place would make it easy to add more variants

Default: 'default',
danger: 'danger',
warning: 'warning',
cuccess: 'success',
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
cuccess: 'success',
success: 'success',

Copy link
Member Author

Choose a reason for hiding this comment

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

well that wasn't a success

@mistercrunch mistercrunch marked this pull request as ready for review August 7, 2020 04:58
@mistercrunch mistercrunch merged commit 0bad77f into apache:master Aug 7, 2020
Ofeknielsen pushed a commit to ofekisr/incubator-superset that referenced this pull request Oct 5, 2020
* chore: TypeScript <Label />

* rebase

* chore: TypeScript <Label />

* rebase

* A bunch o' test fixes. One more to go!

* helper for mountying Emotional components with Enzyme

* asf license

* fixed last test, some linting

* improve the storybook

* Adressing comments

Co-authored-by: Evan Rusackas <evan@preset.io>
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
* chore: TypeScript <Label />

* rebase

* chore: TypeScript <Label />

* rebase

* A bunch o' test fixes. One more to go!

* helper for mountying Emotional components with Enzyme

* asf license

* fixed last test, some linting

* improve the storybook

* Adressing comments

Co-authored-by: Evan Rusackas <evan@preset.io>
@mistercrunch mistercrunch added the 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/L 🚢 0.38.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants