Add uptime tracking

This commit is contained in:
Owen
2026-04-16 18:25:25 -07:00
parent d6c15c8b81
commit c1782a2650
14 changed files with 794 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
"use client";
import ConfirmDeleteDialog from "@app/components/ConfirmDeleteDialog";
import UptimeMiniBar from "@app/components/UptimeMiniBar";
import { Badge } from "@app/components/ui/badge";
import { Button } from "@app/components/ui/button";
@@ -222,6 +223,17 @@ export default function SitesTable({
}
}
},
{
id: "uptime",
friendlyName: "Uptime",
header: () => <span className="p-3">Uptime (30d)</span>,
cell: ({ row }) => {
const originalRow = row.original;
return (
<UptimeMiniBar siteId={originalRow.id} days={30} />
);
}
},
{
accessorKey: "mbIn",
friendlyName: t("dataIn"),