From c4045795ee574a94a02467798eb913c5b9aee7f7 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Tue, 29 Apr 2025 22:01:30 -0600 Subject: [PATCH] Refactor ShowBackups component to improve UI and enhance backup information display. Introduce database type icons for better visual representation and reorganize backup details layout for clarity. Update styles for hover effects and button sizes to enhance user experience. --- .../database/backups/show-backups.tsx | 163 +++++++++++------- 1 file changed, 100 insertions(+), 63 deletions(-) diff --git a/apps/dokploy/components/dashboard/database/backups/show-backups.tsx b/apps/dokploy/components/dashboard/database/backups/show-backups.tsx index 0a6517f96..ff31da750 100644 --- a/apps/dokploy/components/dashboard/database/backups/show-backups.tsx +++ b/apps/dokploy/components/dashboard/database/backups/show-backups.tsx @@ -23,6 +23,12 @@ import { RestoreBackup } from "./restore-backup"; import { AlertBlock } from "@/components/shared/alert-block"; import { HandleBackup } from "./handle-backup"; import { cn } from "@/lib/utils"; +import { + MariadbIcon, + MongodbIcon, + MysqlIcon, + PostgresqlIcon, +} from "@/components/icons/data-tools-icons"; interface Props { id: string; @@ -169,78 +175,109 @@ export const ShowBackups = ({
+ {backup.destination.name} +
++ {backup.database} +
++ {backup.schedule} +
++ {backup.prefix} +
++ {backup.keepLatestCount || "All"} +
+