Skip to content
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

implement filtering by marker type #83797

Merged
merged 8 commits into from
Nov 7, 2019
Merged

implement filtering by marker type #83797

merged 8 commits into from
Nov 7, 2019

Conversation

tfenster
Copy link
Contributor

@tfenster tfenster commented Oct 31, 2019

This PR fixes #47354

I have added three new checkboxes to the filter element in the problems view, one for each marker type (error, warning, info). This makes it more convenient to filter and allows scenarios where you want to e.g. only show errors with text "warning" which wasn't possible before:

vscode_marker_filter

I tried to follow the coding guidelines and hope I complied, but as this is my first VS Code PR, I might be wrong. In that case, any tips on what I missed are greatly appreciated

@sandy081 sandy081 self-requested a review November 6, 2019 10:04
@sandy081 sandy081 added this to the November 2019 milestone Nov 6, 2019
@sandy081 sandy081 added the error-list Problems view label Nov 6, 2019
@sandy081
Copy link
Member

sandy081 commented Nov 6, 2019

@tfenster Good approach. But how does it look when the filter input size reduces?

@sandy081
Copy link
Member

sandy081 commented Nov 6, 2019

Ping @misolori for UX. Any feedback?

@tfenster
Copy link
Contributor Author

tfenster commented Nov 6, 2019

@tfenster Good approach. But how does it look when the filter input size reduces?

Very good point, that didn't look good in my initial version :) I've now increased the min-width and padding with the following result

scroll

@miguelsolorio
Copy link
Contributor

Thanks @tfenster for taking a look at this, really appreciate the work you put into this! We ran this through our weekly ux sync today to see what the team thought of the ux and here is some feedback:

  • Even though you are re-using the Search/Find model of showing actions inside of a text input, this feels very heavy/bulky
  • When you filter results, there is no indication in the results that your filter is hiding other results. You can easily show text that indicates this and allow the user to clear the filter
  • While it's nice to be able to easily toggle certain problem types, we think there are some better ways to accomplish this and not clutter the input field like:

image

And when filtered:

image

I think because this does require some significant ux work we might want to first decide as a team the direction that we want to pursue before we accept a PR for this.

@tfenster
Copy link
Contributor Author

tfenster commented Nov 6, 2019

@misolori Thanks for your feedback. To your points:

  • Even though you are re-using the Search/Find model of showing actions inside of a text input, this feels very heavy/bulky: I am not sure if I understand that. Are you basically saying "you do the same thing that we do, but if you do it, we don't like it"? Sorry if I am missing something here, but I am unable to understand your point?
  • When you filter results, there is no indication in the results that your filter is hiding other results. You can easily show text that indicates this and allow the user to clear the filter: Hm, again not sure what you want to be changed as from my point of view it works exactly as with the existing text filter. When maximized it shows the text, when smaller it shows only the badge count.
    This is maximized behavior without my change - text shows
    orig full
    This is maximized behavior with my change - text shows as well
    full - mine
    This is smaller behavior without my change - text doesn't show
    smaller - orig
    This is smaller behavior with my change - text doesn't show as well
    smaller - mine
    Am I missing your problem with my change?
  • While it's nice to be able to easily toggle certain problem types, we think there are some better ways to accomplish this and not clutter the input field like: Kind of similar to the first point. You are doing the same, but there it isn't cluttered? Actually the search/find element includes even more elements
    image
    And the big drawback with your suggested solution is that it now takes two clicks instead of one, which I very much dislike. At least in my opinion ease of use and developer efficiency should be valued higher than aesthetics in that case.

Of course, all just my 2 cents and you are making the decisions but I wanted to state that I have a hard time following the reasoning here. If you still feel like the dropdown thing is better, would you know of any place in VS Code where this approach is used so that I could take a look and understand how that could be done so I might be able to replicate that? I didn't find anything working like that

@miguelsolorio
Copy link
Contributor

I am not sure if I understand that. Are you basically saying "you do the same thing that we do, but if you do it, we don't like it"? Sorry if I am missing something here, but I am unable to understand your point?

The point here is that adding these additional toggles in the input field (which is now 4 toggles) adds additional weight that doesn't look very appealing.

Hm, again not sure what you want to be changed as from my point of view it works exactly as with the existing text filter. When maximized it shows the text, when smaller it shows only the badge count.

I was wrong about this, we do show this text when your matches have no results and also show it in larger views (as you've shown)

Kind of similar to the first point. You are doing the same, but there it isn't cluttered? Actually the search/find element includes even more elements

Yes, our find widget is definitely cluttered and I'm personally not a fan how we display these actions. I think that's why we have a strong reaction to adding these toggles is that it adds more noise where we want to try to minimize it.

And the big drawback with your suggested solution is that it now takes two clicks instead of one, which I very much dislike. At least in my opinion ease of use and developer efficiency should be valued higher than aesthetics in that case.

I respectfully disagree. I think that we always strive for a balance of efficiency and aesthetics. I'm not saying my proposal is perfect, but this does require more discussions about what the right pattern should be.

If you still feel like the dropdown thing is better, would you know of any place in VS Code where this approach is used so that I could take a look and understand how that could be done so I might be able to replicate that? I didn't find anything working like that

I think the team needs to discuss this more and do a few explorations, Chrome Dev Tools does something similar for log levels that uses a dropdown (but it's not part of the input field):

image

Firefox uses text toggles:

image

So I think it does require some explorations on our end to find the right pattern to go with. Once we do find the right pattern we want to go with I'll be sure to post an update in the main issue. I know you put a lot of work into this and really appreciate it, just hope you can understand the reasons why we need to explore this a bit more.

@tfenster
Copy link
Contributor Author

tfenster commented Nov 6, 2019

@misolori Again, thanks for taking the time and providing this very detailed feedback. I would say we have to agree to disagree :) And I can for sure understand your reasoning now with more explanation although it still feels a bit weird to basically hear "you do the same as we but I reject it because I don't like it" from you.

Anyway, I personally like the dev tools approach a lot, where the dropdown is not part of the input box. To me that seems like a more established and intuitive pattern (at the cost of one more click, but that seems unavoidable if you don't want multiple elements). Would it help to have a quick implementation along those lines? I think I should be able to provide that rather easily with the pieces I already have in place

@sandy081
Copy link
Member

sandy081 commented Nov 7, 2019

@tfenster Thanks for taking this up and coming up with a proposal. As you have already seen we have a very strict process for doing new UI. This has to go through our UX discussion and has to get approved by the team. Generally for such kind of features, we try to avoid them getting done through external PRs as the feedback loop will be slow. I see this PR is logically completed but needs some UX tweaks. So, I would take this PR as is and will incorporate the UX feedback. Hope it is fine for you?

@tfenster
Copy link
Contributor Author

tfenster commented Nov 7, 2019

@sandy081 what are the implications of "So, I would take this PR as is and will incorporate the UX feedback"? Will you make the necessary changes here to get to a UX that works for your team?

@sandy081
Copy link
Member

sandy081 commented Nov 7, 2019

Will you make the necessary changes here to get to a UX that works for your team?

That works best for most 😄 . Getting the feedback from the community is also part of it. So I would keep posting the updates.

@tfenster
Copy link
Contributor Author

tfenster commented Nov 7, 2019

That works best for most 😄 . Getting the feedback from the community is also part of it. So I would keep posting the updates.

That sounds perfect. It would have been a bit sad for me to just close this PR and what until something pops up but if you do the work and I can feedback, that of course works very well for me 😊

@sandy081
Copy link
Member

sandy081 commented Nov 7, 2019

I would still say that you have done the majority of the work and gets the appreciation 🎉 . I would be just polishing the feature as we do always 😉 .

So my UX proposal for this feature is as follows

image

Grouped all filters into single dropdown. This will make all filter parts (filter text, filters, results badge) as a single unit.

@sandy081
Copy link
Member

sandy081 commented Nov 7, 2019

@tfenster Conflicts have to be resolved before merging. Shall I go ahead and resolve them?

@tfenster
Copy link
Contributor Author

tfenster commented Nov 7, 2019

I would still say that you have done the majority of the work and gets the appreciation 🎉 . I would be just polishing the feature as we do always 😉 .

So my UX proposal for this feature is as follows

image

Grouped all filters into single dropdown. This will make all filter parts (filter text, filters, results badge) as a single unit.

Thanks a lot, I very much appreciate that. I personally think the filter element should be outside of the entry field like in the Chrome Dev Tools as Miguel showed. To me when it is insider the entry field, it reminds me too much of the type-ahead dropdowns e.g. when selecting countries in an order form and that works differently.

@sandy081
Copy link
Member

sandy081 commented Nov 7, 2019

Good point. Moving it outside will make it disconnected with the results badge. This leads to move results badge also outside which makes the UI not so appealing. How different this filter action from Use Files Exclude filter action that was there before inside.

@tfenster
Copy link
Contributor Author

tfenster commented Nov 7, 2019

Ok, that definitely is valid as well. I just think having the filter element inside of the entry field suggests to me that it filters the entry while in truth it filters the results. Maybe keeping the gear symbol could work? That doesn't have such a strong connection for me

@sandy081
Copy link
Member

sandy081 commented Nov 7, 2019

I would not prefer the gear icon as it does not convey more filters. Filter icon is more closer to that. I understand your point but are you getting this feeling because above picture does not have problems panel? In the bigger perspective the filter input, actions and results might apt well?

@sandy081 sandy081 merged commit e2a439c into microsoft:master Nov 7, 2019
@tfenster
Copy link
Contributor Author

tfenster commented Nov 7, 2019

It just reminds me too much of something like this, probably because it is triangle shaped as well

image

But that might just be my perspective

@sandy081
Copy link
Member

sandy081 commented Nov 7, 2019

😮

The filters dropdown is different from above one as it is a list of filters with ✔️ that gets applied.

Let's play around and see how it is. I have pushed the changes to master. Also asked the community to do the same. Hope we get more feedback.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
error-list Problems view
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Buttons to hide errors and/or warnings and/or infos in Problems Panel - like in browsers devTools console
3 participants