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.
This commit is contained in:
Mauricio Siu
2025-06-22 10:00:14 -06:00
parent 4babdd45ea
commit 6290c217f1

View File

@@ -1,3 +1,4 @@
import { AlertBlock } from "@/components/shared/alert-block";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
import { import {
Dialog, Dialog,
@@ -79,6 +80,11 @@ export const ShowRollbackSettings = ({ applicationId, children }: Props) => {
<DialogDescription> <DialogDescription>
Configure how rollbacks work for this application Configure how rollbacks work for this application
</DialogDescription> </DialogDescription>
<AlertBlock>
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.
</AlertBlock>
</DialogHeader> </DialogHeader>
<Form {...form}> <Form {...form}>