UX Tweaks

This commit is contained in:
x032205
2025-08-29 15:34:03 -04:00
parent d83f0d4214
commit 0137138b72
4 changed files with 25 additions and 18 deletions
@@ -42,7 +42,7 @@ export const LockoutTab = ({
onCheckedChange={onChange} onCheckedChange={onChange}
isChecked={value} isChecked={value}
> >
Lockout {value ? "Enabled" : "Disabled"} Lockout
</Switch> </Switch>
</FormControl> </FormControl>
); );
@@ -67,9 +67,6 @@ export const LockoutFields = ({
)} )}
</OrgPermissionCan> </OrgPermissionCan>
</div> </div>
<IdentityAuthFieldDisplay label="Lockout">
{data.lockoutEnabled ? "Enabled" : "Disabled"}
</IdentityAuthFieldDisplay>
<IdentityAuthFieldDisplay label="Lockout Threshold"> <IdentityAuthFieldDisplay label="Lockout Threshold">
{data.lockoutThreshold} {data.lockoutThreshold}
</IdentityAuthFieldDisplay> </IdentityAuthFieldDisplay>
@@ -102,13 +102,18 @@ export const ViewIdentityLdapAuthContent = ({
</Tooltip> </Tooltip>
)} )}
</IdentityAuthFieldDisplay> </IdentityAuthFieldDisplay>
<LockoutFields <IdentityAuthFieldDisplay label="Lockout">
identityId={identityId} {data.lockoutEnabled ? "Enabled" : "Disabled"}
lockedOut={lockedOut} </IdentityAuthFieldDisplay>
clearLockoutsResult={clearLockoutsResult} {data.lockoutEnabled && (
data={data} <LockoutFields
onResetAllLockouts={onResetAllLockouts} identityId={identityId}
/> lockedOut={lockedOut}
clearLockoutsResult={clearLockoutsResult}
data={data}
onResetAllLockouts={onResetAllLockouts}
/>
)}
</ViewIdentityContentWrapper> </ViewIdentityContentWrapper>
); );
}; };
@@ -90,13 +90,18 @@ export const ViewIdentityUniversalAuthContent = ({
<IdentityAuthFieldDisplay label="Client Secret Trusted IPs"> <IdentityAuthFieldDisplay label="Client Secret Trusted IPs">
{data.clientSecretTrustedIps.map((ip) => ip.ipAddress).join(", ")} {data.clientSecretTrustedIps.map((ip) => ip.ipAddress).join(", ")}
</IdentityAuthFieldDisplay> </IdentityAuthFieldDisplay>
<LockoutFields <IdentityAuthFieldDisplay label="Lockout">
identityId={identityId} {data.lockoutEnabled ? "Enabled" : "Disabled"}
lockedOut={lockedOut} </IdentityAuthFieldDisplay>
clearLockoutsResult={clearLockoutsResult} {data.lockoutEnabled && (
data={data} <LockoutFields
onResetAllLockouts={onResetAllLockouts} identityId={identityId}
/> lockedOut={lockedOut}
clearLockoutsResult={clearLockoutsResult}
data={data}
onResetAllLockouts={onResetAllLockouts}
/>
)}
<div className="col-span-2 my-3"> <div className="col-span-2 my-3">
<div className="mb-3 border-b border-mineshaft-500 pb-2"> <div className="mb-3 border-b border-mineshaft-500 pb-2">
<span className="text-bunker-300">Client ID</span> <span className="text-bunker-300">Client ID</span>