-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Explore improving the discoverability of filtering in tree views #146806
Comments
Coincidence: #146821 I really like the ideas in the sketched video. I think code structure-wise it will be hard to implement this in a single place and just have all trees benefit from it. But we can certainly add these actions across all views we find crucial to have it. Also the empty state would be new and we'd have to figure out how to also benefit from it with the usual type to filter experience... maybe typing would trigger the widget and erasing what you've typed would show the empty state instead of hiding it, as it's done today? Unsure if it's clear given your description, but we do have a setting to change from highlighting to filtering |
yea we'd need to find a good default (i.e. min-width) for this state since this is triggered by an action and not by text, happy to play around with this
the tricky part here is that the
I'd love to know more about the use case where you'd want to only highlight vs filter because most filters will exclude the non-matches so the current behavior is a bit confusing in that respect. I was proposing to simplify the UX a bit but happy to discuss if we have a solid case for highlighting. |
The decision here was made based on the default expectation towards pressing a key on a list, speaking in broader terms of software. Usually, focus navigates to the next element which matches what the user has typed (think Finder, Windows Explorer). Code does that and goes beyond: it hightlights all other possible matches and narrows keyboard navigation to that subset only. We posited that making it filter by default would just annoy users who are used to that usual navigation pattern of type |
I do wonder how many people navigate the tree with the typical "type CleanShot.2022-04-21.at.15.31.45.mp4And below are a few other ideas for filtering that iterate on some of the feedback: Option AThis one closely mirrors what we already have except it shows a cursor to indicate the focus of input and has an icon as the entry point. CleanShot.2022-04-21.at.14.55.50.mp4Option BThis one explores if we had a "mode" where it strictly filters the results (what I would expect to be the default behavior). CleanShot.2022-04-21.at.14.56.28.mp4 |
Here's the latest version where we try to use the find widget interaction to make it much more clearer how to use it. I also explore moving the collapse folder and filter actions into an ellipsis. CleanShot.2022-05-10.at.11.28.09.mp4And an additional example where the find widget is moveable in case of inline actions behind it: CleanShot.2022-05-11.at.11.59.57.mp4 |
Refs #140601
During the last iteration we explore how we could improve the discoverability of filtering in tree views, so this issue aims to bring the discussion around the specific design interaction. Currently you have to place your focus in a tree view and then start typing. In this exploration, we'll propose to surface an entry point in the view toolbar via a dedicated action. We could alternatively add this to an ellipsis menu to reduce the visual clutter. Lastly, we'll look at simplifying the filtering options and only filter the results (as opposed to highlighting the matches).
CleanShot.2022-04-05.at.01.21.51.mp4
@joaomoreno would love feedback here on the proposal and any additional options we can explore.
Related Issue
The text was updated successfully, but these errors were encountered: