-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Migrate quality UI changes #7441
Conversation
…into kl/quality-bugfixes
@klakhov Could you please merge with develop? |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #7441 +/- ##
===========================================
- Coverage 83.55% 83.52% -0.03%
===========================================
Files 375 373 -2
Lines 39752 39689 -63
Branches 3734 3718 -16
===========================================
- Hits 33213 33151 -62
+ Misses 6539 6538 -1
|
cvat-ui/src/components/analytics-page/task-quality/task-quality-component.tsx
Outdated
Show resolved
Hide resolved
cvat-ui/src/utils/hooks.ts
Outdated
export function useStateIfMounted<T>(defaultValue: T): [T, (t: T) => void] { | ||
const isMounted = useIsMounted(); | ||
const [state, setState] = useState<T>(defaultValue); | ||
const wrappedSetState = useCallback((val: T) => isMounted() && setState(val), []); | ||
return [state, wrappedSetState]; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose now it may be removed
fetching: boolean, | ||
taskReport: QualityReport | null, | ||
jobsReports: QualityReport[], | ||
qualitySettings: { | ||
settings: QualitySettings | null, | ||
fetching: boolean, | ||
visible: boolean, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fetching: boolean, | |
taskReport: QualityReport | null, | |
jobsReports: QualityReport[], | |
qualitySettings: { | |
settings: QualitySettings | null, | |
fetching: boolean, | |
visible: boolean, | |
}, | |
fetching: boolean; | |
taskReport: QualityReport | null; | |
jobsReports: QualityReport[]; | |
qualitySettings: { | |
settings: QualitySettings | null; | |
fetching: boolean; | |
visible: boolean; | |
}; |
task: Task, | ||
onJobUpdate: (job: Job) => void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
task: Task, | |
onJobUpdate: (job: Job) => void | |
task: Task; | |
onJobUpdate: (job: Job) => void; |
frame_count: number, | ||
frame_share: number, | ||
conflict_count: number, | ||
valid_count: number, | ||
ds_count: number, | ||
gt_count: number, | ||
error_count: number, | ||
warning_count: number, | ||
conflicts_by_type: { | ||
extra_annotation: number, | ||
missing_annotation: number, | ||
mismatching_label: number, | ||
low_overlap: number, | ||
mismatching_direction: number, | ||
mismatching_attributes: number, | ||
mismatching_groups: number, | ||
covered_annotation: number, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
frame_count: number, | |
frame_share: number, | |
conflict_count: number, | |
valid_count: number, | |
ds_count: number, | |
gt_count: number, | |
error_count: number, | |
warning_count: number, | |
conflicts_by_type: { | |
extra_annotation: number, | |
missing_annotation: number, | |
mismatching_label: number, | |
low_overlap: number, | |
mismatching_direction: number, | |
mismatching_attributes: number, | |
mismatching_groups: number, | |
covered_annotation: number, | |
frame_count: number; | |
frame_share: number; | |
conflict_count: number; | |
valid_count: number; | |
ds_count: number; | |
gt_count: number; | |
error_count: number; | |
warning_count: number; | |
conflicts_by_type: { | |
extra_annotation: number; | |
missing_annotation: number; | |
mismatching_label: number; | |
low_overlap: number; | |
mismatching_direction: number; | |
mismatching_attributes: number; | |
mismatching_groups: number; | |
covered_annotation: number; |
Motivation and context
This PR moves some UI changes from #6367
Now it includes:
cvat-ui
How has this been tested?
Checklist
develop
branch[ ] I have updated the documentation accordingly[ ] I have added tests to cover my changes[ ] I have linked related issues (see GitHub docs)(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.