Allow to quickly filter Merge Request files from file tree by extension
Proposal
When we're reviewing multi-disciplinary MRs, it's common to have files we won't really want to look at.
Eg: When I'm reviewing a Frontend MR, I'm mostly interested in Frontend files. I'll still take a peek at the Backend but only after I'm done with the Frontend ones.
So, as a multidiciplinary code reviewer, I'd like to** be able to filter files** and only show the ones I care about, so I can more efficiently navigate back and forth between the files relevant to my review.
Details
I wouldn't expect these to stick between page loads. Especially since making it stick could lead me to ignore filtered out files by accident. Explicit filtering ftw!
Proposal
Regarding the UI proposal, it seems that the Search
input is already a filter by itself:
Empty state | With search |
---|---|
![]() |
![]() |
It might be worthwhile to increase the visibility of that feature by giving users some hints.
Regarding filtering by multiple file extensions it might be worth extending the current Search functionality to support multiple comma-separated search queries. Also, it would be nice to support a Glob pattern there.
Adding suggestions to the Search panel could also speed things up by re-using user's previous searches.
We can go even further with that and allow saving those queries for an even quicker access.