improve some wording & hide max request TTL for simplicity

This commit is contained in:
x032205
2025-12-09 11:56:41 -05:00
parent f3291ead8d
commit d4609829fa
3 changed files with 10 additions and 10 deletions

View File

@@ -98,9 +98,7 @@ export const PoliciesTable = ({ handlePopUpOpen }: Props) => {
<Tr>
<Th className="w-10" />
<Th>Policy Name</Th>
<Th>Max Approval Request TTL</Th>
<Th>Min Access Duration</Th>
<Th>Max Access Duration</Th>
<Th>Access Duration (min - max)</Th>
<Th>Conditions</Th>
<Th className="w-5" />
</Tr>
@@ -117,7 +115,6 @@ export const PoliciesTable = ({ handlePopUpOpen }: Props) => {
{!isPoliciesLoading &&
policies.map((policy) => {
const isExpanded = expandedRows.has(policy.id);
const maxTtl = policy.maxRequestTtl ? policy.maxRequestTtl : "No limit";
const conditionsCount = policy.conditions.conditions.length;
return (
@@ -144,9 +141,10 @@ export const PoliciesTable = ({ handlePopUpOpen }: Props) => {
</IconButton>
</Td>
<Td>{policy.name}</Td>
<Td>{maxTtl}</Td>
<Td>{policy.constraints.constraints.accessDuration.min}</Td>
<Td>{policy.constraints.constraints.accessDuration.max}</Td>
<Td>
{policy.constraints.constraints.accessDuration.min} -{" "}
{policy.constraints.constraints.accessDuration.max}
</Td>
<Td>
{conditionsCount} condition{conditionsCount !== 1 ? "s" : ""}
</Td>

View File

@@ -24,7 +24,8 @@ export const PolicyDetailsStep = () => {
</FormControl>
)}
/>
<Controller
{/*
<Controller
control={control}
name="maxRequestTtl"
render={({ field, fieldState: { error } }) => (
@@ -38,6 +39,7 @@ export const PolicyDetailsStep = () => {
</FormControl>
)}
/>
*/}
<div className="border-t border-mineshaft-600 pt-4">
<div className="mb-3">
<p className="pb-0.5 text-sm font-medium text-mineshaft-200">

View File

@@ -187,8 +187,8 @@ export const PolicyReviewStep = () => {
{/* Summary Notice */}
<div className="rounded-md border border-primary/30 bg-primary/5 p-3">
<p className="text-xs text-mineshaft-300">
Please review all the details above. Click &quot;Create&quot; to save this policy or
&quot;Back&quot; to make changes.
Please review all the details above. Submit to save this policy or go back to make
changes.
</p>
</div>
</div>