Skip to content

[explore][discussion]short & long term solutions for displaying truncated info in Explore and Dashboard #12640

Closed as not planned

Description

@graceguo-supercat

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:

Screen Shot 2021-01-20 at 5 42 54 PM

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.

cc @junlincc

Activity

  1. added
    #bug
    explore:filter
    explore:metrics
    on Jan 21, 2021
  2. 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
  3. zhaoyongjie commented on Jan 21, 2021

    @zhaoyongjie
    Member

    Hi, @graceguo-supercat
    There is a resize icon available to zoom in and out the metric(and filter) popover.

    image

  4. ktmud commented on Jan 21, 2021

    @ktmud
    Member

    I'm pretty sure 90% of users would not think of using that resize button when they see truncated options.

  5. junlincc commented on Jan 21, 2021

    @junlincc
    Member

    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

  6. graceguo-supercat commented on Jan 21, 2021

    @graceguo-supercat
    Author

    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.

  7. junlincc commented on Jan 21, 2021

    @junlincc
    Member

    Feature tutorial and user guide are definitely something we should start incorporating to the product. I will see what I can do in Explore.

  8. zuzana-vej commented on Jan 21, 2021

    @zuzana-vej
    Contributor

    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.

  9. mihir174 commented on Jan 21, 2021

    @mihir174
    Contributor

    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?

  10. graceguo-supercat commented on Jan 21, 2021

    @graceguo-supercat
    Author

    before we come up a perfect and beautiful solution, will title attribute be a simple solution?

  11. ktmud commented on Jan 21, 2021

    @ktmud
    Member

    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.

  12. added
    explore:design
    .pinned
    and removed
    #bug
    on Jan 21, 2021
  13. 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
  14. junlincc commented on Jan 21, 2021

    @junlincc
    Member

    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

  15. removed
    explore:filter
    explore:metrics
    on Jan 21, 2021
  16. graceguo-supercat commented on Jan 21, 2021

    @graceguo-supercat
    Author

    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.
    Screen Shot 2021-01-21 at 9 23 52 AM

    (Note: a couple of days ago the data panel can show horizontal scrollbar, but this behavior is changed now.)

    cc @betodealmeida :)

  17. mihir174 commented on Jan 21, 2021

    @mihir174
    Contributor

    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 -
    Screen Shot 2021-01-21 at 9 49 03 AM

  18. graceguo-supercat commented on Jan 21, 2021

    @graceguo-supercat
    Author

    Did you notice it also offers tooltip for the full name?
    Screen Shot 2021-01-21 at 9 54 26 AM

  19. zuzana-vej commented on Apr 21, 2021

    @zuzana-vej
    Contributor

    @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.

  20. rusackas commented on Dec 21, 2022

    @rusackas
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    .pinnedexplore:design

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions