From e4197d6565b15473afdcd8236da646456a75b3ee Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 8 Mar 2025 20:49:31 -0600 Subject: [PATCH] chore(domains): update domain configuration types and form handling - Add `customCertResolver` to domain-related test files and form components - Ensure consistent handling of optional custom certificate resolver - Minor UI adjustment in code editor disabled state --- apps/dokploy/__test__/compose/domain/labels.test.ts | 1 + apps/dokploy/__test__/traefik/traefik.test.ts | 1 + .../application/preview-deployments/add-preview-domain.tsx | 1 + apps/dokploy/components/shared/code-editor.tsx | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/dokploy/__test__/compose/domain/labels.test.ts b/apps/dokploy/__test__/compose/domain/labels.test.ts index 8bc9fbccb..c5f45810f 100644 --- a/apps/dokploy/__test__/compose/domain/labels.test.ts +++ b/apps/dokploy/__test__/compose/domain/labels.test.ts @@ -9,6 +9,7 @@ describe("createDomainLabels", () => { port: 8080, https: false, uniqueConfigKey: 1, + customCertResolver: null, certificateType: "none", applicationId: "", composeId: "", diff --git a/apps/dokploy/__test__/traefik/traefik.test.ts b/apps/dokploy/__test__/traefik/traefik.test.ts index 955103dec..9ee8668d3 100644 --- a/apps/dokploy/__test__/traefik/traefik.test.ts +++ b/apps/dokploy/__test__/traefik/traefik.test.ts @@ -103,6 +103,7 @@ const baseDomain: Domain = { port: null, serviceName: "", composeId: "", + customCertResolver: null, domainType: "application", uniqueConfigKey: 1, previewDeploymentId: "", diff --git a/apps/dokploy/components/dashboard/application/preview-deployments/add-preview-domain.tsx b/apps/dokploy/components/dashboard/application/preview-deployments/add-preview-domain.tsx index 64b7c3c61..78cd55d7a 100644 --- a/apps/dokploy/components/dashboard/application/preview-deployments/add-preview-domain.tsx +++ b/apps/dokploy/components/dashboard/application/preview-deployments/add-preview-domain.tsx @@ -94,6 +94,7 @@ export const AddPreviewDomain = ({ /* Convert null to undefined */ path: data?.path || undefined, port: data?.port || undefined, + customCertResolver: data?.customCertResolver || undefined, }); } diff --git a/apps/dokploy/components/shared/code-editor.tsx b/apps/dokploy/components/shared/code-editor.tsx index 5dcce77f6..bbe8d2a7d 100644 --- a/apps/dokploy/components/shared/code-editor.tsx +++ b/apps/dokploy/components/shared/code-editor.tsx @@ -55,7 +55,7 @@ export const CodeEditor = ({ )} /> {props.disabled && ( -
+
)}
);