/**
 * Mock 视口数据（iam 4 层视口模型，contract.md §2.4）
 *
 * 维护者：ai13（teacher-portal）
 */

import type { ViewportItem } from "@/lib/graphql";

export const mockViewports: ViewportItem[] = [
  {
    key: "dashboard",
    label: "仪表盘",
    route: "/dashboard",
    icon: null,
    sortOrder: "01",
    requiredPermission: "DASHBOARD_READ",
  },
  {
    key: "classes",
    label: "班级管理",
    route: "/classes",
    icon: null,
    sortOrder: "02",
    requiredPermission: "CLASS_READ",
  },
  {
    key: "exams",
    label: "考试管理",
    route: "/exams",
    icon: null,
    sortOrder: "03",
    requiredPermission: "EXAM_READ_OWN",
  },
  {
    key: "homework",
    label: "作业管理",
    route: "/homework",
    icon: null,
    sortOrder: "04",
    requiredPermission: "HOMEWORK_READ_OWN",
  },
  {
    key: "grades",
    label: "成绩查询",
    route: "/grades",
    icon: null,
    sortOrder: "05",
    requiredPermission: "GRADE_READ_OWN",
  },
  {
    key: "analytics",
    label: "学情分析",
    route: "/analytics",
    icon: null,
    sortOrder: "06",
    requiredPermission: "ANALYTICS_READ",
  },
  {
    key: "knowledge-graph",
    label: "知识图谱",
    route: "/knowledge-graph",
    icon: null,
    sortOrder: "07",
    requiredPermission: "CONTENT_READ",
  },
  {
    key: "notifications",
    label: "通知中心",
    route: "/notifications",
    icon: null,
    sortOrder: "08",
    requiredPermission: "MSG_READ",
  },
  {
    key: "ai-assist",
    label: "AI 辅助",
    route: "/ai-assist",
    icon: null,
    sortOrder: "09",
    requiredPermission: "AI_GENERATE",
  },
  {
    key: "ai-lesson-plan",
    label: "AI 教案",
    route: "/ai-lesson-plan",
    icon: null,
    sortOrder: "10",
    requiredPermission: "AI_GENERATE",
  },
  {
    key: "ai-report",
    label: "AI 学情报告",
    route: "/ai-report",
    icon: null,
    sortOrder: "11",
    requiredPermission: "AI_GENERATE",
  },
  {
    key: "attendance",
    label: "考勤管理",
    route: "/attendance",
    icon: null,
    sortOrder: "12",
    requiredPermission: "ATTENDANCE_READ_OWN",
  },
  {
    key: "questions",
    label: "题库",
    route: "/questions",
    icon: null,
    sortOrder: "13",
    requiredPermission: "QUESTION_READ",
  },
  {
    key: "textbooks",
    label: "教材",
    route: "/textbooks",
    icon: null,
    sortOrder: "14",
    requiredPermission: "TEXTBOOK_READ",
  },
  {
    key: "lesson-plans",
    label: "备课",
    route: "/lesson-plans",
    icon: null,
    sortOrder: "15",
    requiredPermission: "LESSON_PLAN_READ_OWN",
  },
  {
    key: "course-plans",
    label: "课程计划",
    route: "/course-plans",
    icon: null,
    sortOrder: "16",
    requiredPermission: "COURSE_PLAN_READ_OWN",
  },
  {
    key: "diagnostic",
    label: "诊断报告",
    route: "/diagnostic",
    icon: null,
    sortOrder: "17",
    requiredPermission: "DIAGNOSTIC_READ_OWN",
  },
  {
    key: "error-book",
    label: "错题本",
    route: "/error-book",
    icon: null,
    sortOrder: "18",
    requiredPermission: "ERROR_BOOK_READ_OWN",
  },
  {
    key: "practice",
    label: "练习分析",
    route: "/practice",
    icon: null,
    sortOrder: "19",
    requiredPermission: "PRACTICE_READ_OWN",
  },
  {
    key: "elective",
    label: "选修课",
    route: "/elective",
    icon: null,
    sortOrder: "20",
    requiredPermission: "ELECTIVE_READ_OWN",
  },
  {
    key: "leave",
    label: "请假审批",
    route: "/leave",
    icon: null,
    sortOrder: "21",
    requiredPermission: "LEAVE_REQUEST_READ_OWN",
  },
  {
    key: "schedule-changes",
    label: "调课申请",
    route: "/schedule-changes",
    icon: null,
    sortOrder: "22",
    requiredPermission: "SCHEDULE_CHANGE_READ_OWN",
  },
  {
    key: "settings",
    label: "个人设置",
    route: "/settings",
    icon: null,
    sortOrder: "99",
    requiredPermission: "USER_READ_OWN",
  },
];
