/**
 * 数据看板 — 演示数据集
 * 接入真实接口：在父组件请求后端后，将结果映射为下列结构并传入 InsightDashboard 的 live prop（预留）。
 */
export function buildInsightMockData() {
  const days = ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
  return {
    kpi: {
      detectionWeek: 186,
      detectionDelta: 12.4,
      mediaAssets: 428,
      modelVersions: 14,
      taskSuccessRate: 94.2,
    },
    trendLine: {
      categories: days,
      series: [42, 38, 55, 61, 48, 33, 29],
    },
    barMedia: {
      categories: ['图像', '视频', '待处理', '归档'],
      values: [220, 86, 34, 88],
    },
    pieDefect: {
      names: ['裂缝', '锈蚀', '剥落', '涂层缺陷', '其他'],
      values: [38, 26, 18, 12, 6],
    },
    areaCompletion: {
      months: ['1月', '2月', '3月', '4月', '5月', '6月'],
      completed: [62, 71, 68, 84, 79, 91],
      pending: [18, 14, 22, 12, 16, 9],
    },
  }
}
