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

refactor: Bootstrap to AntD - Label #12774

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

michael-s-molina
Copy link
Member

@michael-s-molina michael-s-molina commented Jan 26, 2021

SUMMARY

  • Migrates Label component from Bootstrap to AntD.
  • Removes unused properties.
  • Renames bsStyle property to type and add typescript checking.
  • Improves CSS readability.
  • Modifies storybook to use controls instead of handles.
  • Updates tests.

See: #10254

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen Shot 2021-01-26 at 2 09 26 PM

Screen Shot 2021-01-26 at 2 28 45 PM

Screen Shot 2021-01-26 at 2 10 08 PM

Screen Shot 2021-01-26 at 2 27 07 PM

Screen Shot 2021-01-26 at 2 27 29 PM

Screen Shot 2021-01-26 at 2 12 56 PM

Screen Shot 2021-01-26 at 2 10 59 PM

Screen Shot 2021-01-26 at 2 26 49 PM

@rusackas @junlincc

TEST PLAN

1 - Open any screen that contains a label (explore, profile, dashboards, etc.)
2 - All labels should have the same theme and behavior
3 - Additional testing can be done using Storybook

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@codecov-io
Copy link

codecov-io commented Jan 26, 2021

Codecov Report

Merging #12774 (be737c2) into master (49e6e42) will decrease coverage by 3.61%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12774      +/-   ##
==========================================
- Coverage   66.99%   63.38%   -3.62%     
==========================================
  Files        1022      488     -534     
  Lines       50049    30127   -19922     
  Branches     4914        0    -4914     
==========================================
- Hits        33532    19096   -14436     
+ Misses      16393    11031    -5362     
+ Partials      124        0     -124     
Flag Coverage Δ
cypress ?
javascript ?
python 63.38% <ø> (-0.71%) ⬇️

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

Impacted Files Coverage Δ
superset/db_engines/hive.py 0.00% <0.00%> (-85.72%) ⬇️
superset/sql_validators/postgres.py 50.00% <0.00%> (-50.00%) ⬇️
superset/db_engine_specs/hive.py 73.84% <0.00%> (-17.31%) ⬇️
superset/utils/cache.py 76.34% <0.00%> (-8.77%) ⬇️
superset/databases/commands/create.py 83.67% <0.00%> (-8.17%) ⬇️
superset/databases/commands/update.py 85.71% <0.00%> (-8.17%) ⬇️
superset/connectors/sqla/models.py 84.31% <0.00%> (-6.28%) ⬇️
superset/db_engine_specs/sqlite.py 90.62% <0.00%> (-6.25%) ⬇️
superset/databases/commands/test_connection.py 84.78% <0.00%> (-4.35%) ⬇️
superset/utils/celery.py 96.42% <0.00%> (-3.58%) ⬇️
... and 533 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 49e6e42...be737c2. Read the comment docs.

@junlincc junlincc added the explore:refactor Related to refactoring Explore label Jan 26, 2021
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.

This is looking fantastic! Ready to approve, but would like to change that bsStyle prop name.

@adam-stasiak
Copy link
Contributor

adam-stasiak commented Jan 27, 2021

I can see that Database label is a little bit moved. On master is straight.
Zrzut ekranu 2021-01-27 o 17 12 48
No other info found. @junlincc Could you set priority on this?

@michael-s-molina
Copy link
Member Author

@adam-stasiak Thank you so much for reviewing! Fixed!

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!

@rusackas rusackas merged commit 2adfb85 into apache:master Feb 2, 2021
amitmiran137 pushed a commit to nielsen-oss/superset that referenced this pull request Feb 3, 2021
* master: (23 commits)
  feat(explore): clear search on dataset change (apache#12909)
  chore: remove SIP-38 feature flag (apache#12894)
  fix: Config for dataset health check (apache#12906)
  fix(chart): allow null for most query object props (apache#12905)
  feat: add separate endpoint to fetch function names for autocomplete (apache#12840)
  chore: add required review on master (apache#12694)
  fix: comment typo (apache#12898)
  Migrates Radio component from Bootstrap to AntD. (apache#12738)
  fix: allow users to reset their passwords (apache#12886)
  fix(explore): missing select when groupby without metrics (apache#12890)
  refactor: dbapi exception mapping for dbapi's (apache#12869)
  feat(style-theme): add support for custom superset themes (apache#12858)
  chore(lint): fix pre-commit error (apache#12884)
  refactor(color-schemes): refactor setting of color schemes (apache#12857)
  feat(native-filters): Add defaultValue for Native filters modal (apache#12199)
  feat(release): add github token to changelog script (apache#12872)
  fix(menu): always show settings dropdown (apache#12877)
  Migrates Label component from Bootstrap to AntD. (apache#12774)
  [Helm] Automate datasource import (apache#10771)
  build: Skip loading example data from configs in CI (apache#12610)
  ...
@geido geido mentioned this pull request May 17, 2021
8 tasks
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 labels 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 explore:refactor Related to refactoring Explore size/L 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants