feat(web): auto fresh every 5 seconds for workflow display

This commit is contained in:
BennyKok
2024-01-06 01:53:21 +08:00
parent 825c8a63fb
commit 3c4bce630e
6 changed files with 81 additions and 10 deletions
+6 -2
View File
@@ -24,8 +24,12 @@ export async function RunDisplay({
<DialogTrigger asChild className="appearance-none hover:cursor-pointer">
<TableRow>
<TableCell>{run.number}</TableCell>
<TableCell className="font-medium">{run.machine?.name}</TableCell>
<TableCell>{getRelativeTime(run.created_at)}</TableCell>
<TableCell className="font-medium truncate">
{run.machine?.name}
</TableCell>
<TableCell className="truncate">
{getRelativeTime(run.created_at)}
</TableCell>
<TableCell>{run.version?.version}</TableCell>
<LiveStatus run={run} />
</TableRow>