// [DEF:reports.fixtures:Module]
// @TIER: STANDARD
// @SEMANTICS: reports, fixtures, test-data
// @PURPOSE: Shared frontend fixtures for unified reports states.
// @LAYER: UI

export const mixedTaskReports = [
  {
    report_id: "rep-001",
    task_id: "task-001",
    task_type: "llm_verification",
    status: "success",
    started_at: "2026-02-22T09:00:00Z",
    updated_at: "2026-02-22T09:00:30Z",
    summary: "LLM verification completed",
    details: { checks_performed: 12, issues_found: 1 }
  },
  {
    report_id: "rep-002",
    task_id: "task-002",
    task_type: "backup",
    status: "failed",
    started_at: "2026-02-22T09:10:00Z",
    updated_at: "2026-02-22T09:11:00Z",
    summary: "Backup failed due to storage limit",
    error_context: { message: "Not enough disk space", next_actions: ["Free storage", "Retry backup"] }
  },
  {
    report_id: "rep-003",
    task_id: "task-003",
    task_type: "migration",
    status: "in_progress",
    started_at: "2026-02-22T09:20:00Z",
    updated_at: "2026-02-22T09:21:00Z",
    summary: "Migration running",
    details: { progress_percent: 42 }
  },
  {
    report_id: "rep-004",
    task_id: "task-004",
    task_type: "documentation",
    status: "partial",
    started_at: "2026-02-22T09:30:00Z",
    updated_at: "2026-02-22T09:31:00Z",
    summary: "Documentation generated with partial coverage",
    error_context: { message: "Missing metadata for 3 columns", next_actions: ["Review missing metadata"] }
  }
];

export const unknownTypePartialPayload = [
  {
    report_id: "rep-unknown-001",
    task_id: "task-unknown-001",
    task_type: "unknown",
    status: "failed",
    updated_at: "2026-02-22T10:00:00Z",
    summary: "Unknown task type failed",
    details: null
  },
  {
    report_id: "rep-partial-001",
    task_id: "task-partial-001",
    task_type: "backup",
    status: "success",
    updated_at: "2026-02-22T10:05:00Z",
    summary: "Backup completed",
    details: {}
  }
];

export const reportCollections = {
  ready: {
    items: mixedTaskReports,
    total: mixedTaskReports.length,
    page: 1,
    page_size: 20,
    has_next: false,
    applied_filters: { page: 1, page_size: 20, sort_by: "updated_at", sort_order: "desc" }
  },
  empty: {
    items: [],
    total: 0,
    page: 1,
    page_size: 20,
    has_next: false,
    applied_filters: { page: 1, page_size: 20, sort_by: "updated_at", sort_order: "desc" }
  }
};

// [/DEF:reports.fixtures:Module]