From e2b9f19800119ad108c327e6a61ab61462d668b0 Mon Sep 17 00:00:00 2001 From: wisecolt Date: Tue, 3 Feb 2026 10:08:18 +0000 Subject: [PATCH] =?UTF-8?q?feat(ui):=20deploy=20ge=C3=A7mi=C5=9Fi=20i?= =?UTF-8?q?=C3=A7in=20scroll-area=20ekle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 1 + frontend/src/components/ui/scroll-area.tsx | 24 +++++++++++ frontend/src/pages/DeploymentDetailPage.tsx | 48 ++++++++++++--------- 3 files changed, 52 insertions(+), 21 deletions(-) create mode 100644 frontend/src/components/ui/scroll-area.tsx diff --git a/frontend/package.json b/frontend/package.json index 16d1558..0fb4cfc 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -16,6 +16,7 @@ "@fortawesome/react-fontawesome": "^3.1.0", "@radix-ui/react-select": "^2.2.6", "@radix-ui/react-slot": "^1.0.2", + "@radix-ui/react-scroll-area": "^1.2.5", "@radix-ui/react-tabs": "^1.1.3", "axios": "^1.5.1", "class-variance-authority": "^0.7.0", diff --git a/frontend/src/components/ui/scroll-area.tsx b/frontend/src/components/ui/scroll-area.tsx new file mode 100644 index 0000000..0c619c0 --- /dev/null +++ b/frontend/src/components/ui/scroll-area.tsx @@ -0,0 +1,24 @@ +import * as React from "react"; +import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"; +import { cn } from "../../lib/utils"; + +const ScrollArea = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, children, ...props }, ref) => ( + + + {children} + + + + + + +)); +ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName; + +export { ScrollArea }; diff --git a/frontend/src/pages/DeploymentDetailPage.tsx b/frontend/src/pages/DeploymentDetailPage.tsx index 5366e92..9db5c6a 100644 --- a/frontend/src/pages/DeploymentDetailPage.tsx +++ b/frontend/src/pages/DeploymentDetailPage.tsx @@ -18,6 +18,7 @@ import { JobStatusBadge } from "../components/JobStatusBadge"; import { Label } from "../components/ui/label"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../components/ui/select"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "../components/ui/tabs"; +import { ScrollArea } from "../components/ui/scroll-area"; import { DeploymentInput, DeploymentProject, @@ -422,29 +423,34 @@ export function DeploymentDetailPage() { Deploy Geçmişi - - {runs.length === 0 && ( + + {runs.length === 0 ? (
Henüz deploy çalıştırılmadı.
+ ) : ( + +
+ {runs.map((run) => ( +
+
+ + + {new Date(run.startedAt).toLocaleString()} + + {run.message && ( + · {run.message} + )} +
+
+ {run.durationMs ? `${Math.round(run.durationMs / 1000)}s` : "-"} +
+
+ ))} +
+
)} - {runs.map((run) => ( -
-
- - - {new Date(run.startedAt).toLocaleString()} - - {run.message && ( - · {run.message} - )} -
-
- {run.durationMs ? `${Math.round(run.durationMs / 1000)}s` : "-"} -
-
- ))}