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(dashboard): Show the filters popover behind the dashboard header when scrolling #15933

Merged
merged 2 commits into from
Jul 29, 2021
Merged

fix(dashboard): Show the filters popover behind the dashboard header when scrolling #15933

merged 2 commits into from
Jul 29, 2021

Conversation

geido
Copy link
Member

@geido geido commented Jul 28, 2021

SUMMARY

This PR fixes the z-index of the dashboard header to make sure that the Filters Popover does not show over the Dashboard header.

Fixes: #15873

BEFORE

Screen Shot 2021-07-23 at 11 06 09 AM

Screen Shot 2021-07-28 at 23 18 47

AFTER

FCC.New.Coder.Su.mp4

TESTING INSTRUCTIONS

  1. Open a dashboard
  2. Open the filters of a chart
  3. Scroll down
  4. Make sure the filters popover does not appear over the dashboard header

ADDITIONAL INFORMATION

@geido
Copy link
Member Author

geido commented Jul 28, 2021

@geido geido changed the title fix(dashboard): Popover menu to show under the dashboard header fix(dashboard): Show the filters popover behind the dashboard header when scrolling Jul 28, 2021
@codecov
Copy link

codecov bot commented Jul 28, 2021

Codecov Report

Merging #15933 (b4c6cbb) into master (7b0acc4) will increase coverage by 0.00%.
The diff coverage is 83.33%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #15933   +/-   ##
=======================================
  Coverage   76.92%   76.92%           
=======================================
  Files         988      988           
  Lines       52302    52307    +5     
  Branches     7123     7126    +3     
=======================================
+ Hits        40232    40238    +6     
+ Misses      11845    11844    -1     
  Partials      225      225           
Flag Coverage Δ
javascript 71.57% <83.33%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...d/components/DashboardBuilder/DashboardBuilder.tsx 89.71% <80.00%> (-0.67%) ⬇️
superset-frontend/src/common/components/index.tsx 100.00% <100.00%> (ø)
...et-frontend/src/dashboard/components/Dashboard.jsx 78.84% <0.00%> (-0.57%) ⬇️
superset-frontend/src/components/Select/Select.tsx 74.42% <0.00%> (+1.36%) ⬆️

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 7b0acc4...b4c6cbb. Read the comment docs.

@rusackas
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

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

@rusackas
Copy link
Member

Works for the second issue depicted in the topic as well:
image

@@ -283,6 +285,13 @@ const DashboardBuilder: FC<DashboardBuilderProps> = () => {
</DragDroppable>
</StyledHeader>
<StyledContent fullSizeChartId={fullSizeChartId}>
<Global
styles={css`
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if styles is any more performant than css or if we should just make this css for future consistency/themability. ¯\_(ツ)_/¯

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 little nit, but not a blocker.

Really appreciate the inline comments for the rationale about the z-index values, btw. Seeing more need every day to add a z-index registry (a bunch of defined "layers") to the Theme.

@geido
Copy link
Member Author

geido commented Jul 29, 2021

I will appreciate an eye from @michael-s-molina as well on this as he worked on similar issues in the past

@michael-s-molina
Copy link
Member

/testenv up FEATURE_DASHBOARD_NATIVE_FILTERS=true

@github-actions
Copy link
Contributor

@michael-s-molina Ephemeral environment spinning up at http://34.219.220.235:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

Copy link
Member

@michael-s-molina michael-s-molina left a comment

Choose a reason for hiding this comment

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

LGTM. I did some tests with the native filters enabled and it's working as intended.

Copy link
Contributor

@rosemarie-chiu rosemarie-chiu left a comment

Choose a reason for hiding this comment

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

LGTM on UI

@geido geido merged commit 56dd2a3 into apache:master Jul 29, 2021
@geido geido moved this from In Review to Done in Community Usability Bash! 🐛🐞🕷 Jul 29, 2021
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
…when scrolling (apache#15933)

* Fix z-index

* Fix z-index dropdown and maximized chart filters
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
…when scrolling (apache#15933)

* Fix z-index

* Fix z-index dropdown and maximized chart filters
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
…when scrolling (apache#15933)

* Fix z-index

* Fix z-index dropdown and maximized chart filters
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
…when scrolling (apache#15933)

* Fix z-index

* Fix z-index dropdown and maximized chart filters
@mistercrunch mistercrunch added the 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels label Mar 13, 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
No open projects
Development

Successfully merging this pull request may close these issues.

[dashboard][native-filter]Filter indicator overlay in Dashboard on scroll
5 participants