import type { OcrEvalCase } from "../ocrEvalHarness";

export interface ConfirmedReviewEvalCase extends OcrEvalCase {
  confirmed: true;
  meta: NonNullable<OcrEvalCase["meta"]> & {
    source: "review-sample";
    note: string;
  };
}

// Human-confirmed review samples belong here after their `expect` values were
// checked against the real artifact. Do not paste unconfirmed exporter output
// directly from outputs/review-eval-candidates/.
export const confirmedReviewCorpus: ConfirmedReviewEvalCase[] = [
  {
    id: "native-review-crown-befallen-decimal-loss",
    confirmed: true,
    ocr: {
      "artifact-name": "Crown of the Befallen",
      "artifact-slot": "Circlet of Logos",
      "artifact-main-stat-label": "CRIT Rate",
      "artifact-main-stat-value": "311%",
      "artifact-level": "+20",
      "artifact-substats": "+ HP+508\n- DEF+44\n- DEF+1.7%\n+ CRIT DMG+13.2%",
      "artifact-set-effects": ":2-Piece Set: Increases Elementa\nMastery by 80.\nZ4-Piece Set: When nearby party\nmembers trigger Lunar",
      "artifact-footer": "Equipped: Zibai",
    },
    expect: {
      name: "Crown of the Befallen",
      slot: "Circlet of Logos",
      level: 20,
      mainStat: "CRIT Rate",
      mainValue: "31.1%",
      setName: "Night of the Sky's Unveiling",
      equipped: "Zibai",
      substats: ["HP+508", "DEF+44", "DEF%+11.7%", "CRIT DMG+13.2%"],
    },
    meta: {
      source: "review-sample",
      resolution: "492x838",
      note: "native-review-approved | run=20260709-223441 | sequence=6",
    },
  },
  {
    id: "native-review-viridescent-extra-digit",
    confirmed: true,
    ocr: {
      "artifact-name": "Viridescent Arrow Feather",
      "artifact-slot": "Plume of Death",
      "artifact-main-stat-label": "ATK",
      "artifact-main-stat-value": "",
      "artifact-level": "+20",
      "artifact-substats": "- DEF+39\n+ HP+687\n+ HP+5.3%\n+ ATK+156.7%",
      "artifact-set-effects": "r2-Piece Set: Anemo DMG Bonus\n+15%\n2 4-Piece Set: Increases Swirl\nDMG by 60%. Decreases",
      "artifact-footer": "Equipped: Sucrose",
    },
    expect: {
      name: "Viridescent Arrow Feather",
      slot: "Plume of Death",
      level: 20,
      mainStat: "ATK",
      mainValue: "311",
      setName: "Viridescent Venerer",
      equipped: "Sucrose",
      substats: ["DEF+39", "HP+687", "HP%+5.3%", "ATK%+15.7%"],
    },
    meta: {
      source: "review-sample",
      resolution: "492x838",
      note: "native-review-approved | run=20260709-223441 | sequence=60",
    },
  },
  {
    id: "native-review-gladiator-flat-hp-comma",
    confirmed: true,
    ocr: {
      "artifact-name": "Gladiator's Intoxication",
      "artifact-slot": "Goblet of Eonothem",
      "artifact-main-stat-label": "Dendro DMG Bonus",
      "artifact-main-stat-value": "46.6%",
      "artifact-level": "+20",
      "artifact-substats": "+ HP+1,165\n+ HP+5.8%\n+ CRIT Rate+3.9%\n- Energy Recharge+11.7%",
      "artifact-set-effects": "2-Piece Set: ATK +18%.\n4-Piece Set: If the wielder of this artifact set uses a Sword",
      "artifact-footer": "Equipped: Tighnari",
    },
    expect: {
      name: "Gladiator's Intoxication",
      slot: "Goblet of Eonothem",
      level: 20,
      mainStat: "Dendro DMG Bonus",
      mainValue: "46.6%",
      setName: "Gladiator's Finale",
      equipped: "Tighnari",
      substats: ["HP+1,165", "HP%+5.8%", "CRIT Rate+3.9%", "Energy Recharge+11.7%"],
    },
    meta: {
      source: "review-sample",
      resolution: "492x838",
      note: "native-review-approved | run=20260709-223441 | sequence=76",
    },
  },
];
