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: fix submenu header double line #14631

Merged
merged 6 commits into from
May 14, 2021
Merged

Conversation

pkdotson
Copy link
Member

@pkdotson pkdotson commented May 14, 2021

SUMMARY

This fixes issue where title of submenu is too long for column and would make text break to next line.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

before

Screen Shot 2021-05-13 at 6 24 06 PM

Screen Shot 2021-05-13 at 6 24 30 PM

after

Screen.Recording.2021-05-13.at.6.27.53.PM.mov

TEST PLAN

Go to alert & reports and annotationslist to view the fixed menus.

ADDITIONAL INFORMATION

@pull-request-size pull-request-size bot added size/L and removed size/S labels May 14, 2021
@codecov
Copy link

codecov bot commented May 14, 2021

Codecov Report

Merging #14631 (925e951) into master (74473e2) will increase coverage by 0.27%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14631      +/-   ##
==========================================
+ Coverage   77.20%   77.47%   +0.27%     
==========================================
  Files         958      958              
  Lines       48492    48489       -3     
  Branches     5691     5690       -1     
==========================================
+ Hits        37437    37567     +130     
+ Misses      10855    10722     -133     
  Partials      200      200              
Flag Coverage Δ
javascript 72.52% <100.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
...ews/CRUD/annotationlayers/AnnotationLayersList.tsx 77.35% <ø> (ø)
...d/src/views/CRUD/csstemplates/CssTemplatesList.tsx 78.26% <ø> (ø)
superset-frontend/src/components/Menu/SubMenu.tsx 96.87% <100.00%> (+1.28%) ⬆️
superset/models/core.py 89.13% <0.00%> (-0.28%) ⬇️
superset/views/core.py 75.51% <0.00%> (+0.03%) ⬆️
superset/utils/core.py 89.00% <0.00%> (+0.12%) ⬆️
superset/db_engine_specs/base.py 88.42% <0.00%> (+0.80%) ⬆️
superset/result_set.py 98.38% <0.00%> (+1.61%) ⬆️
superset/views/database/mixins.py 82.75% <0.00%> (+1.72%) ⬆️
superset/connectors/sqla/models.py 90.26% <0.00%> (+2.10%) ⬆️
... and 6 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 c55418d...925e951. Read the comment docs.

@rusackas
Copy link
Member

Fixes #14616, Fixes #14617

@rusackas
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

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

@rusackas
Copy link
Member

@pkdotson A similar (related?) issue was pointed out to me and I opened this quick PR. Hopefully I'm not going to cause a collision there...
#14637

@junlincc
Copy link
Member

/testenv up

@michael-s-molina
Copy link
Member

michael-s-molina commented May 14, 2021

Fixes #14616, Fixes #14617

@rusackas GitHub will not automatically close these issues because it doesn't check for comments. @pkdotson should add this text to the PR description.

superset-frontend/src/components/Menu/SubMenu.tsx Outdated Show resolved Hide resolved
superset-frontend/src/components/Menu/SubMenu.tsx Outdated Show resolved Hide resolved
@@ -42,6 +42,8 @@ const StyledHeader = styled.div`
padding: 14px 0;
margin-right: ${({ theme }) => theme.gridUnit * 3}px;
Copy link
Member

Choose a reason for hiding this comment

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

You can replace all instances of ${({ theme }) => by moving this piece of code to the top like this https://github.com/apache/superset/pull/14448/files#diff-0856ab0ce511fac9256389d5ed3635f15d77ec907de602ce32d28f072de76753

Copy link
Member

Choose a reason for hiding this comment

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

Nice tip!! We should sweep through and do this all over the place, on some rainy day (probably not now).

superset-frontend/src/components/Menu/SubMenu.tsx Outdated Show resolved Hide resolved
@pull-request-size pull-request-size bot added size/M and removed size/L labels May 14, 2021
@pull-request-size pull-request-size bot added size/L and removed size/M labels May 14, 2021
@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

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

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!

@junlincc
Copy link
Member

LGTM!! Thanks for the fix 😊

@rusackas rusackas merged commit 60f903f into apache:master May 14, 2021
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

@rusackas rusackas deleted the fix-submenu-views branch May 14, 2021 21:58
@junlincc junlincc added the rush! Requires immediate attention label May 18, 2021
henryyeh pushed a commit to preset-io/superset that referenced this pull request May 18, 2021
* fix submenu header

* remove unused css

* lint

* address comment

* address more comments

(cherry picked from commit 60f903f)
@junlincc junlincc removed the rush! Requires immediate attention label May 27, 2021
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
* fix submenu header

* remove unused css

* lint

* address comment

* address more comments
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
* fix submenu header

* remove unused css

* lint

* address comment

* address more comments
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
* fix submenu header

* remove unused css

* lint

* address comment

* address more comments
@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 preset-io size/L 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants