diff --git a/vibn-frontend/app/api/projects/[projectId]/anatomy/route.ts b/vibn-frontend/app/api/projects/[projectId]/anatomy/route.ts index a1117a5..a60d286 100644 --- a/vibn-frontend/app/api/projects/[projectId]/anatomy/route.ts +++ b/vibn-frontend/app/api/projects/[projectId]/anatomy/route.ts @@ -70,6 +70,7 @@ interface ProductImage { } interface BuildSummary { + uuid: string; status: string; createdAt?: string; finishedAt?: string; @@ -466,6 +467,7 @@ async function lastBuildFor(uuid: string): Promise { if (!deployments.length) return undefined; const finished = deployments.find((d) => d.finished_at) ?? deployments[0]; return { + uuid: finished.deployment_uuid, status: finished.status, finishedAt: finished.finished_at, commit: finished.commit, @@ -499,6 +501,7 @@ async function deploymentActivityFor(uuid: string): Promise<{ return { lastBuild: finishedDep ? { + uuid: finishedDep.deployment_uuid, status: finishedDep.status, createdAt: finishedDep.created_at, finishedAt: finishedDep.finished_at, @@ -507,6 +510,7 @@ async function deploymentActivityFor(uuid: string): Promise<{ : undefined, inFlight: inFlightDep ? { + uuid: inFlightDep.deployment_uuid, status: inFlightDep.status, createdAt: inFlightDep.created_at, finishedAt: inFlightDep.finished_at, diff --git a/vibn-frontend/components/project/use-anatomy.ts b/vibn-frontend/components/project/use-anatomy.ts index 5b208a4..ee12f15 100644 --- a/vibn-frontend/components/project/use-anatomy.ts +++ b/vibn-frontend/components/project/use-anatomy.ts @@ -49,12 +49,14 @@ export interface Anatomy { branch?: string; buildPack?: string; lastBuild?: { + uuid: string; status: string; createdAt?: string; finishedAt?: string; commit?: string; }; inFlightBuild?: { + uuid: string; status: string; createdAt?: string; finishedAt?: string;