import { RequirementStatus } from '@ftb/shared';

export const REQUIREMENT_STATUS_LABEL: Record<RequirementStatus, string> = {
  [RequirementStatus.PENDING_REVIEW]: '待评审',
  [RequirementStatus.ADOPTED]: '已采纳',
  [RequirementStatus.REJECTED]: '已拒绝',
  [RequirementStatus.PLANNED]: '已规划',
  [RequirementStatus.DEVELOPING]: '开发中',
  [RequirementStatus.TESTING]: '测试中',
  [RequirementStatus.RELEASED]: '已上线',
  [RequirementStatus.CLOSED]: '已关闭',
};

export const REQUIREMENT_STATUS_COLOR: Record<RequirementStatus, string> = {
  [RequirementStatus.PENDING_REVIEW]: 'bg-zinc-100 text-zinc-700',
  [RequirementStatus.ADOPTED]: 'bg-emerald-50 text-emerald-700',
  [RequirementStatus.REJECTED]: 'bg-red-100 text-red-700',
  [RequirementStatus.PLANNED]: 'bg-blue-50 text-blue-700',
  [RequirementStatus.DEVELOPING]: 'bg-indigo-50 text-indigo-700',
  [RequirementStatus.TESTING]: 'bg-purple-50 text-purple-700',
  [RequirementStatus.RELEASED]: 'bg-emerald-50 text-emerald-700',
  [RequirementStatus.CLOSED]: 'bg-zinc-50 text-zinc-500',
};

export const PRIORITY_LABEL: Record<number, string> = {
  0: '无',
  1: '低',
  2: '中',
  3: '高',
  4: '紧急',
};
