Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
UI: fix z-index to avoid hiding the confirm dialog on sheets
adilson33a32f63f2a0
diff --git a/frontend/src/components/v3/generic/AlertDialog/AlertDialog.tsx b/frontend/src/components/v3/generic/AlertDialog/AlertDialog.tsxindex ef15619c1e..ac0b0403b4 100644--- a/frontend/src/components/v3/generic/AlertDialog/AlertDialog.tsx+++ b/frontend/src/components/v3/generic/AlertDialog/AlertDialog.tsx@@ -39,13 +39,15 @@ function AlertDialogOverlay({function AlertDialogContent({className,size = "default",+ overlayClassName,...props}: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {size?: "default" | "sm";+ overlayClassName?: string;}) {return (<AlertDialogPortal>- <AlertDialogOverlay />+ <AlertDialogOverlay className={overlayClassName} /><AlertDialogPrimitive.Contentdata-slot="alert-dialog-content"data-size={size}diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AddAppConnectionModal.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AddAppConnectionModal.tsxindex db0a888b42..bee2830af3 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AddAppConnectionModal.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AddAppConnectionModal.tsx@@ -132,7 +132,10 @@ export const AddAppConnectionModal = ({</Sheet><AlertDialog open={confirmDiscardOpen} onOpenChange={setConfirmDiscardOpen}>- <AlertDialogContent>+ {/* z-[80] keeps the discard confirmation above this sheet (z-[70]). Without it, when the+ sheet is opened over a legacy v2 modal (z-[60]) — e.g. the secret rotation modal — the+ confirm dialog would open behind the sheet yet still capture focus, leaving it dead. */}+ <AlertDialogContent className="z-[80]" overlayClassName="z-[80]"><AlertDialogHeader><AlertDialogMedia><AlertTriangleIcon />diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubAppSelector.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubAppSelector.tsxindex 934da72374..a7cdf35db8 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubAppSelector.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubAppSelector.tsx@@ -342,12 +342,14 @@ export const GitHubAppSelector = ({</div><Dialog open={isManageOpen} onOpenChange={handleManageOpenChange}>+ {/* z-[80] keeps this above the Add Connection sheet (z-[70]) that hosts this form. */}<DialogContentonOpenAutoFocus={(e) => {e.preventDefault();containerRef.current?.focus({ preventScroll: true });}}- className="max-w-xl"+ className="z-[80] max-w-xl"+ overlayClassName="z-[80]"><DialogHeader><DialogTitle>Manage GitHub Apps</DialogTitle>diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/PlatformManagedConfirmationModal.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/PlatformManagedConfirmationModal.tsxindex e249a42a0f..07a3f180e8 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/PlatformManagedConfirmationModal.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/shared/PlatformManagedConfirmationModal.tsx@@ -21,7 +21,8 @@ type Props = {export const PlatformManagedConfirmationModal = ({ isOpen, onOpenChange, onConfirm }: Props) => {return (<AlertDialog open={isOpen} onOpenChange={onOpenChange}>- <AlertDialogContent>+ {/* z-[80] keeps this above the Add Connection sheet (z-[70]) that hosts this form. */}+ <AlertDialogContent className="z-[80]" overlayClassName="z-[80]"><AlertDialogHeader><AlertDialogMedia><AlertTriangleIcon />