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

fix: Remove Icon and align close button on DatasetModal #14902

Merged
merged 2 commits into from
Jun 1, 2021

Conversation

AAfghahi
Copy link
Member

SUMMARY

The Dataset Modal had a ! icon that didn't make sense and was causing the header to be misaligned. This removes that, which aligns everything.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
image

After:
image

TESTING INSTRUCTIONS

Go to Datasets
Add a dataset

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

@AAfghahi AAfghahi force-pushed the ch15973_DatabaseModalCloseIcon branch from b04f065 to 6109cfb Compare May 28, 2021 16:34
@codecov
Copy link

codecov bot commented May 28, 2021

Codecov Report

Merging #14902 (34349a2) into master (507d4d7) will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14902      +/-   ##
==========================================
+ Coverage   77.50%   77.54%   +0.03%     
==========================================
  Files         963      963              
  Lines       49306    49304       -2     
  Branches     6226     6228       +2     
==========================================
+ Hits        38216    38232      +16     
+ Misses      10889    10873      -16     
+ Partials      201      199       -2     
Flag Coverage Δ
javascript 72.46% <ø> (+0.07%) ⬆️

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

Impacted Files Coverage Δ
...nd/src/views/CRUD/data/dataset/AddDatasetModal.tsx 56.25% <ø> (-0.90%) ⬇️
superset-frontend/src/utils/urlUtils.ts 53.33% <0.00%> (-8.21%) ⬇️
superset-frontend/src/dashboard/actions/hydrate.js 1.72% <0.00%> (-0.02%) ⬇️
superset-frontend/src/constants.ts 100.00% <0.00%> (ø)
superset-frontend/src/components/Tabs/Tabs.tsx 96.55% <0.00%> (ø)
...l/AdhocFilterEditPopoverSimpleTabContent/index.jsx 79.28% <0.00%> (+0.12%) ⬆️
...d/components/DashboardBuilder/DashboardBuilder.tsx 87.09% <0.00%> (+0.14%) ⬆️
superset-frontend/src/components/Menu/Menu.tsx 66.66% <0.00%> (+0.40%) ⬆️
...c/filters/components/Select/SelectFilterPlugin.tsx 81.52% <0.00%> (+11.95%) ⬆️
...nd/src/filters/components/Select/transformProps.ts 100.00% <0.00%> (+28.57%) ⬆️
... and 1 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 507d4d7...34349a2. Read the comment docs.

Copy link
Member

@geido geido left a comment

Choose a reason for hiding this comment

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

LGTM! Just a nit

{t('Add dataset')}
</>
}
title={<>{t('Add dataset')}</>}
Copy link
Member

Choose a reason for hiding this comment

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

Is the fragment needed here? Can't we just pass a plain string for the title?

Copy link
Member Author

Choose a reason for hiding this comment

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

oh you know @geido , they don't need to be a fragment. Just passed in a regular string. Thank you!

@hughhhh hughhhh merged commit fac6b7c into apache:master Jun 1, 2021
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.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 size/S 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants