feat(版本): 优化概览与只读状态

关键改动:

- 增加需求排序和版本只读状态规则及测试

- 完善版本概览阶段耗时、项目页和工作台展示

- 优化小宝预警请求节流、建议状态和风险过滤

Co-Authored-By: Codex GPT-5 <codex@openai.com>
This commit is contained in:
Script Generator
2026-06-30 18:18:18 +08:00
parent 3d3d56697a
commit eef3c8f000
32 changed files with 1072 additions and 289 deletions

View File

@@ -23,7 +23,7 @@ export interface VersionLinks {
interface ProductOverviewLike {
id: string;
name: string;
projects: { id: string; name: string; description: string; createdAt: string }[];
projects: { id: string; name: string; description: string; createdAt: string; status?: string }[];
versions: {
id: string; name: string; status?: string; releaseDate: string | null; createdAt: string;
currentStage?: Stage; startDate?: string | null; expectedReleaseDate?: string | null;
@@ -37,6 +37,7 @@ export interface ProjectWithContext {
name: string;
description: string;
createdAt: string;
status?: string;
productId: string;
productName: string;
versions: VersionWithContext[];
@@ -52,6 +53,7 @@ export interface VersionWithContext {
productName: string;
projectId: string;
projectName: string;
projectStatus?: string;
currentStage?: Stage;
startDate?: string | null;
expectedReleaseDate?: string | null;
@@ -74,6 +76,7 @@ export function flattenProjects(overview: ProductOverviewLike[]): ProjectWithCon
productName: product.name,
projectId: project.id,
projectName: project.name,
projectStatus: project.status,
}));
result.push({
...project,
@@ -99,6 +102,7 @@ export function flattenVersions(overview: ProductOverviewLike[]): VersionWithCon
productId: product.id,
productName: product.name,
projectId: project?.id || '',
projectStatus: project?.status,
projectName: project?.name || '未关联',
});
}