From fe6d19c645f429b3db69a1e2ec1a2f32ebb3e55c Mon Sep 17 00:00:00 2001 From: Rohan Date: Sat, 11 Jan 2025 20:24:39 +0530 Subject: [PATCH] fix: misc styling, layout fixes --- .../apps/[app]/_components/AppSecretRow.tsx | 34 +++++++++++++------ frontend/app/[team]/apps/[app]/page.tsx | 26 +++++++------- 2 files changed, 38 insertions(+), 22 deletions(-) diff --git a/frontend/app/[team]/apps/[app]/_components/AppSecretRow.tsx b/frontend/app/[team]/apps/[app]/_components/AppSecretRow.tsx index 9061c642..99bb7398 100644 --- a/frontend/app/[team]/apps/[app]/_components/AppSecretRow.tsx +++ b/frontend/app/[team]/apps/[app]/_components/AppSecretRow.tsx @@ -237,6 +237,7 @@ const EnvSecret = ({ } export const AppSecretRow = ({ + index, clientAppSecret, serverAppSecret, stagedForDelete, @@ -247,6 +248,7 @@ export const AppSecretRow = ({ deleteEnvValue, deleteKey, }: { + index: number clientAppSecret: AppSecret serverAppSecret?: AppSecret stagedForDelete?: boolean @@ -343,7 +345,7 @@ export const AppSecretRow = ({ if (stagedForDelete) return '!border-l-red-700 !dark:border-l-red-400' else if (secretIsNew) return '!border-l-emerald-700 !dark:border-l-emerald-200' else if (secretIsModified()) return '!border-l-amber-700 !dark:border-l-amber-300' - else return '!border-neutral-500/40' + else return '!border-neutral-500/20' } const serverEnvSecret = (id: string) => serverAppSecret?.envs.find((env) => env.env.id === id) @@ -354,25 +356,37 @@ export const AppSecretRow = ({ <> - setIsOpen(!isOpen)} - className={clsx( - 'transform transition ease font-light cursor-pointer', - isOpen ? 'opacity-100 rotate-90' : 'opacity-0 group-hover:opacity-100 rotate-0' - )} - /> + className="relative flex items-center justify-center" + > + + + {index} + +
{keyring !== null && ( -
+

Environments

@@ -811,7 +811,7 @@ export default function Secrets({ params }: { params: { team: string; app: strin

Secrets

An overview of Secrets across all Environments in this App. Expand a row in the - table below to compare values across Environments. + table below to compare and manage values across all Environments.

@@ -886,25 +886,26 @@ export default function Secrets({ params }: { params: { team: string; app: strin
-
- -
+
+ +
+ {clientAppSecrets.length > 0 || appFolders.length > 0 ? ( - - - -
+ + + + {data?.appEnvironments.map((env: EnvironmentType) => (
key