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 - Radio #12738

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

michael-s-molina
Copy link
Member

SUMMARY

  • Migrates Radio component from Bootstrap to AntD.
  • Moves the Radio component to a specific folder to follow components conventions.
  • Creates a storybook with a fully interactive Radio component.

See: #10254

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen Shot 2021-01-25 at 11 02 06 AM

Screen Shot 2021-01-25 at 1 34 48 PM

Screen Shot 2021-01-25 at 1 31 25 PM

Screen Shot 2021-01-25 at 12 06 28 PM

Screen Shot 2021-01-25 at 1 31 39 PM

Screen Shot 2021-01-25 at 12 06 42 PM

@rusackas @junlincc

TEST PLAN

1 - Open any screen that contains a radio button (explore -> save chart, explore -> edit dataset, etc.)
2 - All radio buttons should have the same theme and behavior

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 25, 2021

Codecov Report

Merging #12738 (847c3aa) into master (bab86ab) will decrease coverage by 5.81%.
The diff coverage is 87.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12738      +/-   ##
==========================================
- Coverage   65.05%   59.23%   -5.82%     
==========================================
  Files        1021      964      -57     
  Lines       50095    47327    -2768     
  Branches     5141     4436     -705     
==========================================
- Hits        32587    28036    -4551     
- Misses      17332    19291    +1959     
+ Partials      176        0     -176     
Flag Coverage Δ
cypress 50.91% <87.50%> (+13.27%) ⬆️
javascript ?
python 63.97% <ø> (-0.11%) ⬇️

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

Impacted Files Coverage Δ
...rontend/src/SqlLab/components/SaveDatasetModal.tsx 18.18% <ø> (-69.32%) ⬇️
superset-frontend/src/common/components/index.tsx 100.00% <ø> (ø)
...et-frontend/src/dashboard/components/SaveModal.tsx 79.06% <0.00%> (+59.83%) ⬆️
...dashboard/components/nativeFilters/FilterScope.tsx 64.70% <ø> (-31.45%) ⬇️
...rset-frontend/src/explore/components/SaveModal.tsx 81.01% <ø> (-5.51%) ⬇️
.../explore/components/controls/DateFilterControl.jsx 34.48% <ø> (-21.84%) ⬇️
...controls/DateFilterControl/frame/CalendarFrame.tsx 75.00% <ø> (+28.84%) ⬆️
...s/controls/DateFilterControl/frame/CommonFrame.tsx 75.00% <ø> (+33.33%) ⬆️
...s/controls/DateFilterControl/frame/CustomFrame.tsx 32.55% <ø> (+18.27%) ⬆️
...set-frontend/src/common/components/Radio/index.tsx 100.00% <100.00%> (ø)
... and 437 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 bab86ab...847c3aa. Read the comment docs.

@junlincc junlincc added the explore:refactor Related to refactoring Explore label Jan 25, 2021
Copy link
Member

@junlincc junlincc left a comment

Choose a reason for hiding this comment

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

looked through all the button changes in the product. ✅ thanks for the migration work!

@adam-stasiak
Copy link
Contributor

I went through them as well + Multiple browsers 🟢

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

LGTM, one minor nit. One step closer to dropping react-bootstrap 🙂

superset-frontend/.eslintrc.js Outdated Show resolved Hide resolved
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.

One minor nit looking for every reasonable use case for gridUnit, but this PR looks great, so I'm stampin' it and will circle back to merge soon either way! One more down!

@rusackas rusackas merged commit 5a79a7d 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)
  ...
@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.

7 participants