import type { AnnotationListItem } from '../../src/types'
import { AnnotationSource, AnnotationStatus, Affiliation, CombatReadiness } from '../../src/types'

// Annotations exercising the source / status enums + the splitTile path
// (AC-39): one with a valid splitTile string, one malformed.

export const seedAnnotations: AnnotationListItem[] = [
  {
    id: 'ann-1',
    mediaId: 'media-3',
    time: null,
    createdDate: '2026-05-03T14:30:00Z',
    userId: 'user-alice',
    source: AnnotationSource.AI,
    status: AnnotationStatus.Created,
    isSplit: false,
    splitTile: null,
    detections: [
      {
        id: 'det-1',
        classNum: 0,
        label: 'class-0',
        confidence: 0.92,
        affiliation: Affiliation.Hostile,
        combatReadiness: CombatReadiness.Ready,
        centerX: 0.4,
        centerY: 0.5,
        width: 0.1,
        height: 0.15,
      },
    ],
  },
  {
    id: 'ann-2',
    mediaId: 'media-3',
    time: null,
    createdDate: '2026-05-03T14:32:00Z',
    userId: 'user-alice',
    source: AnnotationSource.AI,
    status: AnnotationStatus.Edited,
    isSplit: true,
    splitTile: '3 0.5 0.5 0.2 0.2',
    detections: [
      {
        id: 'det-2',
        classNum: 1,
        label: 'class-1',
        confidence: 0.88,
        affiliation: Affiliation.Friendly,
        combatReadiness: CombatReadiness.NotReady,
        centerX: 0.5,
        centerY: 0.5,
        width: 0.2,
        height: 0.2,
      },
    ],
  },
  {
    id: 'ann-3',
    mediaId: 'media-5',
    time: '00:01:00',
    createdDate: '2026-05-04T10:15:00Z',
    userId: 'user-bob',
    source: AnnotationSource.Manual,
    status: AnnotationStatus.Validated,
    isSplit: false,
    splitTile: null,
    detections: [],
  },
  {
    id: 'ann-4',
    mediaId: 'media-5',
    time: '00:01:30',
    createdDate: '2026-05-04T10:20:00Z',
    userId: 'user-bob',
    source: AnnotationSource.Manual,
    status: AnnotationStatus.Edited,
    isSplit: true,
    splitTile: 'garbage',
    detections: [],
  },
]
