feat: add duration display

This commit is contained in:
BennyKok
2024-01-20 17:46:15 +08:00
parent 1a0d73ff8b
commit c98a16a2dd
6 changed files with 39 additions and 11 deletions
+4 -1
View File
@@ -11,7 +11,7 @@ import {
DialogTrigger,
} from "@/components/ui/dialog";
import { TableCell, TableRow } from "@/components/ui/table";
import { getRelativeTime } from "@/lib/getRelativeTime";
import { getDuration, getRelativeTime } from "@/lib/getRelativeTime";
import { type findAllRuns } from "@/server/findAllRuns";
import { Suspense } from "react";
@@ -37,6 +37,9 @@ export async function RunDisplay({
{run.origin}
</Badge>
</TableCell>
<TableCell className="truncate">
{getDuration(run.duration)}
</TableCell>
<LiveStatus run={run} />
</TableRow>
</DialogTrigger>