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: filters push out apply button on dashboard #11580

Merged
merged 3 commits into from
Dec 1, 2020

Conversation

kkucharc
Copy link
Contributor

@kkucharc kkucharc commented Nov 5, 2020

SUMMARY

Changed behaviour of too big filter block:

  • Added class and calculated height (100%-padding) for blocks -> otherwise scroll was appearing in every chart
  • Added auto overflow for blocks on dashboards so scroll will appear when there will be too many filters
  • Added menuPortalTarget because dropdown menu was limited to the box of chart.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
97113844-1fe0a700-16aa-11eb-9be6-879800b42ca2

After:
Large GIF (490x694)

TEST PLAN

ADDITIONAL INFORMATION

@codecov-io
Copy link

codecov-io commented Nov 5, 2020

Codecov Report

Merging #11580 into master will decrease coverage by 4.55%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11580      +/-   ##
==========================================
- Coverage   66.56%   62.01%   -4.56%     
==========================================
  Files         876      878       +2     
  Lines       42172    42265      +93     
  Branches     3949     3949              
==========================================
- Hits        28073    26209    -1864     
- Misses      13996    15874    +1878     
- Partials      103      182      +79     
Flag Coverage Δ
cypress ?
javascript 62.45% <100.00%> (ø)
python 61.74% <ø> (-0.42%) ⬇️

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

Impacted Files Coverage Δ
.../src/dashboard/components/gridComponents/Chart.jsx 66.32% <ø> (-16.33%) ⬇️
...t-frontend/src/components/Select/OnPasteSelect.jsx 95.23% <100.00%> (ø)
superset-frontend/src/SqlLab/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/dashboard/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/index.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/dashboard/index.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/setup/setupColors.js 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/chart/ChartContainer.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/setup/setupFormatters.js 0.00% <0.00%> (-100.00%) ⬇️
... and 186 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 6d5d92a...27f83b4. Read the comment docs.

@pull-request-size pull-request-size bot added size/S and removed size/XS labels Nov 5, 2020
@rusackas
Copy link
Member

rusackas commented Nov 9, 2020

@graceguo-supercat @ktmud curious if you have any objection to this solution. This issue has come up several times in the past, and I heven't seen a solution yet that makes everyone happy. This seems like at least a step in the right direction. Thoughts?

@ktmud
Copy link
Member

ktmud commented Nov 9, 2020

I think this makes sense. But is there a way to make only the chart content the scrollable area, i.e., make the chart title sticky?

@junlincc
Copy link
Member

junlincc commented Nov 9, 2020

I think this makes sense. But is there a way to make only the chart content the scrollable area, i.e., make the chart title sticky?

agreed, make sense. let's make the filter box title sticky. @kkucharc 🙏

@rusackas
Copy link
Member

rusackas commented Nov 9, 2020

@ktmud do you think there would be much value in making the Apply button sticky on the bottom, so the filters start to scroll behind it? Or is that just hogging the limited real estate?

@ktmud
Copy link
Member

ktmud commented Nov 9, 2020

As much as I like it to be sticky too, I think your point about limited real estate is more important.

@kkucharc
Copy link
Contributor Author

I appreciate your feedback and input 👍 I will figure our and propose something.

@junlincc junlincc requested review from etr2460, graceguo-supercat and ktmud and removed request for williaster November 11, 2020 23:29
@junlincc junlincc added the rush! Requires immediate attention label Dec 1, 2020
@rusackas rusackas merged commit 3035090 into apache:master Dec 1, 2020
@junlincc junlincc removed the rush! Requires immediate attention label Mar 18, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.0.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.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants