From 6290c217f127b8053710f0acc8f0d3e6edc03b1b Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sun, 22 Jun 2025 10:00:14 -0600 Subject: [PATCH] feat(rollbacks): add alert for storage usage in rollback settings - Introduced an AlertBlock component to inform users about increased storage usage when rollbacks are enabled. - Added cautionary note regarding the potential deletion of rollback images during manual cache cleaning. --- .../application/rollbacks/show-rollback-settings.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/dokploy/components/dashboard/application/rollbacks/show-rollback-settings.tsx b/apps/dokploy/components/dashboard/application/rollbacks/show-rollback-settings.tsx index 4b2edca0..77575ea0 100644 --- a/apps/dokploy/components/dashboard/application/rollbacks/show-rollback-settings.tsx +++ b/apps/dokploy/components/dashboard/application/rollbacks/show-rollback-settings.tsx @@ -1,3 +1,4 @@ +import { AlertBlock } from "@/components/shared/alert-block"; import { Button } from "@/components/ui/button"; import { Dialog, @@ -79,6 +80,11 @@ export const ShowRollbackSettings = ({ applicationId, children }: Props) => { Configure how rollbacks work for this application + + Having rollbacks enabled increases storage usage. Be careful with + this option. Note that manually cleaning the cache may delete + rollback images, making them unavailable for future rollbacks. +