import type { DetectionClass } from '../../src/types'

// Detection classes ordered per the contract: [0..N-1, 20..20+N-1, 40..40+N-1]
// with N=9 so AC-37 / data_model.md:158 hotkey 1..9 mapping is fully covered.
// PhotoMode + maxSizeM are placeholder values — no test currently asserts on
// them at the contract level; tests that need specific values override the
// /api/admin/classes handler.
const baseColors = [
  '#e6194b', '#3cb44b', '#ffe119', '#4363d8', '#f58231',
  '#911eb4', '#46f0f0', '#f032e6', '#bcf60c',
]

const N = 9
const offsets = [0, 20, 40]

export const seedClasses: DetectionClass[] = offsets.flatMap((offset) =>
  Array.from({ length: N }, (_, i) => ({
    id: offset + i,
    name: `class-${offset + i}`,
    shortName: `c${offset + i}`,
    color: baseColors[i % baseColors.length],
    maxSizeM: 5,
    photoMode: 0,
  })),
)
