-
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
feat(welcome): add SQL snippets to saved queries card #11678
feat(welcome): add SQL snippets to saved queries card #11678
Conversation
FYI, I discovered #11679 while testing this. You'll want to handle the null case in this PR too |
Also, it looks card size changes based on the content. I'm not sure whether this is desirable or not. I just worked on query history page added a truncation function you might be interested in |
4fb8811
to
9c67b4f
Compare
Codecov Report
@@ Coverage Diff @@
## master #11678 +/- ##
==========================================
- Coverage 63.54% 63.22% -0.33%
==========================================
Files 915 916 +1
Lines 44358 44476 +118
Branches 4221 4228 +7
==========================================
- Hits 28189 28120 -69
- Misses 15990 16177 +187
Partials 179 179
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
e4abfde
to
52c093b
Compare
adding tooltip for long title display on hover. don't merge yet @rusackas |
2d5c4df
to
f717b71
Compare
LGTM, @rusackas let's merge! tooltip will come from a separate PR |
const QueryContainer = styled.div` | ||
pre { | ||
height: ${({ theme }) => theme.gridUnit * 40}px; | ||
border: none !important; |
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.
Ping me when you have a chance, we can pair up and see if there's a better selector to remove the need for !important
here.
301975c
to
d611270
Compare
.ant-card-cover { | ||
border-bottom: 1px solid ${({ theme }) => theme.colors.grayscale.light2}; | ||
& > div { | ||
height: 171px; |
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.
This can be an experiment for another PR, but if this card is basically a text box, we may be able to base its height on the number of lines set elsewhere in the JS. That is, if line-height
is pulled from the Theme variables, the height could be numLines * lineHeight
. Anyway, something to fiddle with to make this a little more dynamic.
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.
Lookin' good to me, just one little nit to fix (I made a code suggestion)
Co-authored-by: Evan Rusackas <evan@preset.io>
SUMMARY
This Pr update the savedqueries card to the new proposed layout on welcome page. Also, updated media queries to keep text from expanding the cards to weird widths.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
After:
TEST PLAN
ADDITIONAL INFORMATION