mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-09 07:28:09 -05:00
improve some wording & hide max request TTL for simplicity
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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 "Create" to save this policy or
|
||||
"Back" to make changes.
|
||||
Please review all the details above. Submit to save this policy or go back to make
|
||||
changes.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user