From 87d383a9c43778c526bc449de69c6628d6c93c04 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Tue, 25 Feb 2025 17:44:55 +0900 Subject: [PATCH] Update SecretDetailSidebar.tsx --- .../SecretListView/SecretDetailSidebar.tsx | 224 +++++++++++++----- 1 file changed, 160 insertions(+), 64 deletions(-) diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx index ef789645b..4adc4fc9c 100644 --- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx +++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx @@ -289,7 +289,7 @@ export const SecretDetailSidebar = ({ -
+
{(isAllowed) => (
- Multi-line encoding + + Multi-line encoding - + />
)} )} />
-
+
{(isAllowed) => ( - -
- Override with a personal value +
+ + Override with a personal value - + />
)} @@ -379,12 +380,20 @@ export const SecretDetailSidebar = ({ /> )}
-
-
0 ? "flex-col " : "flex-row "}`}> -
0 ? "mb-2" : "mt-0.5"}`}>Tags
+
+
0 ? "flex-col" : "flex-row"}`} + > +
0 ? "mb-2" : "mt-0.5"}`} + > + Tags +
-
0 ? "pt-2" : ""}`}> +
0 ? "pt-2" : ""}`} + > {tagFields.fields.map(({ tagColor, id: formId, slug, id }) => ( - Add tags to this secret + + Add tags to this secret + {tags.map((tag) => { const { id: tagId, slug, color } = tag; @@ -478,9 +489,18 @@ export const SecretDetailSidebar = ({
-
0 || metadataFormFields.fields.length > 0 ? "block" : "hidden"}`}>
-
0 ? "flex-col " : "flex-row "}`}> -
0 ? "mb-2" : "mt-0.5"}`}>Metadata
+
0 || metadataFormFields.fields.length > 0 ? "block" : "hidden"}`} + /> + +
0 ? "flex-col" : "flex-row"}`} + > +
0 ? "mb-2" : "mt-0.5"}`} + > + Metadata +
{metadataFormFields.fields.map(({ id: metadataFieldId }, i) => ( @@ -534,7 +554,13 @@ export const SecretDetailSidebar = ({
))}
0 ? "pt-2" : ""}`}> - metadataFormFields.append({ key: "", value: "" })}> + metadataFormFields.append({ key: "", value: "" })} + >
@@ -544,7 +570,7 @@ export const SecretDetailSidebar = ({