Skip to content

Add "source" as a filterable field in the annotations Filters panel - #10960

Open
VidipKhattar wants to merge 7 commits into
cvat-ai:developfrom
VidipKhattar:develop
Open

Add "source" as a filterable field in the annotations Filters panel#10960
VidipKhattar wants to merge 7 commits into
cvat-ai:developfrom
VidipKhattar:develop

Conversation

@VidipKhattar

Copy link
Copy Markdown

Motivation and context

Every shape/tag/track already carries a source field (auto, semi-auto,
manual, file, consensus), and it's shown next to objects in the UI, but it
was missing from the annotations Filters panel — there was no way to filter
objects by how they were created.

This is the "smaller first step" proposed in #10933: it doesn't touch bulk
deletion yet, but it already lets users select annotations by source and,
combined with the existing "Remove filtered shapes" annotations action,
lets them delete by source today with no other code changes.

Related: #10933

How has this been tested?

Manually in the UI: opened a task with a mix of manually created and
auto-annotated (Nuclio detector) shapes, opened the Filters panel, added a
Source condition (e.g. Source = Auto), and confirmed only matching
objects were shown/highlighted. Also verified the filter can be combined
with existing fields (label, type, etc.) and cleared normally.

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword))

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@bsekachev

Copy link
Copy Markdown
Member

@klakhov Please, review the pull request

@klakhov klakhov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall pr looks good. Just one small comment

Comment thread cvat-core/src/session.ts Outdated
VidipKhattar and others added 2 commits August 1, 2026 19:59
The sources?: Source[] option on Session.annotations.clear leaked in from
the delete-by-source branch and has no implementation behind it in this
change, so remove it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@VidipKhattar
VidipKhattar requested a review from nmanovic as a code owner August 1, 2026 19:05
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 42.85714% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cvat-core/src/annotations-filter.ts 42.85% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants