
I don't think I understand the elements of this card.
Table 1?
[describe any input/collaboration you'd like from designers, and
tag accordingly. For design review, add the
label design:review. If this includes a design proposal,
include the label design:suggest]
on it, thanks for reporting. @pkdotson what im seeing from my end.. well i didn't test saved queries obviously.. 😞


thanks for the quick feedback @ktmud ! this is what the cards are intended to look like^
"Label" is the query name, it's just we call it "label" in the save query form.
Another idea is to display a snippet of the query itself instead of the description. E.g.

Also note that currently Superset doesn't support favoriting saved queries yet, which is probably why @pkdotson didn't add the favorite button in the first place. Whether we want to add support for favoriting them is another question, but before we do, we should probably disable the "Favorites" tab for now.
@ktmud +1 on SQL maybe even with aggressively small characters ~8px
Crazy idea: thumbnail + fisheye!
@ktmud getting rid of the table number since it's too confusing, adding snippet.
@ktmud that makes sense, and i like the idea of show code snippets in the cards, especially since it's difficult to fit them into list views. i built on the screenshot you provided and modified the layout to be more consistent with the dashboard and chart cards -

Here's what it could look like on the home page -

@mihir174 thanks for the updates! This looks good. Any reason to give the query snippet a gray background? Currently it kind of blends too well with the page background. Would also be curious to see how the card looks like when the title is very long.
I like the new icons for charts in the Recents section! Much more distinguishable than the current icons.
Looking at this page more, I'd like to make a couple of more suggestions for your consideration: @junlincc @mistercrunch
Would also be curious to see how the card looks like when the title is very long.
good one! 😆 @mihir174 please take that into consideration
@ktmud long titles are gonna be treated like the dashboard and chart cards - they will be truncated and the user will be able to see the whole title on hover
here's a mockup:

and here's an example of dashboard cards with long titles:


i understand that showing title is important to your users. if we don't truncate long title, then the card will look really overloaded and no longer serve its purpose as an information overview. @ktmud
What do you mean it doesn't serve its purpose? I think they look kind of OK:

@ktmud long titles are gonna be treated like the dashboard and chart cards - they will be truncated and the user will be able to see the whole title on hover
@mihir174 @pkdotson I don't think _see title on hover_ is implemented on any cards, please make sure .........😞

I don't have a strong opinion on whether the title should be truncated here as it's less a data accuracy issue here than on dashboards and the titles are less likely to be very long or have similar prefixes anyway.
I think it's OK to just show an HTML title attribute. Tooltip might be a little too heavy in this case, especially if most titles don't truncate.
The real perk of the tooltip in my view is that it displays a bit faster than the html title. That makes it a little more discoverable to those with cursors, even if perhaps it's less accessible from an a11y standpoint. So... I guess it's kind of a tossup :)
can we close this since ☝️ merged?
we will get rid of the Favorite tab in a separate PR in the hardening phase. closing this issue for now.

@rusackas since the truncation is being handled by css, I can't think of a way to only show a tooltip if there is truncation. I think adding a tooltip of every single title will make the whole page kind of jumpy.
ok, looks like all titles have tooltips now 😕
Correct.... my dream of an :is-overflowed selector still eludes me.
🥺 let's move on for now lol~
Oooh, this looks promising... for another PR.
oh that's great, we can definitely use that in some of the listviews
Most helpful comment
@ktmud that makes sense, and i like the idea of show code snippets in the cards, especially since it's difficult to fit them into list views. i built on the screenshot you provided and modified the layout to be more consistent with the dashboard and chart cards -
