diff --git a/ui-v2/src/components/deployments/deployment-details-tabs.tsx b/ui-v2/src/components/deployments/deployment-details-tabs.tsx
index d73c34f2bdf0..8eda492f694a 100644
--- a/ui-v2/src/components/deployments/deployment-details-tabs.tsx
+++ b/ui-v2/src/components/deployments/deployment-details-tabs.tsx
@@ -1,8 +1,11 @@
+import { Deployment } from "@/api/deployments";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import type { DeploymentDetailsTabOptions } from "@/routes/deployments/deployment.$id";
import { Link, getRouteApi } from "@tanstack/react-router";
import { type JSX } from "react";
+import { DeploymentDescription } from "./deployment-description";
+
const routeApi = getRouteApi("/deployments/deployment/$id");
type TabOption = {
@@ -11,77 +14,82 @@ type TabOption = {
ViewComponent: () => JSX.Element;
};
-const TAB_OPTIONS = [
- {
- value: "Runs",
- LinkComponent: () => (
-
-
Runs
-
- ),
- ViewComponent: () => (
-
- {""}
-
- ),
- },
- {
- value: "Upcoming",
- LinkComponent: () => (
-
-
Upcoming
-
- ),
- ViewComponent: () => (
-
- {""}
-
- ),
- },
- {
- value: "Parameters",
- LinkComponent: () => (
-
-
Parameters
-
- ),
- ViewComponent: () => (
-
-
-
- ),
- },
- {
- value: "Configuration",
- LinkComponent: () => (
-
-
Configuration
-
- ),
- ViewComponent: () => (
-
- {""}
-
- ),
- },
- {
- value: "Description",
- LinkComponent: () => (
-
-
Description
-
- ),
- ViewComponent: () => (
-
- {""}
-
- ),
- },
-] as const satisfies Array
;
-
-export const DeploymentDetailsTabs = (): JSX.Element => {
+type DeploymentDetailsTabsProps = {
+ deployment: Deployment;
+};
+export const DeploymentDetailsTabs = ({
+ deployment,
+}: DeploymentDetailsTabsProps): JSX.Element => {
const { tab } = routeApi.useSearch();
+ const TAB_OPTIONS = [
+ {
+ value: "Runs",
+ LinkComponent: () => (
+
+ Runs
+
+ ),
+ ViewComponent: () => (
+
+ {""}
+
+ ),
+ },
+ {
+ value: "Upcoming",
+ LinkComponent: () => (
+
+ Upcoming
+
+ ),
+ ViewComponent: () => (
+
+ {""}
+
+ ),
+ },
+ {
+ value: "Parameters",
+ LinkComponent: () => (
+
+ Parameters
+
+ ),
+ ViewComponent: () => (
+
+
+
+ ),
+ },
+ {
+ value: "Configuration",
+ LinkComponent: () => (
+
+ Configuration
+
+ ),
+ ViewComponent: () => (
+
+ {""}
+
+ ),
+ },
+ {
+ value: "Description",
+ LinkComponent: () => (
+
+ Description
+
+ ),
+ ViewComponent: () => (
+
+
+
+ ),
+ },
+ ] as const satisfies Array;
+
return (