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: Boostrap to AntD - Row/Col #14100

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

michael-s-molina
Copy link
Member

@michael-s-molina michael-s-molina commented Apr 13, 2021

SUMMARY

  • Migrates Row and Col components from Bootstrap to AntD
  • Improves VizTypeControl layout when resizing

See: #10254

@rusackas @junlincc @pkdotson

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

1.mov
1.mov
2.mov
2.mov
3.mov
3.mov
4.mov
4.mov
5.mov
5_ZdJAE5rc.mov
6.mov
6.mov
7.mov
7.mov
8.mov
8.mov

TEST PLAN

1 - I added before and after videos for each touched component
2 - Review all touched components

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@codecov
Copy link

codecov bot commented Apr 13, 2021

Codecov Report

Merging #14100 (96de162) into master (1448f78) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 96de162 differs from pull request most recent head 061c055. Consider uploading reports for the commit 061c055 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master   #14100   +/-   ##
=======================================
  Coverage   76.13%   76.13%           
=======================================
  Files         945      945           
  Lines       47927    47927           
  Branches     5950     5950           
=======================================
  Hits        36491    36491           
  Misses      11230    11230           
  Partials      206      206           
Flag Coverage Δ
javascript 70.24% <100.00%> (ø)

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

Impacted Files Coverage Δ
superset-frontend/src/components/FormRow/index.jsx 100.00% <ø> (ø)
...src/dashboard/components/PropertiesModal/index.jsx 85.61% <ø> (ø)
.../src/explore/components/controls/BoundsControl.jsx 93.93% <ø> (ø)
...src/explore/components/controls/SpatialControl.jsx 6.75% <ø> (ø)
...ponents/controls/TimeSeriesColumnControl/index.jsx 100.00% <ø> (ø)
...erset-frontend/src/SqlLab/components/SaveQuery.tsx 75.00% <100.00%> (+0.58%) ⬆️
...tend/src/SqlLab/components/ScheduleQueryButton.tsx 29.23% <100.00%> (+1.10%) ⬆️
...d/src/explore/components/PropertiesModal/index.tsx 82.19% <100.00%> (+0.24%) ⬆️
...src/explore/components/controls/VizTypeControl.jsx 79.66% <100.00%> (-1.30%) ⬇️
superset-frontend/src/profile/components/App.tsx 100.00% <100.00%> (ø)

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 1448f78...061c055. Read the comment docs.

@junlincc junlincc added the frontend:refactor Related to refactoring the frontend label Apr 13, 2021
@pkdotson
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

@pkdotson Ephemeral environment spinning up at http://34.220.138.107:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@pkdotson pkdotson requested a review from junlincc April 14, 2021 17:33
Copy link
Member

@pkdotson pkdotson left a comment

Choose a reason for hiding this comment

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

Pulled the code and everything looks good to me!

@pkdotson pkdotson requested a review from rusackas April 14, 2021 19:53
@@ -114,7 +115,7 @@ export default function SaveQuery({
const renderModalBody = () => (
<FormGroup bsSize="small">
<Row>
<Col md={12}>
<Col xs={24}>
Copy link
Member

Choose a reason for hiding this comment

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

This seems OK, but if there's only one Col for each of these rows, I'm wondering if we even need the rows/cols at all. It seems like a good ol' div would suffice.

@@ -179,7 +180,7 @@ const ScheduleQueryButton: FunctionComponent<ScheduleQueryButtonProps> = ({
</Row>
{scheduleQueryWarning && (
<Row>
<Col md={12}>
<Col xs={24}>
Copy link
Member

Choose a reason for hiding this comment

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

Not sure we even need these either. Not saying it should affect this PR, just something to consider.

@@ -87,8 +88,8 @@ export default class BoundsControl extends React.Component {
<div>
<ControlHeader {...this.props} />
<FormGroup bsSize="small">
<Row>
<Col xs={6}>
<Row gutter={16}>
Copy link
Member

Choose a reason for hiding this comment

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

I think we could use withTheme for these to get a hold of gridUnit, but it's not a blocker for this work I suppose.

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, too. Noted a few things we might want to touch up, but I don't think they should prevent this from being merged.

@rusackas rusackas merged commit b963624 into apache:master Apr 23, 2021
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
@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 frontend:refactor Related to refactoring the frontend size/L 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants