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
improvements: address feedback
Scott Wilsonacd94cd2a6af
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AddAppConnectionModal.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AddAppConnectionModal.tsxindex cda88d9651..b7fbee63cf 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AddAppConnectionModal.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AddAppConnectionModal.tsx@@ -47,9 +47,13 @@ export const AddAppConnectionModal = ({const [selectedApp, setSelectedApp] = useState<AppConnection | null>(app ?? null);const [confirmDiscardOpen, setConfirmDiscardOpen] = useState(false);+ // Reset to the starting step whenever the sheet (re)opens: a preset `app` goes straight to its+ // form, otherwise the provider picker. Keyed on `isOpen` so reopening with an unchanged preset+ // `app` (inline create flows keep the modal mounted) still restores the form instead of falling+ // back to the picker.useEffect(() => {- setSelectedApp(app ?? null);- }, [app]);+ if (isOpen) setSelectedApp(app ?? null);+ }, [isOpen, app]);const closeSheet = () => {setSelectedApp(null);@@ -108,6 +112,9 @@ export const AddAppConnectionModal = ({app={selectedApp}projectId={projectId}onComplete={handleComplete}+ // Explicit Cancel is a deliberate abandon, so it closes immediately. Ambiguous+ // dismissals (X / Escape / outside click) route through handleSheetOpenChange,+ // which shows the discard confirmation.onCancel={closeSheet}/></div>diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionHeader.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionHeader.tsxindex e5bf5aa8ea..63a3d52fae 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionHeader.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionHeader.tsx@@ -34,7 +34,7 @@ export const AppConnectionHeader = ({ app, isConnected }: Props) => {href={`https://infisical.com/docs/integrations/app-connections/${app}`}/></div>- <p className="text-sm font-normal leading-4 text-mineshaft-400">+ <p className="text-sm leading-4 font-normal text-mineshaft-400">{isConnected ? `${appDetails.name} Connection` : `Connect to ${appDetails.name}`}</p></div>diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/DeleteAppConnectionModal.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/DeleteAppConnectionModal.tsxindex 33410db188..fb49250308 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/DeleteAppConnectionModal.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/DeleteAppConnectionModal.tsx@@ -6,7 +6,6 @@ import {Alert,AlertDescription,AlertDialog,- AlertDialogAction,AlertDialogCancel,AlertDialogContent,AlertDialogDescription,@@ -15,6 +14,7 @@ import {AlertDialogMedia,AlertDialogTitle,AlertTitle,+ Button,Field,FieldContent,FieldLabel,@@ -43,19 +43,23 @@ export const DeleteAppConnectionModal = ({ isOpen, onOpenChange, appConnection }const isConfirmed = inputData === name;const handleDeleteAppConnection = async () => {- if (!isConfirmed) return;+ if (!isConfirmed || deleteAppConnection.isPending) return;- await deleteAppConnection.mutateAsync({- connectionId,- app- });+ try {+ await deleteAppConnection.mutateAsync({+ connectionId,+ app+ });- createNotification({- text: `Successfully removed ${APP_CONNECTION_MAP[app].name} connection`,- type: "success"- });+ createNotification({+ text: `Successfully removed ${APP_CONNECTION_MAP[app].name} connection`,+ type: "success"+ });- onOpenChange(false);+ onOpenChange(false);+ } catch {+ // Error is handled by the mutation's onError handler+ }};return (@@ -99,13 +103,15 @@ export const DeleteAppConnectionModal = ({ isOpen, onOpenChange, appConnection }</form><AlertDialogFooter><AlertDialogCancel>Cancel</AlertDialogCancel>- <AlertDialogAction+ <Buttonvariant="danger"+ size="sm"+ isDisabled={!isConfirmed}+ isPending={deleteAppConnection.isPending}onClick={handleDeleteAppConnection}- disabled={!isConfirmed}>Delete- </AlertDialogAction>+ </Button></AlertDialogFooter></AlertDialogContent></AlertDialog>