Applications patch

This commit is contained in:
2026-01-02 13:55:05 +01:00
parent a26a12f684
commit bf8f59567d
+33 -40
View File
@@ -1,7 +1,14 @@
"use client"; "use client";
import { DashboardLayout } from "@/components/dashboard/DashboardLayout"; import { DashboardLayout } from "@/components/dashboard/DashboardLayout";
import { Card, CardContent } from "@/components/ui/card"; import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { Badge } from "@/components/ui/badge"; import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
import { MoreVertical, Plus, Rocket } from "lucide-react"; import { MoreVertical, Plus, Rocket } from "lucide-react";
@@ -50,48 +57,34 @@ export default function ApplicationsPage() {
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-3"> <div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
{applications.map((app) => ( {applications.map((app) => (
<Card key={app.id}> <Card key={app.id}>
<CardContent className="p-4"> <CardHeader>
<div className="flex flex-col gap-4"> <CardTitle>{app.name}</CardTitle>
{/* Status & Name */} <CardDescription>{app.repo}</CardDescription>
<div className="flex items-center gap-3 min-w-0"> </CardHeader>
<div className="min-w-0">
<div className="font-mono text-sm font-medium truncate">
{app.name}
</div>
<div className="text-xs text-muted-foreground font-mono truncate">
{app.repo}
</div>
</div>
</div>
{/* Deployments */} <CardContent className="flex flex-col gap-2">
<div className="flex justify-between items-center"> {/* Deployments */}
<span className="text-xs text-muted-foreground"> <div className="flex justify-between items-center">
Deployments <span className="text-xs text-muted-foreground">
</span> Deployments
<span className="font-mono text-sm"> </span>
{app.deployments?.length ?? 0} <span className="font-mono text-sm">
</span> {app.deployments?.length ?? 0}
</div> </span>
{/* Actions */}
<div className="flex items-center justify-end gap-1">
<Button variant="ghost" size="icon-sm" aria-label="Deploy">
<Rocket className="w-3 h-3" />
</Button>
{app.id && <RemoveDialog remove={() => remove(app.id)} />}
<Button
variant="ghost"
size="icon-sm"
aria-label="More options"
>
<MoreVertical className="w-3 h-3" />
</Button>
</div>
</div> </div>
</CardContent> </CardContent>
<CardFooter className="justify-end">
<Button variant="ghost" size="icon-sm" aria-label="Deploy">
<Rocket className="w-3 h-3" />
</Button>
<RemoveDialog remove={() => remove(app.id)} />
<Button variant="ghost" size="icon-sm" aria-label="More options">
<MoreVertical className="w-3 h-3" />
</Button>
</CardFooter>
</Card> </Card>
))} ))}
</div> </div>