Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

de-conflict main

Scott Wilson0cb6925932b5
diff --cc frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
index e02d092d31,08ef5e6a2e..215b8959ad
--- a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
@@@ -95,9 -100,9 +101,10 @@@ import
useDeleteFolder,
useDeleteSecretImport,
useDeleteSecretV3,
+ useDeleteWsEnvironment,
useGetImportedSecretsAllEnvs,
useGetOrCreateFolder,
+ useGetSecretApprovalPolicyOfABoard,
useGetWsTags,
useUpdateSecretImport,
useUpdateSecretV3
@@@ -506,10 -562,7 +564,8 @@@ export const OverviewPage = () =>
const deleteDynamicSecret = useDeleteDynamicSecret();
const { mutateAsync: deleteSecretImport } = useDeleteSecretImport();
const { mutate: updateSecretImport } = useUpdateSecretImport();
+ const { mutateAsync: deleteWsEnvironment } = useDeleteWsEnvironment();
- const isSingleEnvView = visibleEnvs.length === 1;
- const singleEnvSlug = isSingleEnvView ? visibleEnvs[0].slug : "";
const singleEnvImports = useMemo(
() => (isSingleEnvView ? getSecretImportsForEnv(singleEnvSlug) : []),
[isSingleEnvView, singleEnvSlug, getSecretImportsForEnv]
@@@ -548,7 -601,8 +604,9 @@@
"snapshots",
"deleteSecretImport",
"addSecretImport",
- "deleteEnv"
++ "deleteEnv",
+ "requestAccess",
+ "importFromVault"
] as const);
const handleViewCommitHistory = async (envSlug: string, preloadedFolderId?: string) => {
@@@ -2057,32 -2177,17 +2217,46 @@@
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
++<<<<<<< HEAD
+ <AlertDialog
+ open={popUp.deleteEnv.isOpen}
+ onOpenChange={(isOpen) => handlePopUpToggle("deleteEnv", isOpen)}
+ >
+ <AlertDialogContent>
+ <AlertDialogHeader>
+ <AlertDialogMedia>
+ <TrashIcon />
+ </AlertDialogMedia>
+ <AlertDialogTitle>Delete Environment</AlertDialogTitle>
+ <AlertDialogDescription>
+ Are you sure you want to delete{" "}
+ <span className="font-medium text-foreground">
+ {(popUp?.deleteEnv?.data as { name: string })?.name}
+ </span>
+ ? This action is irreversible.
+ </AlertDialogDescription>
+ </AlertDialogHeader>
+ <AlertDialogFooter>
+ <AlertDialogCancel>Cancel</AlertDialogCancel>
+ <AlertDialogAction variant="danger" onClick={handleDeleteEnvironment}>
+ Delete
+ </AlertDialogAction>
+ </AlertDialogFooter>
+ </AlertDialogContent>
+ </AlertDialog>
++=======
+ {!!pathPolicies && pathPolicies.length > 0 && (
+ <RequestAccessModal
+ policies={pathPolicies}
+ isOpen={popUp.requestAccess.isOpen}
+ onOpenChange={() => {
+ handlePopUpClose("requestAccess");
+ }}
+ selectedActions={popUp.requestAccess.data as ProjectPermissionActions[] | undefined}
+ secretPath={pathPolicies[0].secretPath}
+ />
+ )}
++>>>>>>> main
</div>
);
};