Skip to content

Commit c9de2f0

Browse files
okstryzhakclaude
andauthored
feat: display last run time for each build in UI (#373)
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) <noreply@anthropic.com>
1 parent 96aad00 commit c9de2f0

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

src/components/BuildDetails.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ const BuildDetails: React.FunctionComponent = () => {
5757
{formatDateTime(selectedBuild.createdAt)}
5858
</Typography>
5959
</Grid>
60+
{selectedBuild.updatedAt && (
61+
<Grid item>
62+
<Typography variant="caption" color="textSecondary">
63+
Last run: {formatDateTime(selectedBuild.updatedAt)}
64+
</Typography>
65+
</Grid>
66+
)}
6067
</Grid>
6168
</Box>
6269
</Grid>

src/components/BuildList/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ const BuildList: FunctionComponent = () => {
153153
{formatDateTime(build.createdAt)}
154154
</Typography>
155155
</Grid>
156+
{build.updatedAt && (
157+
<Grid item>
158+
<Typography variant="caption" color="textSecondary">
159+
Last run: {formatDateTime(build.updatedAt)}
160+
</Typography>
161+
</Grid>
162+
)}
156163
<Grid item>
157164
<Grid container justifyContent="space-between">
158165
<Grid item>

src/types/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export interface Build {
1010
branchName: string;
1111
status: BuildStatus;
1212
createdAt: string;
13+
updatedAt: string;
1314
createdBy: string;
1415
testRuns: TestRun[];
1516

0 commit comments

Comments
 (0)