diff --git a/web/src/components/DeploymentDisplay.tsx b/web/src/components/DeploymentDisplay.tsx index 08d9625..659bb08 100644 --- a/web/src/components/DeploymentDisplay.tsx +++ b/web/src/components/DeploymentDisplay.tsx @@ -1,4 +1,4 @@ -import { DeploymentRow } from "./DeploymentRow"; +import { DeploymentRow, SharePageDeploymentRow } from "./DeploymentRow"; import { CodeBlock } from "@/components/CodeBlock"; import { Dialog, @@ -9,6 +9,7 @@ import { DialogTrigger, } from "@/components/ui/dialog"; import { ScrollArea } from "@/components/ui/scroll-area"; +import { TableRow } from "@/components/ui/table"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { getInputsFromWorkflow } from "@/lib/getInputsFromWorkflow"; import type { findAllDeployments } from "@/server/findAllRuns"; @@ -91,13 +92,15 @@ export function DeploymentDisplay({ const workflowInput = getInputsFromWorkflow(deployment.version); if (deployment.environment == "public-share") { - return ; + return ; } return ( - + + + diff --git a/web/src/components/DeploymentRow.tsx b/web/src/components/DeploymentRow.tsx index 232cbeb..13a06ed 100644 --- a/web/src/components/DeploymentRow.tsx +++ b/web/src/components/DeploymentRow.tsx @@ -5,7 +5,7 @@ import { getRelativeTime } from "@/lib/getRelativeTime"; import type { findAllDeployments } from "@/server/findAllRuns"; import { useRouter } from "next/navigation"; -export function DeploymentRow({ +export function SharePageDeploymentRow({ deployment, }: { deployment: Awaited>[0]; @@ -35,3 +35,26 @@ export function DeploymentRow({ ); } + +export function DeploymentRow({ + deployment, +}: { + deployment: Awaited>[0]; +}) { + return ( + <> + + {deployment.environment} + + + {deployment.version?.version} + + + {deployment.machine?.name} + + + {getRelativeTime(deployment.updated_at)} + + + ); +}