refactor: 去掉"联调"阶段,新增"BUG"阶段胶囊

- Stage 类型去掉 integration,新增 bug
- 胶囊条:调研 → 产品设计 → UI设计 → 开发 → 测试 → BUG → 上线
- BUG 阶段进度 = 已关闭Bug / 总Bug
- 全部关闭 = done(绿色),有Bug未关闭 = active(蓝色)
- 版本列表/项目详情的阶段筛选同步去掉联调

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Script Generator
2026-06-15 10:18:17 +08:00
parent c7f49ad51c
commit 342fff7f06
6 changed files with 216 additions and 24 deletions

View File

@@ -17,8 +17,8 @@ const STAGE_ROLE_MAP: Record<string, Role[]> = {
product_design: ['product'],
ui_design: ['ui'],
dev: ['frontend', 'backend'],
integration: ['frontend', 'backend'],
testing: ['testing'],
bug: [],
released: [],
};

View File

@@ -1,4 +1,4 @@
export type Stage = 'requirement' | 'product_design' | 'ui_design' | 'dev' | 'integration' | 'testing' | 'released';
export type Stage = 'requirement' | 'product_design' | 'ui_design' | 'dev' | 'testing' | 'bug' | 'released';
export type Role = 'product' | 'ui' | 'frontend' | 'backend' | 'testing';
@@ -7,8 +7,8 @@ export const STAGES: { key: Stage; label: string }[] = [
{ key: 'product_design', label: '产品设计' },
{ key: 'ui_design', label: 'UI 设计' },
{ key: 'dev', label: '开发' },
{ key: 'integration', label: '联调' },
{ key: 'testing', label: '测试' },
{ key: 'bug', label: 'BUG' },
{ key: 'released', label: '上线' },
];

View File

@@ -29,15 +29,12 @@ export const STAGE_LABEL: Record<string, string> = {
product_design: '产品设计中',
ui_design: 'UI设计中',
dev: '开发中',
integration: '联调中',
testing: '测试中',
bug: 'BUG跟进中',
released: '已发布',
};
export function getVersionDisplayStatus(status: VersionStatus, currentStage?: string): string {
if (status === 'developing' && currentStage && STAGE_LABEL[currentStage]) {
return STAGE_LABEL[currentStage];
}
export function getVersionDisplayStatus(status: VersionStatus, _currentStage?: string): string {
return VERSION_STATUS_LABEL[status];
}