-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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(explore): disable resize bar when the results area is collapsed #21366
Conversation
Codecov Report
@@ Coverage Diff @@
## master #21366 +/- ##
==========================================
+ Coverage 66.47% 66.57% +0.10%
==========================================
Files 1789 1791 +2
Lines 68381 68525 +144
Branches 7276 7319 +43
==========================================
+ Hits 45455 45620 +165
+ Misses 21051 21015 -36
- Partials 1875 1890 +15
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
superset-frontend/src/explore/components/ExploreChartPanel.test.jsx
Outdated
Show resolved
Hide resolved
/testenv up |
@geido Ephemeral environment spinning up at http://35.87.126.10:8080. Credentials are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stephenLYZ this LGTM. I am wondering if we should close the data panel automatically when it reaches the bottom, as it is in fact the same as closing it. CC @kasiazjc
Superset.mp4
good call @geido, I think it makes sense! You cannot see anything, so there is no point in it being expanded. There is one edge case, where someone may be playing with the drag and drop and out of the blue the section will collapse itself and they will have to manually expand which can be annoying. But I'd still say that we should go with your suggestion, Diego and we'll hear feedback that it doesn't make sense, then we'll revert it. cc: @stephenLYZ |
@geido @kasiazjc Thanks for these suggestions. It makes sense. And my idea is that when we click the collapse button, we don't really collapse the panel, but rather move the panel to the bottom, we can still drag and drop the panel, but at this point dragging upwards doesn't result in a blank space, but rather the content panel, and the collapse button also reverts to its original state. |
I feel like the suggestions being floated around might involve more edge cases and frustration than the original thing this PR fixes. Can we just merge this and ticket any additional layers of fanciness as an additional task? |
Ephemeral environment shutdown and build artifacts deleted. |
SUMMARY
If the data section (results/samples) is collapsed, user can still drag the icon/object between chart and data section header to resize the chart. This behavior is confusing as in this case the data section remains collapsed and empty.
So we remove drag indicator/feature if the data section is collapsed.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
before
2022-09-08.10.01.47.mov
after
2022-09-08.9.58.43.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION