refactor: remove the legacy detailed summary section and simplify the results playback props, keeping detection counts and stats in the main playback card layout.

This commit is contained in:
2026-06-18 14:49:49 +05:30
parent 4add7a6c83
commit 6cf363dce1
3 changed files with 4 additions and 339 deletions

View File

@@ -14,22 +14,15 @@ import { useAnnotatedVideoQuery } from '@/app/(modules)/results/hooks/useVideoRe
import AnnotatedVideoPlayer from './video/annotatedVideoPlayer';
import CurrentDetectionBar from './video/currentDetectionBar';
import DetectionLogs from './video/detectionLogs';
import DetailedSummarySection from './video/detailedSummarySection';
import ResultStatsGrid from './video/resultStatsGrid';
import { useDetectionPlayback } from './video/useDetectionPlayback';
type VideoPlayerSectionProps = {
data: CompletedVideoResult;
videoId: string;
detectionType: string;
projectId?: string;
};
export default function VideoPlayerSection({
data,
videoId,
detectionType,
projectId,
}: VideoPlayerSectionProps) {
const videoRef = useRef<HTMLVideoElement>(null);
const {
@@ -80,8 +73,6 @@ export default function VideoPlayerSection({
onSeeked={handleSeeked}
/>
<ResultStatsGrid data={data} />
<CurrentDetectionBar
activeLog={activeLog}
summary={data.summary}
@@ -94,15 +85,13 @@ export default function VideoPlayerSection({
onSeek={handleSeek}
/>
</div>
<div className="mt-6">
<ResultStatsGrid data={data} />
</div>
</CardContent>
</Card>
<DetailedSummarySection
projectId={projectId || ''}
videoId={videoId}
detectionType={detectionType}
logs={sortedLogs}
/>
</div>
);
}