| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562 |
- import { CheckCircle2 } from "lucide-react";
- // Tailwind Safelist for dynamically constructed classes:
- // bg-chart-1 bg-chart-2 bg-chart-3 bg-chart-4 bg-chart-5 bg-tertiary bg-primary
- // text-chart-1 text-chart-2 text-chart-3 text-chart-4 text-chart-5 text-tertiary text-primary
- export type MetricValue = {
- name: string;
- score?: string;
- coverage?: string;
- accuracy?: string;
- };
- export type SubMetric = {
- id: string;
- name: string;
- values: MetricValue[];
- };
- export type MetricCategoryData = {
- id: string;
- name: string;
- description: string;
- colorClass: string;
- bgClass: string;
- textClass: string;
- avgScore: string;
- subMetrics: SubMetric[];
- };
- export const metricsData: Record<string, MetricCategoryData[]> = {
- K: [
- {
- id: "K1",
- name: "软件工程核心概念掌握能力",
- description: "软件工程核心概念能力",
- colorClass: "chart-3",
- bgClass: "bg-primary-container text-on-primary-container",
- textClass: "text-primary",
- avgScore: "85%",
- subMetrics: [
- {
- id: "K1-1",
- name: "软件工程概念理解能力",
- values: [
- { name: "概念答题正确率" },
- { name: "核心知识点覆盖率" },
- ],
- },
- {
- id: "K1-2",
- name: "核心概念考试得分能力",
- values: [{ name: "核心知识点测验得分" }],
- },
- ],
- },
- {
- id: "K2",
- name: "软件工程规范与原理的掌握能力",
- description: "软件工程系统规范与原理的掌握能力",
- colorClass: "tertiary",
- bgClass: "bg-tertiary-container text-on-tertiary-container",
- textClass: "text-tertiary",
- avgScore: "78%",
- subMetrics: [
- {
- id: "K2-1",
- name: "软件工程原理理解题能力",
- values: [
- { name: "原理类题目答题正确率" },
- { name: "原理知识点测验得分" },
- { name: "原理知识点覆盖率" },
- ],
- },
- {
- id: "K2-2",
- name: "软件工程规范条款熟悉能力",
- values: [
- { name: "规范类题目答题正确率" },
- { name: "规范条款测验得分" },
- { name: "规范知识点覆盖率" },
- ],
- },
- ],
- },
- {
- id: "K3",
- name: "前沿技术认知能力",
- description: "前沿技术认知与掌握",
- colorClass: "chart-1",
- bgClass: "bg-secondary-container text-on-secondary-container",
- textClass: "text-chart-1",
- avgScore: "82%",
- subMetrics: [
- {
- id: "K3-1",
- name: "前沿技术解题能力",
- values: [
- { name: "前沿技术知识点测验得分" },
- { name: "前沿技术答题认知正确率" },
- ],
- },
- {
- id: "K3-2",
- name: "技术发展趋势认知能力",
- values: [
- { name: "前沿技术知识点覆盖数" },
- ],
- },
- ],
- },
- ],
- A: [
- {
- id: "A1",
- name: "提示词写作能力",
- description: "结构与细节控制能力",
- colorClass: "chart-4",
- bgClass: "bg-chart-5-container text-chart-5",
- textClass: "text-chart-4",
- avgScore: "89%",
- subMetrics: [
- {
- id: "A1-1",
- name: "提示词结构性写作能力",
- values: [{ name: "有效提示词占比" }],
- },
- {
- id: "A1-2",
- name: "工程语义准确性表达 + B6",
- values: [{ name: "单轮目标达成率" }],
- },
- {
- id: "A1-3",
- name: "迭代意识能力",
- values: [{ name: "提示词优化迭代次数" }],
- },
- {
- id: "A1-4",
- name: "边界设定能力",
- values: [{ name: "提示词边界约束符合率" }],
- },
- ],
- },
- {
- id: "A2",
- name: "AI 输出驾驭能力",
- description: "结果召回能力",
- colorClass: "chart-3",
- bgClass: "bg-primary-container text-on-primary-container",
- textClass: "text-primary",
- avgScore: "84%",
- subMetrics: [
- {
- id: "A2-1",
- name: "缺陷识别能力",
- values: [{ name: "AI 输出缺陷识别率" }],
- },
- {
- id: "A2-2",
- name: "误报精准能力",
- values: [{ name: "缺陷误报精准率" }],
- },
- ],
- },
- {
- id: "A3",
- name: "人机协同工作流规范能力",
- description: "人机交互与编排能力",
- colorClass: "tertiary",
- bgClass: "bg-tertiary-container text-on-tertiary-container",
- textClass: "text-tertiary",
- avgScore: "92%",
- subMetrics: [
- {
- id: "A3-1",
- name: "人机协同流程安排能力",
- values: [{ name: "流程节点合规率" }],
- },
- {
- id: "A3-2",
- name: "人机任务分工能力",
- values: [{ name: "人机协同提升的工作效率" }],
- },
- {
- id: "A3-3",
- name: "协同过程留痕能力",
- values: [{ name: "规范流程执行次数" }],
- },
- ],
- },
- {
- id: "A4",
- name: "批判审查 AI 输出能力",
- description: "验证及纠错分析能力",
- colorClass: "chart-1",
- bgClass: "bg-secondary-container text-on-secondary-container",
- textClass: "text-chart-1",
- avgScore: "76%",
- subMetrics: [
- {
- id: "A4-1",
- name: "AI 输出逻辑漏洞检出能力",
- values: [{ name: "AI 输出问题识别率" }],
- },
- {
- id: "A4-2",
- name: "AI 生成代码漏洞排查能力",
- values: [{ name: "AI 生成代码审查命中率" }],
- },
- {
- id: "A4-3",
- name: "输出内容合规性检查能力",
- values: [{ name: "AI 输出风险点排查数量" }],
- },
- ],
- },
- {
- id: "A5",
- name: "冲突识别能力",
- description: "解决 AI 回复冲突的能力",
- colorClass: "chart-5",
- bgClass: "bg-chart-5-container text-chart-5",
- textClass: "text-chart-5",
- avgScore: "81%",
- subMetrics: [
- {
- id: "A5-1",
- name: "AI 输出与需求目标冲突识别能力",
- values: [{ name: "需求与实现冲突识别率" }],
- },
- {
- id: "A5-2",
- name: "多轮 AI 输出内容矛盾冲突识别能力",
- values: [{ name: "多源 / 多轮输出冲突识别数" }],
- },
- {
- id: "A5-3",
- name: "AI 输出与行业规范冲突识别能力",
- values: [{ name: "规范冲突点识别率" }],
- },
- ],
- },
- {
- id: "A6",
- name: "权衡决策能力",
- description: "多方面决策及评估",
- colorClass: "chart-4",
- bgClass: "bg-primary-container text-on-primary-container",
- textClass: "text-primary",
- avgScore: "95%",
- subMetrics: [
- {
- id: "A6-1",
- name: "AI 多方案选优能力",
- values: [{ name: "多方案决策次数" }],
- },
- {
- id: "A6-2",
- name: "人机分工权衡能力",
- values: [{ name: "决策次数占总生成次数的比例" }],
- },
- ],
- },
- {
- id: "A7",
- name: "伦理把关能力",
- description: "数据安全与隐私控制",
- colorClass: "tertiary",
- bgClass: "bg-tertiary-container text-on-tertiary-container",
- textClass: "text-tertiary",
- avgScore: "88%",
- subMetrics: [
- {
- id: "A7-1",
- name: "知识产权合规风险把关能力",
- values: [{ name: "知识产权合规风险识别率" }, { name: "知识产权风险规避处理次数" }],
- },
- {
- id: "A7-2",
- name: "数据安全风险把关能力",
- values: [{ name: "数据安全合规风险识别率" }, { name: "数据安全风险规避处理次数" }],
- },
- {
- id: "A7-3",
- name: "行业伦理规范契合度把关能力",
- values: [{ name: "行业伦理规范遵循率" }],
- },
- ],
- },
- ],
- S: [
- {
- id: "S1",
- name: "软件工程文档编写能力",
- description: "软件工程文档编写能力",
- colorClass: "chart-3",
- bgClass: "bg-primary-container text-on-primary-container",
- textClass: "text-primary",
- avgScore: "86%",
- subMetrics: [
- {
- id: "S1-1",
- name: "文档核心模块写作能力",
- values: [{ name: "文档完整度评分" }],
- },
- {
- id: "S1-2",
- name: "文档与项目需求匹配能力",
- values: [{ name: "文档需求匹配符合率" }],
- },
- {
- id: "S1-3",
- name: "文档可读性能力",
- values: [{ name: "文档可读性标准化评分" }, { name: "文档规范符合率" }],
- },
- ],
- },
- {
- id: "S2",
- name: "项目需求分析能力",
- description: "业务需求抽取与分析",
- colorClass: "tertiary",
- bgClass: "bg-tertiary-container text-on-tertiary-container",
- textClass: "text-tertiary",
- avgScore: "82%",
- subMetrics: [
- {
- id: "S2-1",
- name: "需求调研能力",
- values: [{ name: "需求调研次数" }],
- },
- {
- id: "S2-2",
- name: "需求分层拆解能力",
- values: [{ name: "需求拆解完整评分" }],
- },
- {
- id: "S2-3",
- name: "需求可行性分析能力",
- values: [{ name: "需求可行性评分" }],
- },
- {
- id: "S2-4",
- name: "需求变更管控能力",
- values: [{ name: "需求变更处理次数" }],
- },
- ],
- },
- {
- id: "S3",
- name: "代码产出能力",
- description: "代码输出及功能实现",
- colorClass: "chart-1",
- bgClass: "bg-secondary-container text-on-secondary-container",
- textClass: "text-chart-1",
- avgScore: "85%",
- subMetrics: [
- {
- id: "S3-1",
- name: "单位时间有效代码产出能力",
- values: [{ name: "有效代码行数" }, { name: "代码每日产出效率" }],
- },
- {
- id: "S3-2",
- name: "业务逻辑实现匹配能力",
- values: [{ name: "业务逻辑实现匹配率" }],
- },
- ],
- },
- {
- id: "S4",
- name: "工具使用能力",
- description: "开发工具熟练度",
- colorClass: "chart-4",
- bgClass: "bg-chart-5-container text-chart-5",
- textClass: "text-chart-4",
- avgScore: "91%",
- subMetrics: [
- {
- id: "S4-1",
- name: "开发核心工具操作能力",
- values: [{ name: "核心工具有效使用次数" }],
- },
- {
- id: "S4-2",
- name: "工具使用种类与广度能力",
- values: [{ name: "工具使用种类数" }],
- },
- ],
- },
- {
- id: "S5",
- name: "代码质量产出能力",
- description: "代码规范与维护性",
- colorClass: "chart-5",
- bgClass: "bg-primary-container text-on-primary-container",
- textClass: "text-primary",
- avgScore: "88%",
- subMetrics: [
- {
- id: "S5-1",
- name: "编码规范符合能力",
- values: [{ name: "代码规范符合率" }],
- },
- {
- id: "S5-2",
- name: "代码复杂度达标能力",
- values: [{ name: "代码圈复杂度达标率" }, { name: "代码缺陷占比" }],
- },
- {
- id: "S5-3",
- name: "代码可维护性能力",
- values: [{ name: "代码可维护性评分" }],
- },
- {
- id: "S5-4",
- name: "核心注释覆盖能力",
- values: [{ name: "核心代码注释覆盖率" }],
- },
- ],
- },
- {
- id: "S6",
- name: "项目调试能力",
- description: "架构设计与拓展性",
- colorClass: "tertiary",
- bgClass: "bg-tertiary-container text-on-tertiary-container",
- textClass: "text-tertiary",
- avgScore: "79%",
- subMetrics: [
- {
- id: "S6-1",
- name: "Bug 定位能力",
- values: [{ name: "问题定位准确率" }],
- },
- {
- id: "S6-2",
- name: "Bug 修复能力",
- values: [{ name: "缺陷成功修复率" }, { name: "问题解决总数" }],
- },
- {
- id: "S6-3",
- name: "单问题平均调试耗时",
- values: [{ name: "平均缺陷修复时长" }],
- },
- ],
- },
- {
- id: "S7",
- name: "版本管理能力",
- description: "代码版本及配置分支控制",
- colorClass: "chart-1",
- bgClass: "bg-secondary-container text-on-secondary-container",
- textClass: "text-chart-1",
- avgScore: "87%",
- subMetrics: [
- {
- id: "S7-1",
- name: "分支管理规范能力",
- values: [{ name: "分支管理合规次数" }],
- },
- {
- id: "S7-2",
- name: "提交记录规范度能力",
- values: [{ name: "版本规范遵循率" }],
- },
- {
- id: "S7-3",
- name: "协作版本冲突解决能力",
- values: [{ name: "版本冲突解决成功率" }],
- },
- ],
- },
- ],
- D: [
- {
- id: "D1",
- name: "作业答题态度能力",
- description: "提交规范与通过率",
- colorClass: "chart-3",
- bgClass: "bg-primary-container text-on-primary-container",
- textClass: "text-primary",
- avgScore: "94%",
- subMetrics: [
- {
- id: "D1-1",
- name: "作业按时提交率",
- values: [{ name: "作业按时提交率" }, { name: "作业完成率" }],
- },
- {
- id: "D1-2",
- name: "作业得分能力",
- values: [{ name: "答题平均得分" }, { name: "作业修改次数" }],
- },
- ],
- },
- {
- id: "D2",
- name: "时间管理能力",
- description: "任务时间节点把控",
- colorClass: "chart-4",
- bgClass: "bg-chart-5-container text-chart-5",
- textClass: "text-chart-4",
- avgScore: "88%",
- subMetrics: [
- {
- id: "D2-1",
- name: "作业准时提交时间管理能力",
- values: [{ name: "作业准时提交率" }],
- },
- {
- id: "D2-2",
- name: "多任务并行时间管理能力",
- values: [{ name: "任务按时完成率" }, { name: "里程碑达成率" }],
- },
- ],
- },
- {
- id: "D3",
- name: "自主学习能力",
- description: "自我驱动及学习研究",
- colorClass: "tertiary",
- bgClass: "bg-tertiary-container text-on-tertiary-container",
- textClass: "text-tertiary",
- avgScore: "85%",
- subMetrics: [
- {
- id: "D3-1",
- name: "自主练习时长",
- values: [{ name: "自主学习 / 练习时长" }],
- },
- {
- id: "D3-2",
- name: "自主练习情况",
- values: [{ name: "自主练习完成率" }, { name: "学习资料查阅数量" }],
- },
- ],
- },
- {
- id: "D4",
- name: "团队协作能力",
- description: "个人与团队协作关系",
- colorClass: "chart-1",
- bgClass: "bg-secondary-container text-on-secondary-container",
- textClass: "text-chart-1",
- avgScore: "90%",
- subMetrics: [
- {
- id: "D4-1",
- name: "个人分工任务按时完成能力",
- values: [{ name: "协作任务完成率" }],
- },
- {
- id: "D4-2",
- name: "团队内部沟通能力",
- values: [{ name: "团队沟通平均响应耗时" }, { name: "有效协作次数" }, { name: "协作冲突解决次数" }],
- },
- ],
- },
- ],
- };
|