diff --git a/changelog.d/20241121_181517_mzhiltso_fix_allocation_table.md b/changelog.d/20241121_181517_mzhiltso_fix_allocation_table.md new file mode 100644 index 000000000000..a1af44276acc --- /dev/null +++ b/changelog.d/20241121_181517_mzhiltso_fix_allocation_table.md @@ -0,0 +1,4 @@ +### Fixed + +- Incorrect display of validation frames on the task quality management page + () diff --git a/cvat-ui/src/components/quality-control/task-quality/allocation-table.tsx b/cvat-ui/src/components/quality-control/task-quality/allocation-table.tsx index 914909bc90c1..d1e366f71da1 100644 --- a/cvat-ui/src/components/quality-control/task-quality/allocation-table.tsx +++ b/cvat-ui/src/components/quality-control/task-quality/allocation-table.tsx @@ -19,6 +19,7 @@ import { } from 'cvat-core-wrapper'; import CVATTooltip from 'components/common/cvat-tooltip'; import { sorter } from 'utils/quality'; +import { ValidationMode } from 'components/create-task-page/quality-configuration-form'; interface Props { task: Task; @@ -52,7 +53,11 @@ function AllocationTable(props: Readonly): JSX.Element { const data = validationLayout.validationFrames.map((frame: number, index: number) => ({ key: frame, frame, - name: gtJobMeta.frames[index]?.name ?? gtJobMeta.frames[0].name, + name: gtJobMeta.frames[ + // - gt job meta starts from the 0 task frame; + // - honeypot gt job meta starts from the job start frame; + (validationLayout.mode === ValidationMode.GT) ? frame : index + ]?.name ?? gtJobMeta.frames[0].name, active: !disabledFrames.includes(frame), }));