Conversation
There is new button in pull request diff template, which opens dropbox containing list of all unique extensions that the diff contains. List is created with checkmarks that can be checked/unchecked to filter out files with specific extension. There is also "select all" and "deselect all" buttons. To apply the change and filter out the files user have to click on "Apply" button. If any extensions were filtered out, then button which opens the dropbox is outlined to signal some files were filtered out.
…FileExtensionFilter
|
|
Can we also move the filter to the left, above the files and also add the search bar? |
…ng for loading more files and general code cleaning
|
In recent changes I've fixed the code for those issues:
And I also added the search box, as suggested. I did not changed the position of the button, waiting for more voices for this change. |
@silverwind whats your opinion on that? |
bircni
left a comment
There was a problem hiding this comment.
Please do a proper pass over the AI-generated output before requesting review.
|
@silverwind @wxiaoguang @bircni I've made edits based on your comments :) |
|
please press on |
I think its better to let the maintainer resolve it themselves in case they may not see something as actually fixed |
|
@lunny Can you share more details, I see you have 7 files in pull request and extension filter is showing two, so I would like to know which other files were not calculated. Or you have something else in mind? |
|
Ok guys, @wxiaoguang @bircni @silverwind please let me know if there is anything else for me to fix and what are next steps toward merging this branch. |
|
I still want the search button on the left |
Yes. There are 7 files in total, all of them .yml or .md files, but the filter only shows 2 files. |
ReviewBugs
Design issues
Nits
This comment was written by Claude Opus 4.6. |




Add file extension filter for pull request diffs
Introduces a new dropdown filter in the PR diff toolbar that allows reviewers to show/hide files based on their extensions. This helps focus on specific file types during code review (e.g., viewing only
.tsfiles when reviewing TypeScript changes, or hiding.test.jsfiles when reviewing implementation).Closes: Feature of file filter in PR page #27256
Usage
How it works
.tw-hiddenCSS class to non-matching files, instantly hiding themKeyboard Navigation
For users who prefer keyboard navigation:
Technical Details
DiffFileExtensionFilter.vue) following the same pattern as the existing commit filterTesting
Screenshots
Filter by extension dropdown:

State when files are filtered out:

Note: This implementation uses AI assistance (GitHub Copilot). All code has been reviewed and tested against Gitea's contribution guidelines and passes all linting checks.