From e3979d2c481cb87293b5bcca314a988365685b88 Mon Sep 17 00:00:00 2001 From: Vyacheslav Scherbinin Date: Sun, 17 Aug 2025 12:09:26 +0700 Subject: [PATCH 1/6] fix(ui): fixed viewport --- apps/dokploy/components/ui/sidebar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dokploy/components/ui/sidebar.tsx b/apps/dokploy/components/ui/sidebar.tsx index a042a6180..b7f79f5ed 100644 --- a/apps/dokploy/components/ui/sidebar.tsx +++ b/apps/dokploy/components/ui/sidebar.tsx @@ -148,7 +148,7 @@ const SidebarProvider = React.forwardRef< } as React.CSSProperties } className={cn( - "group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar", + "group/sidebar-wrapper flex h-svh w-full has-[[data-variant=inset]]:bg-sidebar", className, )} ref={ref} From 6d9a1db8af022b31fc68d97a06a391148c2399f3 Mon Sep 17 00:00:00 2001 From: Vyacheslav Scherbinin Date: Sun, 17 Aug 2025 12:36:40 +0700 Subject: [PATCH 2/6] fix(ui): scrollbar gutter stable --- apps/dokploy/components/ui/sidebar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/dokploy/components/ui/sidebar.tsx b/apps/dokploy/components/ui/sidebar.tsx index b7f79f5ed..bb9d940a1 100644 --- a/apps/dokploy/components/ui/sidebar.tsx +++ b/apps/dokploy/components/ui/sidebar.tsx @@ -329,10 +329,11 @@ const SidebarInset = React.forwardRef<
); From b4d5935875065929e0804ca40a0a09482d0b11b4 Mon Sep 17 00:00:00 2001 From: Vyacheslav Scherbinin Date: Mon, 18 Aug 2025 23:27:49 +0700 Subject: [PATCH 3/6] fix(ui): modal popover handle close --- apps/dokploy/components/ui/dialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dokploy/components/ui/dialog.tsx b/apps/dokploy/components/ui/dialog.tsx index a51ab243c..27c8e35c3 100644 --- a/apps/dokploy/components/ui/dialog.tsx +++ b/apps/dokploy/components/ui/dialog.tsx @@ -123,7 +123,7 @@ const DialogContent = React.forwardRef< {/* Custom overlay for modal=false - no click handler to avoid Command conflicts */}
Date: Mon, 18 Aug 2025 23:52:30 +0700 Subject: [PATCH 4/6] fix(ui): modal pointer events predefine --- apps/dokploy/components/ui/dialog.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/dokploy/components/ui/dialog.tsx b/apps/dokploy/components/ui/dialog.tsx index 27c8e35c3..e1237f70c 100644 --- a/apps/dokploy/components/ui/dialog.tsx +++ b/apps/dokploy/components/ui/dialog.tsx @@ -123,16 +123,17 @@ const DialogContent = React.forwardRef< {/* Custom overlay for modal=false - no click handler to avoid Command conflicts */}
event.preventDefault()} {...props} > From a4041185f1bac4c65b4996f6042a2774e3f64de5 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Tue, 19 Aug 2025 00:14:50 -0600 Subject: [PATCH 5/6] feat(ui): add alert blocks for running services in delete confirmation dialogs --- .../dashboard/compose/delete-service.tsx | 15 ++++++++ .../pages/dashboard/project/[projectId].tsx | 36 ++++++++++++++++++- 2 files changed, 50 insertions(+), 1 deletion(-) diff --git a/apps/dokploy/components/dashboard/compose/delete-service.tsx b/apps/dokploy/components/dashboard/compose/delete-service.tsx index cae27c264..438af954a 100644 --- a/apps/dokploy/components/dashboard/compose/delete-service.tsx +++ b/apps/dokploy/components/dashboard/compose/delete-service.tsx @@ -7,6 +7,7 @@ import { useState } from "react"; import { useForm } from "react-hook-form"; import { toast } from "sonner"; import { z } from "zod"; +import { AlertBlock } from "@/components/shared/alert-block"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Checkbox } from "@/components/ui/checkbox"; @@ -114,6 +115,12 @@ export const DeleteService = ({ id, type }: Props) => { } }; + const isDisabled = + (data && + "applicationStatus" in data && + data?.applicationStatus === "running") || + (data && "composeStatus" in data && data?.composeStatus === "running"); + return ( @@ -202,6 +209,12 @@ export const DeleteService = ({ id, type }: Props) => {
+ {isDisabled && ( + + Cannot delete the service while it is running. Please wait for the + build to finish and then try again. + + )} +