import type { EvaluatorProfile, StoredEntry } from "./types";

export const demoEntries: StoredEntry[] = [
  {
    id: "demo-arbeidspuls-001",
    created_at: "2026-05-20T06:15:00.000Z",
    report_date: "2026-05-20",
    report_time: "08:15:00",
    type: "work_report",
    workplace: "Hjemmekontor",
    work_start_time: "08:00",
    work_end_time: "10:00",
    work_ability: 4,
    energy_level: 4,
    mental_clarity: 4,
    symptom_burden: 2,
    effort_strain: 2,
    status: "kan_fortsette",
    physical_energy: 4,
    mental_energy: 4,
    perceived_productivity: 4,
    task_completion: "som_forventet",
    task_types: ["sitting", "computer_work", "concentration"],
    main_limitations: [],
    helpful_accommodations: ["reduced_pace"],
    note: "Testdata: rolig arbeidsøkt med god funksjon.",
    total_score_percent: 78,
    demo: true,
    integrity: {
      report_id: "demo-arbeidspuls-001",
      canonicalization: "stable-json-v2",
      algorithm: "sha256",
      payload_hash_sha256: "c8dec91321626eaa8be100c2d6e8e0fc2b30eef5bfd6dda55a27e150dad186c7",
      signed_at: "2026-05-20T06:15:00.000Z",
      verification_status: "valid"
    }
  },
  {
    id: "demo-arbeidspuls-002",
    created_at: "2026-05-21T09:40:00.000Z",
    report_date: "2026-05-21",
    report_time: "11:40:00",
    type: "work_report",
    workplace: "Kontor",
    work_start_time: "09:00",
    work_end_time: "12:00",
    work_ability: 3,
    energy_level: 3,
    mental_clarity: 3,
    symptom_burden: 3,
    effort_strain: 4,
    status: "trenger_pause",
    physical_energy: 3,
    mental_energy: 3,
    perceived_productivity: 3,
    task_completion: "delvis",
    task_types: ["sitting", "talking_social", "noise", "time_pressure"],
    main_limitations: ["fatigue", "sensory_overload"],
    helpful_accommodations: ["extra_breaks", "quiet_room"],
    note: "Testdata: tydelig behov for pauser og roligere miljø.",
    total_score_percent: 51,
    demo: true,
    integrity: {
      report_id: "demo-arbeidspuls-002",
      canonicalization: "stable-json-v2",
      algorithm: "sha256",
      payload_hash_sha256: "0e6c518e835f401ee925f5b4f2db1892493a033321bd587ebecb96cf990fcea7",
      signed_at: "2026-05-21T09:40:00.000Z",
      verification_status: "valid"
    }
  },
  {
    id: "demo-arbeidspuls-003",
    created_at: "2026-05-24T12:05:00.000Z",
    report_date: "2026-05-24",
    report_time: "14:05:00",
    type: "work_report",
    workplace: "Butikk/verksted",
    work_start_time: "11:00",
    work_end_time: "14:00",
    work_ability: 2,
    energy_level: 2,
    mental_clarity: 2,
    symptom_burden: 4,
    effort_strain: 4,
    status: "trenger_enklere_oppgave",
    physical_energy: 2,
    mental_energy: 2,
    perceived_productivity: 2,
    task_completion: "litt",
    task_types: ["standing", "walking", "talking_social", "bright_light"],
    main_limitations: ["fatigue", "pain", "brain_fog"],
    helpful_accommodations: ["sitting_down", "shorter_task"],
    note: "Testdata: lavere funksjon med tydelig symptomøkning.",
    total_score_percent: 31,
    demo: true,
    integrity: {
      report_id: "demo-arbeidspuls-003",
      canonicalization: "stable-json-v2",
      algorithm: "sha256",
      payload_hash_sha256: "cde1f65dc4607e61a6bb9ad2e157a07ffda33ca89a756f1b8915ba4a97bd36da",
      signed_at: "2026-05-24T12:05:00.000Z",
      verification_status: "valid"
    }
  },
  {
    id: "demo-arbeidspuls-004",
    created_at: "2026-05-27T07:30:00.000Z",
    report_date: "2026-05-27",
    report_time: "09:30:00",
    type: "work_report",
    workplace: "Hjemmekontor",
    work_start_time: "08:30",
    work_end_time: "09:30",
    work_ability: 5,
    energy_level: 4,
    mental_clarity: 5,
    symptom_burden: 1,
    effort_strain: 1,
    status: "kan_fortsette",
    physical_energy: 4,
    mental_energy: 5,
    perceived_productivity: 5,
    task_completion: "mer_enn_forventet",
    task_types: ["sitting", "computer_work", "concentration"],
    main_limitations: [],
    helpful_accommodations: ["reduced_pace"],
    note: "Testdata: kort og svært god økt.",
    total_score_percent: 98,
    demo: true,
    integrity: {
      report_id: "demo-arbeidspuls-004",
      canonicalization: "stable-json-v2",
      algorithm: "sha256",
      payload_hash_sha256: "5fd70378270c9ab2760c21e285b5ff8661c3b1ae034d12ae7073f93962b667bb",
      signed_at: "2026-05-27T07:30:00.000Z",
      verification_status: "valid"
    }
  },
  {
    id: "demo-arbeidspuls-followup-002",
    created_at: "2026-05-22T08:00:00.000Z",
    report_date: "2026-05-22",
    report_time: "10:00:00",
    type: "delayed_followup",
    parent_report_id: "demo-arbeidspuls-002",
    related_report_id: "demo-arbeidspuls-002",
    worse_than_before: "moderat",
    delayed_symptoms: ["fatigue", "brain_fog", "sensory_sensitivity"],
    recovery_status: "to_tre_dager",
    note: "Testdata: forsinket forverring etter kontorøkt.",
    demo: true,
    integrity: {
      report_id: "demo-arbeidspuls-followup-002",
      canonicalization: "stable-json-v2",
      algorithm: "sha256",
      payload_hash_sha256: "9ddb85b0a00f638748099092fd798ef0c49de24358a570e911d9225f444aa56b",
      signed_at: "2026-05-22T08:00:00.000Z",
      verification_status: "valid"
    }
  },
  {
    id: "demo-arbeidspuls-followup-003",
    created_at: "2026-05-25T09:10:00.000Z",
    report_date: "2026-05-25",
    report_time: "11:10:00",
    type: "delayed_followup",
    parent_report_id: "demo-arbeidspuls-003",
    related_report_id: "demo-arbeidspuls-003",
    worse_than_before: "mye",
    delayed_symptoms: ["fatigue", "pain", "headache", "sleep_disruption"],
    recovery_status: "fire_pluss_dager",
    note: "Testdata: kraftig forsinket reaksjon etter fysisk/sosial arbeidsøkt.",
    demo: true,
    integrity: {
      report_id: "demo-arbeidspuls-followup-003",
      canonicalization: "stable-json-v2",
      algorithm: "sha256",
      payload_hash_sha256: "021422fac293255f00dd41f0583e8055a7ef552c1db2cd20c8c9163cf9817fc8",
      signed_at: "2026-05-25T09:10:00.000Z",
      verification_status: "valid"
    }
  }
];

const sharedDemoProfiles = {
  created_at: "2026-05-28T08:00:00.000Z",
  updated_at: "2026-05-28T08:00:00.000Z",
  contains_demo_data: true,
  evaluator_notes: []
};

export const demoEvaluatorProfiles: EvaluatorProfile[] = [
  {
    ...sharedDemoProfiles,
    id: "demo-advisor-profile-01",
    display_name: "Demo: Nora Hjemmekontor",
    source_fingerprint: "demo-nora",
    reports: demoEntries
  },
  {
    ...sharedDemoProfiles,
    id: "demo-advisor-profile-02",
    display_name: "Demo: Amir Kontor",
    source_fingerprint: "demo-amir",
    reports: [
      {
        id: "demo-arbeidspuls-amir-001",
        created_at: "2026-05-18T07:20:00.000Z",
        report_date: "2026-05-18",
        report_time: "09:20:00",
        type: "work_report",
        workplace: "Kontor",
        work_start_time: "08:30",
        work_end_time: "11:30",
        work_ability: 3,
        energy_level: 3,
        mental_clarity: 4,
        symptom_burden: 2,
        effort_strain: 3,
        status: "kan_fortsette",
        physical_energy: 3,
        mental_energy: 4,
        perceived_productivity: 3,
        task_completion: "delvis",
        task_types: ["sitting", "computer_work", "time_pressure"],
        main_limitations: ["fatigue"],
        helpful_accommodations: ["extra_breaks"],
        note: "Testdata: moderat dag med noen pauser.",
        total_score_percent: 68,
        demo: true
      },
      {
        id: "demo-arbeidspuls-amir-002",
        created_at: "2026-05-23T10:45:00.000Z",
        report_date: "2026-05-23",
        report_time: "12:45:00",
        type: "work_report",
        workplace: "Kontor",
        work_start_time: "10:00",
        work_end_time: "12:30",
        work_ability: 2,
        energy_level: 2,
        mental_clarity: 2,
        symptom_burden: 4,
        effort_strain: 5,
        status: "trenger_pause",
        physical_energy: 2,
        mental_energy: 2,
        perceived_productivity: 2,
        task_completion: "litt",
        task_types: ["sitting", "talking_social", "noise"],
        main_limitations: ["fatigue", "sensory_overload", "brain_fog"],
        helpful_accommodations: ["quiet_room", "shorter_task"],
        note: "Testdata: støy og sosial belastning ga tydelig fall.",
        total_score_percent: 24,
        demo: true
      },
      {
        id: "demo-arbeidspuls-amir-followup-002",
        created_at: "2026-05-24T08:30:00.000Z",
        report_date: "2026-05-24",
        report_time: "10:30:00",
        type: "delayed_followup",
        parent_report_id: "demo-arbeidspuls-amir-002",
        related_report_id: "demo-arbeidspuls-amir-002",
        worse_than_before: "moderat",
        delayed_symptoms: ["fatigue", "brain_fog", "headache"],
        recovery_status: "to_tre_dager",
        note: "Testdata: oppfølging etter krevende kontordag.",
        demo: true
      }
    ]
  },
  {
    ...sharedDemoProfiles,
    id: "demo-advisor-profile-03",
    display_name: "Demo: Liv Butikk",
    source_fingerprint: "demo-liv",
    reports: [
      {
        id: "demo-arbeidspuls-liv-001",
        created_at: "2026-05-19T12:15:00.000Z",
        report_date: "2026-05-19",
        report_time: "14:15:00",
        type: "work_report",
        workplace: "Butikk",
        work_start_time: "12:00",
        work_end_time: "14:00",
        work_ability: 3,
        energy_level: 3,
        mental_clarity: 3,
        symptom_burden: 3,
        effort_strain: 3,
        status: "trenger_enklere_oppgave",
        physical_energy: 3,
        mental_energy: 3,
        perceived_productivity: 3,
        task_completion: "delvis",
        task_types: ["standing", "walking", "talking_social"],
        main_limitations: ["pain", "fatigue"],
        helpful_accommodations: ["sitting_down", "help_from_others"],
        note: "Testdata: fysisk aktivitet krevde tilrettelegging.",
        total_score_percent: 50,
        demo: true
      },
      {
        id: "demo-arbeidspuls-liv-002",
        created_at: "2026-05-26T07:50:00.000Z",
        report_date: "2026-05-26",
        report_time: "09:50:00",
        type: "work_report",
        workplace: "Butikk",
        work_start_time: "09:00",
        work_end_time: "09:45",
        work_ability: 4,
        energy_level: 4,
        mental_clarity: 4,
        symptom_burden: 2,
        effort_strain: 2,
        status: "kan_fortsette",
        physical_energy: 4,
        mental_energy: 4,
        perceived_productivity: 4,
        task_completion: "som_forventet",
        task_types: ["standing", "walking"],
        main_limitations: [],
        helpful_accommodations: ["shorter_task", "sitting_down"],
        note: "Testdata: kortere oppgave fungerte bedre.",
        total_score_percent: 78,
        demo: true
      }
    ]
  }
];
