From 5a51a0fd61e6aa7a2d0bae36616a2cdd53977f80 Mon Sep 17 00:00:00 2001 From: Oksana Stryzhak Date: Thu, 19 Mar 2026 14:43:07 +0100 Subject: [PATCH] feat: display last run time for each build in UI Add updatedAt field to Build interface and show "Last run" timestamp in both BuildList and BuildDetails components. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/components/BuildDetails.tsx | 7 +++++++ src/components/BuildList/index.tsx | 7 +++++++ src/types/build.ts | 1 + 3 files changed, 15 insertions(+) diff --git a/src/components/BuildDetails.tsx b/src/components/BuildDetails.tsx index f1384826..c62d154e 100644 --- a/src/components/BuildDetails.tsx +++ b/src/components/BuildDetails.tsx @@ -57,6 +57,13 @@ const BuildDetails: React.FunctionComponent = () => { {formatDateTime(selectedBuild.createdAt)} + {selectedBuild.updatedAt && ( + + + Last run: {formatDateTime(selectedBuild.updatedAt)} + + + )} diff --git a/src/components/BuildList/index.tsx b/src/components/BuildList/index.tsx index fdaa83b6..91745ea7 100644 --- a/src/components/BuildList/index.tsx +++ b/src/components/BuildList/index.tsx @@ -153,6 +153,13 @@ const BuildList: FunctionComponent = () => { {formatDateTime(build.createdAt)} + {build.updatedAt && ( + + + Last run: {formatDateTime(build.updatedAt)} + + + )} diff --git a/src/types/build.ts b/src/types/build.ts index 27957d7f..7a9df6aa 100644 --- a/src/types/build.ts +++ b/src/types/build.ts @@ -10,6 +10,7 @@ export interface Build { branchName: string; status: BuildStatus; createdAt: string; + updatedAt: string; createdBy: string; testRuns: TestRun[];