You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[explore][discussion]short & long term solutions for displaying truncated info in Explore and Dashboard #12640
We had naming rules for metrics, so that many metrics have same prefix. In the adhoc filter dropdown list, it only shows same prefix, there is no way for our users to pick the right metric from dropdown list:
Expected results
Should add hover effect or tooltip for every item in the dropdown list.
Environment
latest master
Checklist
Make sure to follow these steps before submitting your issue - thank you!
I have checked the superset logs for python stacktraces and included it here as text if there are any.
I have reproduced the issue with at least the latest released version of superset.
I have checked the issue tracker for the same issue and I haven't found one similar.
changed the title [-][explore][adhoc filter] Long metric name need to show full name in dropdown list[/-][+][explore]Long metric name need to show full name in dropdown list[/+]on Jan 21, 2021
Then the question becomes, how to teach Superset users this new pattern. feature tutorial and on boarding are absolutely areas that we have room to improve.
As we made all Explore components resizable, including data panel, data table, charts, control panel and popovers, users should have much greater flexibility operating in Explore than ever before, so I think it might worth users time learning and adapting to this enhanced pattern. Happy to hold a training session with your users to introduce all the new features in Explore and get immediate feedback from them.
I'm not sure adding tooltips everywhere to show truncated information is the best UIUX. If you can think of any better ideas, please let us know
Then the question becomes, how to teach Superset users this new pattern. feature tutorial and on boarding are absolutely areas that we have room to improve.
As we made all Explore components resizable, including data panel, data table, charts, control panel and popovers, users should have much greater flexibility operating in Explore than ever before, so I think it might worth users time learning and adapting to this enhanced pattern. Happy to hold a training session with your users to introduce all the new features in Explore and get immediate feedback from them.
I'm not sure adding tooltips everywhere to show truncated information is the best UIUX. If you can think of any better ideas, please let us know
I agree this. There are so many different users with different usage patterns, and some users may just use it once per a few month. You can't rely on one-time education or training.
It's worth to watch a video for large feature, like how to use annotation. For small feature like dropdown list, no one will bother to "learn" how to use it.
Expecting users to resize this every single time they open the Metrics popup is unreasonable expectation.
On the tutorial / education piece I agree there is space for improvement. One idea users suggested in the past is have some kind of "since you last visited" or "since last release" where they can have a summary. I am personally not convinced if this would be used (I never use this feature in other products) but we could explore this option a bit.
I think there is room for this popover to be wider horizontally by default. I agree that it's unreasonable to manually expand every time. I think hovering for tooltips might get frustrating when combined with scrolling + scanning through a big list. What's a string character length that we'd want to fit into the menu without truncation?
before we come up a perfect solution, will title attribute be a simple solution?
+1 title attribute should be the default in most places with potential truncation. I remember my job as a junior frontend engineer 10 years ago was adding "title" in a lot of places.
changed the title [-][explore]Long metric name need to show full name in dropdown list[/-][+][explore][discussion]short & long term solutions for displaying truncated info in Explore and Dashboard[/+]on Jan 21, 2021
if we do go with the solution of adding title attribute or tooltip, that will have to happen systematically, which takes time.
the fastest/easiest solution will be increasing the width of popover by default. I remember the longest title you gave me is about 50 character long, to be safe, should we bump it to fit 70 character by default? @mihir174
increasing the width of popover is stick to a fixed width, which probably still not guarantee all the cases.
Same issue happens in dataset panel, user can not see the full metric name. You will see that even as wide as data panel with max width, a lot of metric names still get truncated.
(Note: a couple of days ago the data panel can show horizontal scrollbar, but this behavior is changed now.)
Agreed that all cases won't ever be guaranteed. My thought is we can increase the width so that more cases are covered and fewer will need to be treated with a title attribute.
I also wanted to bring up truncation again - will it be more useful if metrics are truncated in the middle? I've noticed that many long metrics differ towards the end of their strings. Like so -
@graceguo-supercat can you confirm if this has been resolved (and close this ticket if resolved)? Looks like there are PRs linked here and last discussion in January.
This might be a little heavy-handed and optimistic, but I think since the tooltips in the left pan have been broadly changed, and hopefully things are humming along well enough nowadays. Also we haven't heard any other input on this thread in quite some time, so it doesn't seem to be a hot-button issue and we can consider it "stale" in github terms. If anyone feels differently, perhaps we can open a design discussion in Ideas, speak synchronously, or re-open this with updated context if warranted.
Activity
[-][explore][adhoc filter] Long metric name need to show full name in dropdown list[/-][+][explore]Long metric name need to show full name in dropdown list[/+]zhaoyongjie commentedon Jan 21, 2021
Hi, @graceguo-supercat
There is a resize icon available to zoom in and out the metric(and filter) popover.
ktmud commentedon Jan 21, 2021
I'm pretty sure 90% of users would not think of using that resize button when they see truncated options.
junlincc commentedon Jan 21, 2021
Then the question becomes, how to teach Superset users this new pattern. feature tutorial and on boarding are absolutely areas that we have room to improve.
As we made all Explore components resizable, including data panel, data table, charts, control panel and popovers, users should have much greater flexibility operating in Explore than ever before, so I think it might worth users time learning and adapting to this enhanced pattern. Happy to hold a training session with your users to introduce all the new features in Explore and get immediate feedback from them.
I'm not sure adding tooltips everywhere to show truncated information is the best UIUX. If you can think of any better ideas, please let us know
graceguo-supercat commentedon Jan 21, 2021
I agree this. There are so many different users with different usage patterns, and some users may just use it once per a few month. You can't rely on one-time education or training.
It's worth to watch a video for large feature, like how to use annotation. For small feature like dropdown list, no one will bother to "learn" how to use it.
junlincc commentedon Jan 21, 2021
Feature tutorial and user guide are definitely something we should start incorporating to the product. I will see what I can do in Explore.
zuzana-vej commentedon Jan 21, 2021
Expecting users to resize this every single time they open the Metrics popup is unreasonable expectation.
On the tutorial / education piece I agree there is space for improvement. One idea users suggested in the past is have some kind of "since you last visited" or "since last release" where they can have a summary. I am personally not convinced if this would be used (I never use this feature in other products) but we could explore this option a bit.
mihir174 commentedon Jan 21, 2021
I think there is room for this popover to be wider horizontally by default. I agree that it's unreasonable to manually expand every time. I think hovering for tooltips might get frustrating when combined with scrolling + scanning through a big list. What's a string character length that we'd want to fit into the menu without truncation?
graceguo-supercat commentedon Jan 21, 2021
before we come up a perfect and beautiful solution, will title attribute be a simple solution?
ktmud commentedon Jan 21, 2021
+1 title attribute should be the default in most places with potential truncation. I remember my job as a junior frontend engineer 10 years ago was adding "title" in a lot of places.
[-][explore]Long metric name need to show full name in dropdown list[/-][+][explore][discussion]short & long term solutions for displaying truncated info in Explore and Dashboard[/+]junlincc commentedon Jan 21, 2021
if we do go with the solution of adding title attribute or tooltip, that will have to happen systematically, which takes time.
the fastest/easiest solution will be increasing the width of popover by default. I remember the longest title you gave me is about 50 character long, to be safe, should we bump it to fit 70 character by default? @mihir174
graceguo-supercat commentedon Jan 21, 2021
increasing the width of popoveris stick to a fixed width, which probably still not guarantee all the cases.Same issue happens in dataset panel, user can not see the full metric name. You will see that even as wide as data panel with max width, a lot of metric names still get truncated.

(Note: a couple of days ago the data panel can show horizontal scrollbar, but this behavior is changed now.)
cc @betodealmeida :)
mihir174 commentedon Jan 21, 2021
Agreed that all cases won't ever be guaranteed. My thought is we can increase the width so that more cases are covered and fewer will need to be treated with a title attribute.
I also wanted to bring up truncation again - will it be more useful if metrics are truncated in the middle? I've noticed that many long metrics differ towards the end of their strings. Like so -

graceguo-supercat commentedon Jan 21, 2021
Did you notice it also offers tooltip for the full name?

zuzana-vej commentedon Apr 21, 2021
@graceguo-supercat can you confirm if this has been resolved (and close this ticket if resolved)? Looks like there are PRs linked here and last discussion in January.
rusackas commentedon Dec 21, 2022
This might be a little heavy-handed and optimistic, but I think since the tooltips in the left pan have been broadly changed, and hopefully things are humming along well enough nowadays. Also we haven't heard any other input on this thread in quite some time, so it doesn't seem to be a hot-button issue and we can consider it "stale" in github terms. If anyone feels differently, perhaps we can open a design discussion in Ideas, speak synchronously, or re-open this with updated context if warranted.