Skip to content

Conversation

@klakhov
Copy link
Contributor

@klakhov klakhov commented Nov 17, 2025

Motivation and context

This PR adds plugin support for job annotation view menu and player.
Also splitted logic for fetching and decoding contextImages into two separate methods

How has this been tested?

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 (see GitHub docs)

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.

@codecov-commenter
Copy link

codecov-commenter commented Nov 17, 2025

Codecov Report

❌ Patch coverage is 87.09677% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.52%. Comparing base (45af96a) to head (8449492).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #10012      +/-   ##
===========================================
+ Coverage    73.89%   82.52%   +8.62%     
===========================================
  Files          428      428              
  Lines        46260    46278      +18     
  Branches      4137     4138       +1     
===========================================
+ Hits         34184    38191    +4007     
+ Misses       12076     8087    -3989     
Components Coverage Δ
cvat-ui 77.48% <87.09%> (-0.15%) ⬇️
cvat-server 86.79% <ø> (+16.06%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

max={stopFrame}
onChange={(value) => {
removeFrom = value;
removeFrom = value ?? undefined;
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need these two changes?
If value is not specified, it is already undefined or null.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have ts error here, value from on change can be null, and the method removeAnnotationsAsyncAction and jobInstance.annotations.clear support only number | undefined

Copy link
Member

Choose a reason for hiding this comment

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

Should not we fix types in jobInstance.annotations.clear instead?
BTW removeAnnotationsAsync always expects numbers according to specified types, so, the types are inconsistent anyway

Copy link
Contributor Author

@klakhov klakhov Nov 28, 2025

Choose a reason for hiding this comment

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

jobInstance.annotations.clear accept number | undefined for those params and have separate logic for handling such case (clearing all annotations). So I suppose the correct way should be changing types here and in removeAnnotationsAsync.

plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-transform-private-methods',
Copy link
Member

Choose a reason for hiding this comment

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

Could you please clarify why we need this plugin?

Copy link
Contributor Author

@klakhov klakhov Dec 1, 2025

Choose a reason for hiding this comment

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

This plugin allow us to define private class methods with # notation, like this: #doSomething(param: number): void, without it only private fields are allowed: this.#field.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 3, 2025

@klakhov klakhov merged commit 2221d94 into develop Dec 3, 2025
40 checks passed
@klakhov klakhov deleted the kl/preload-feature branch December 3, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants