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 |
There was a problem hiding this comment.
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.
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.
rusackas
left a comment
There was a problem hiding this comment.
Lookin' good to me, just one little nit to fix (I made a code suggestion)
Co-authored-by: Evan Rusackas <evan@preset.io>
* update savedqueries card to new layout * update card * update card to latest mock * update empty state * remove fallback * fix query statement * update card styles * remove double import * use fallbackurl prop for emptystate * update line lenth * Update superset-frontend/src/views/CRUD/welcome/SavedQueries.tsx Co-authored-by: Evan Rusackas <evan@preset.io> * update styles and svg 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