Show when folders have imports in secret overview page

This commit is contained in:
carlosmonastyrski
2025-03-17 19:13:06 -03:00
parent 8de7261c9a
commit ad110f490c
6 changed files with 256 additions and 7 deletions
@@ -167,6 +167,7 @@ export const useGetImportedSecretsAllEnvs = ({
select: useCallback(
(data: Awaited<ReturnType<typeof fetchImportedSecrets>>) =>
data.map((el) => ({
currentEnv: env,
environment: el.environment,
secretPath: el.secretPath,
environmentInfo: el.environmentInfo,
@@ -1,4 +1,5 @@
import { SecretV3Raw } from "../secrets/types";
import { WsTag } from "../types";
import { WorkspaceEnv } from "../workspace/types";
export type TSecretImport = {
@@ -90,3 +91,23 @@ export type TDeleteSecretImportDTO = {
environment: string;
path?: string;
};
export type SecretImportData = {
currentEnv: string;
environment: string;
secretPath: string;
environmentInfo: WorkspaceEnv;
folderId: string;
secrets: {
id: string;
env: string;
key: string;
value: string;
secretValueHidden: boolean;
tags?: WsTag[];
comment?: string;
createdAt: string;
updatedAt: string;
version: number;
}[];
};