-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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: Floating Menu in SQL Left Bar #13858
Conversation
@junlincc and oh weird I can't tag yousoph. :/ |
/testenv up |
Codecov Report
@@ Coverage Diff @@
## master #13858 +/- ##
==========================================
+ Coverage 78.25% 78.35% +0.10%
==========================================
Files 934 935 +1
Lines 47320 47405 +85
Branches 5937 5982 +45
==========================================
+ Hits 37028 37146 +118
+ Misses 10148 10116 -32
+ Partials 144 143 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
I think we can accomplish this with overflow: visible in a few places.
@junlincc Ephemeral environment spinning up at http://34.209.221.220:8080. Credentials are |
Oh wow that looks weird. Thanks for bringing it up. I will need to find some databases that match that length and test. |
@etr2460 that sounds good to me, this should be merged soon. |
Hello @ktmud how does this look: |
This looks good @AAfghahi. Were you able to get the ellipses to show up? I didn't see them. |
@eschutho no, I think I need to set a definable width. |
I don't have a huge preference whether we have the ellipsis or not.. @Steejay wdyt? |
Screen.Recording.2021-04-02.at.2.07.07.PM.movI think this is everything that we wanted. |
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.
LGTM. Thanks @AAfghahi!
Needs visual testing still.
@Steejay I think it's OK for the dropdown menu to be wider than the select box (it shouldn't be shorter than it though). Even AntD has a I just removed the fixed width of the menu container when there is no need to use virtual list. @AAfghahi This looks good. Could you also add screenshots of how the select look like in Explore page chart controls and Dashboard FilterBox just for confirmation? |
/testenv up |
@ktmud I don't have any filter boxes with really long names. Is there a public database that does so I can check it? |
You can just add a row. Go to SQL Lab and run something like this: UPDATE table SET country = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' WHERE country = 'Angola'; |
@betodealmeida Ephemeral environment creation is currently limited to committers. |
@AAfghahi Thank you for the screenshots! |
/testenv up |
@yousoph did visual testing |
@hughhhh Ephemeral environment spinning up at http://54.191.245.80: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.
LGTM
Ephemeral environment shutdown and build artifacts deleted. |
@@ -300,6 +300,7 @@ div.Workspace { | |||
.schemaPane-enter-done, | |||
.schemaPane-exit { | |||
transform: translateX(0); | |||
z-index: 1020; |
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.
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.
* floating table git issue * made changes * floating table git issue * made changes * long table names * floating table git issue * made changes * floating table git issue * made changes * long table names * floating table git issue * made changes * floating table git issue * made changes * long table names * table values * aligned * active key * changed to customStyle * update dropdown styles Co-authored-by: Elizabeth Thompson <eschutho@gmail.com> (cherry picked from commit f19f2c3)
* floating table git issue * made changes * floating table git issue * made changes * long table names * floating table git issue * made changes * floating table git issue * made changes * long table names * floating table git issue * made changes * floating table git issue * made changes * long table names * table values * aligned * active key * changed to customStyle * update dropdown styles Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
* floating table git issue * made changes * floating table git issue * made changes * long table names * floating table git issue * made changes * floating table git issue * made changes * long table names * floating table git issue * made changes * floating table git issue * made changes * long table names * table values * aligned * active key * changed to customStyle * update dropdown styles Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
* floating table git issue * made changes * floating table git issue * made changes * long table names * floating table git issue * made changes * floating table git issue * made changes * long table names * floating table git issue * made changes * floating table git issue * made changes * long table names * table values * aligned * active key * changed to customStyle * update dropdown styles Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
SUMMARY
The table and database selector were floating in SQL Left Bar. This solution fixes that by creating a new prop in TableSelector that determines whether to use a created ref or the document body.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
After:
TEST PLAN
This was visually tested.
ADDITIONAL INFORMATION