From 4f13c25ca2ae424baccf19b38c54e65302514c22 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Fri, 6 Feb 2026 00:19:18 -0600 Subject: [PATCH 1/2] refactor(network-form): clean up DriverOptsEntries rendering logic - Simplified the rendering of DriverOptsEntries in the network form by consolidating the mapping logic. - Improved formatting of example driver options in the form description for better readability. - Ensured consistent handling of adding and removing driver options within the form. --- .../cluster/swarm-forms/network-form.tsx | 139 +++++++++--------- 1 file changed, 69 insertions(+), 70 deletions(-) diff --git a/apps/dokploy/components/dashboard/application/advanced/cluster/swarm-forms/network-form.tsx b/apps/dokploy/components/dashboard/application/advanced/cluster/swarm-forms/network-form.tsx index 43a816dfc..f2c640cfe 100644 --- a/apps/dokploy/components/dashboard/application/advanced/cluster/swarm-forms/network-form.tsx +++ b/apps/dokploy/components/dashboard/application/advanced/cluster/swarm-forms/network-form.tsx @@ -104,10 +104,9 @@ export const NetworkForm = ({ id, type }: NetworkFormProps) => { formData.networks ?.filter((network) => network.Target) .map((network) => { - const entries = - (network.DriverOptsEntries ?? []).filter( - (e) => e.key.trim() !== "", - ); + const entries = (network.DriverOptsEntries ?? []).filter( + (e) => e.key.trim() !== "", + ); const driverOpts = entries.length > 0 ? Object.fromEntries( @@ -194,74 +193,74 @@ export const NetworkForm = ({ id, type }: NetworkFormProps) => {
Driver options (optional) - e.g. com.docker.network.driver.mtu, com.docker.network.driver.host_binding + e.g. com.docker.network.driver.mtu, + com.docker.network.driver.host_binding - {(form.watch(`networks.${index}.DriverOptsEntries`) ?? []).map( - (_, optIndex) => ( -
- ( - - - - - - - )} - /> - ( - - - - - - - )} - /> - -
- ), - )} + ) ?? []; + form.setValue( + `networks.${index}.DriverOptsEntries`, + entries.filter((_, i) => i !== optIndex), + ); + }} + > + Remove + +
+ ))} From 1aa05eaa8db47f9cb65d7e3c52273b8c58c92552 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Fri, 6 Feb 2026 00:47:33 -0600 Subject: [PATCH 2/2] chore(pnpm-lock): add resend package version 6.8.0 --- apps/dokploy/package.json | 1 + pnpm-lock.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/apps/dokploy/package.json b/apps/dokploy/package.json index 01a0474d5..c796ce3a7 100644 --- a/apps/dokploy/package.json +++ b/apps/dokploy/package.json @@ -37,6 +37,7 @@ "generate:openapi": "tsx -r dotenv/config scripts/generate-openapi.ts" }, "dependencies": { + "resend": "^6.0.2", "@better-auth/sso": "1.4.18", "@ai-sdk/anthropic": "^2.0.5", "@ai-sdk/azure": "^2.0.16", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3a83f055e..9e9b25d1e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -391,6 +391,9 @@ importers: recharts: specifier: ^2.15.3 version: 2.15.3(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + resend: + specifier: ^6.0.2 + version: 6.8.0(@react-email/render@0.0.16(react-dom@18.2.0(react@18.2.0))(react@18.2.0)) semver: specifier: 7.7.3 version: 7.7.3