Skip to content

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

UX Tweaks

x0322050137138b72f6
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/lockout/LockoutTab.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/lockout/LockoutTab.tsx
index 02bb10e73d..3d386a20f9 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/lockout/LockoutTab.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/lockout/LockoutTab.tsx
@@ -42,7 +42,7 @@ export const LockoutTab = ({
onCheckedChange={onChange}
isChecked={value}
>
- Lockout {value ? "Enabled" : "Disabled"}
+ Lockout
</Switch>
</FormControl>
);
diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/IdentityAuthLockoutFields.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/IdentityAuthLockoutFields.tsx
index 1a616178e1..b5cb2d901d 100644
--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/IdentityAuthLockoutFields.tsx
+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/IdentityAuthLockoutFields.tsx
@@ -67,9 +67,6 @@ export const LockoutFields = ({
)}
</OrgPermissionCan>
</div>
- <IdentityAuthFieldDisplay label="Lockout">
- {data.lockoutEnabled ? "Enabled" : "Disabled"}
- </IdentityAuthFieldDisplay>
<IdentityAuthFieldDisplay label="Lockout Threshold">
{data.lockoutThreshold}
</IdentityAuthFieldDisplay>
diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/ViewIdentityLdapAuthContent.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/ViewIdentityLdapAuthContent.tsx
index 998073c1de..9c20a1bbe9 100644
--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/ViewIdentityLdapAuthContent.tsx
+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/ViewIdentityLdapAuthContent.tsx
@@ -102,13 +102,18 @@ export const ViewIdentityLdapAuthContent = ({
</Tooltip>
)}
</IdentityAuthFieldDisplay>
- <LockoutFields
- identityId={identityId}
- lockedOut={lockedOut}
- clearLockoutsResult={clearLockoutsResult}
- data={data}
- onResetAllLockouts={onResetAllLockouts}
- />
+ <IdentityAuthFieldDisplay label="Lockout">
+ {data.lockoutEnabled ? "Enabled" : "Disabled"}
+ </IdentityAuthFieldDisplay>
+ {data.lockoutEnabled && (
+ <LockoutFields
+ identityId={identityId}
+ lockedOut={lockedOut}
+ clearLockoutsResult={clearLockoutsResult}
+ data={data}
+ onResetAllLockouts={onResetAllLockouts}
+ />
+ )}
</ViewIdentityContentWrapper>
);
};
diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/ViewIdentityUniversalAuthContent.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/ViewIdentityUniversalAuthContent.tsx
index 9ae5941864..4d7b95087c 100644
--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/ViewIdentityUniversalAuthContent.tsx
+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/ViewIdentityAuthModal/ViewIdentityUniversalAuthContent.tsx
@@ -90,13 +90,18 @@ export const ViewIdentityUniversalAuthContent = ({
<IdentityAuthFieldDisplay label="Client Secret Trusted IPs">
{data.clientSecretTrustedIps.map((ip) => ip.ipAddress).join(", ")}
</IdentityAuthFieldDisplay>
- <LockoutFields
- identityId={identityId}
- lockedOut={lockedOut}
- clearLockoutsResult={clearLockoutsResult}
- data={data}
- onResetAllLockouts={onResetAllLockouts}
- />
+ <IdentityAuthFieldDisplay label="Lockout">
+ {data.lockoutEnabled ? "Enabled" : "Disabled"}
+ </IdentityAuthFieldDisplay>
+ {data.lockoutEnabled && (
+ <LockoutFields
+ identityId={identityId}
+ lockedOut={lockedOut}
+ clearLockoutsResult={clearLockoutsResult}
+ data={data}
+ onResetAllLockouts={onResetAllLockouts}
+ />
+ )}
<div className="col-span-2 my-3">
<div className="mb-3 border-b border-mineshaft-500 pb-2">
<span className="text-bunker-300">Client ID</span>