From 4c5771b55b2a07c2fcbe4cb73fbcd5c91c66e9af Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Wed, 3 Sep 2025 21:24:59 -0600 Subject: [PATCH] feat: add EnvironmentVariables component for managing environment variables, enhancing project configuration capabilities --- apps/dokploy/__test__/drop/drop.test.ts | 1 + apps/dokploy/__test__/traefik/traefik.test.ts | 1 + .../project/advanced-environment-selector.tsx | 23 ++- .../project/environment-variables.tsx | 157 ++++++++++++++++++ 4 files changed, 173 insertions(+), 9 deletions(-) create mode 100644 apps/dokploy/components/dashboard/project/environment-variables.tsx diff --git a/apps/dokploy/__test__/drop/drop.test.ts b/apps/dokploy/__test__/drop/drop.test.ts index 9ebf696f5..b597b3aa4 100644 --- a/apps/dokploy/__test__/drop/drop.test.ts +++ b/apps/dokploy/__test__/drop/drop.test.ts @@ -57,6 +57,7 @@ const baseApp: ApplicationNested = { previewLimit: 0, previewWildcard: "", environment: { + env: "", environmentId: "", name: "", createdAt: "", diff --git a/apps/dokploy/__test__/traefik/traefik.test.ts b/apps/dokploy/__test__/traefik/traefik.test.ts index 8ffffaff0..5be96e473 100644 --- a/apps/dokploy/__test__/traefik/traefik.test.ts +++ b/apps/dokploy/__test__/traefik/traefik.test.ts @@ -38,6 +38,7 @@ const baseApp: ApplicationNested = { previewWildcard: "", environmentId: "", environment: { + env: "", environmentId: "", name: "", createdAt: "", diff --git a/apps/dokploy/components/dashboard/project/advanced-environment-selector.tsx b/apps/dokploy/components/dashboard/project/advanced-environment-selector.tsx index 2f71374ed..834e37131 100644 --- a/apps/dokploy/components/dashboard/project/advanced-environment-selector.tsx +++ b/apps/dokploy/components/dashboard/project/advanced-environment-selector.tsx @@ -9,6 +9,7 @@ import { import { useRouter } from "next/router"; import { useState } from "react"; import { toast } from "sonner"; +import { EnvironmentVariables } from "@/components/dashboard/project/environment-variables"; import { AlertBlock } from "@/components/shared/alert-block"; import { Button } from "@/components/ui/button"; import { @@ -241,16 +242,20 @@ export const AdvancedEnvironmentSelector = ({ > - + + + + + + + + + + ); +};