refactor: remove console logs and enhance tooltip information in CreateSecretForm

This commit is contained in:
Victor Santos
2025-11-05 11:24:02 -03:00
parent 7b83481815
commit 10aace268e
4 changed files with 21 additions and 12 deletions
@@ -249,6 +249,19 @@ export const CreateSecretForm = ({ secretPath = "/", onClose }: Props) => {
name="value"
render={({ field }) => (
<FormControl
tooltipText={
<div>
You can add references to other secrets using the format{" "}
<code>
&#36;{"{"}secret_name{"}"}
</code>
.
<br />
<br /> You can go to the referenced secret by holding the <code>Cmd</code> (Mac) or{" "}
<code>Ctrl</code> (Windows/Linux) key and clicking on the secret name.
</div>
}
tooltipClassName="max-w-md"
label="Value"
isError={Boolean(errors?.value)}
errorText={errors?.value?.message}
@@ -602,7 +602,7 @@ const Page = () => {
tags: updatedTags,
include: includeFilter
}));
setDebouncedSearchFilter(routerQueryParams.search as string);
setDebouncedSearchFilter((routerQueryParams.search as string) ?? "");
}, [routerQueryParams.search, routerQueryParams.tags, routerQueryParams.filterBy]);
const selectedSecrets = useSelectedSecrets();