export type VersionStatus = 'developing' | 'planned' | 'released' | 'paused' | 'closed'; export const VERSION_STATUS_LABEL: Record = { developing: '进行中', planned: '规划中', released: '已发布', paused: '已暂停', closed: '已关闭', }; export const VERSION_STATUS_DOT: Record = { developing: 'bg-blue-500', planned: 'bg-orange-500', released: 'bg-zinc-300', paused: 'bg-purple-400', closed: 'bg-zinc-400', }; export const VERSION_STATUS_BG: Record = { developing: 'bg-blue-500/10 text-blue-600', planned: 'bg-orange-500/10 text-orange-600', released: 'bg-zinc-100 text-zinc-600', paused: 'bg-purple-100 text-purple-600', closed: 'bg-zinc-100 text-zinc-500', }; export const STAGE_LABEL: Record = { requirement: '调研中', product_design: '产品设计中', ui_design: 'UI设计中', dev: '开发中', integration: '联调中', testing: '测试中', released: '已发布', }; export function getVersionDisplayStatus(status: VersionStatus, currentStage?: string): string { if (status === 'developing' && currentStage && STAGE_LABEL[currentStage]) { return STAGE_LABEL[currentStage]; } return VERSION_STATUS_LABEL[status]; }