Skip to content

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

UI improvements

Carlos Monastyrski2d7d069a1274
diff --git a/backend/src/services/pki-application/pki-application-membership-service.ts b/backend/src/services/pki-application/pki-application-membership-service.ts
index 7b33821ce3..2bc3c019dc 100644
--- a/backend/src/services/pki-application/pki-application-membership-service.ts
+++ b/backend/src/services/pki-application/pki-application-membership-service.ts
@@ -169,10 +169,6 @@ export const pkiApplicationMembershipServiceFactory = ({
actorOrgId
});
- ForbiddenError.from(permission).throwUnlessCan(
- ResourcePermissionApplicationActions.Edit,
- ResourcePermissionSub.Application
- );
ForbiddenError.from(permission).throwUnlessCan(ProjectPermissionMemberActions.Create, ResourcePermissionSub.Member);
if (!isBuiltInApplicationRole(role)) {
@@ -430,10 +426,6 @@ export const pkiApplicationMembershipServiceFactory = ({
actorOrgId
});
- ForbiddenError.from(permission).throwUnlessCan(
- ResourcePermissionApplicationActions.Edit,
- ResourcePermissionSub.Application
- );
ForbiddenError.from(permission).throwUnlessCan(ProjectPermissionMemberActions.Edit, ResourcePermissionSub.Member);
if (!isBuiltInApplicationRole(role)) {
@@ -496,10 +488,6 @@ export const pkiApplicationMembershipServiceFactory = ({
actorOrgId
});
- ForbiddenError.from(permission).throwUnlessCan(
- ResourcePermissionApplicationActions.Edit,
- ResourcePermissionSub.Application
- );
ForbiddenError.from(permission).throwUnlessCan(ProjectPermissionMemberActions.Delete, ResourcePermissionSub.Member);
const membership = await $findMembershipByMember(applicationId, projectId, kind, memberId);
@@ -567,10 +555,6 @@ export const pkiApplicationMembershipServiceFactory = ({
actorOrgId
});
- ForbiddenError.from(permission).throwUnlessCan(
- ResourcePermissionApplicationActions.Edit,
- ResourcePermissionSub.Application
- );
ForbiddenError.from(permission).throwUnlessCan(ProjectPermissionMemberActions.Create, ResourcePermissionSub.Member);
const usersByEmail = emails.length ? await userDAL.find({ $in: { username: emails } }) : [];
diff --git a/frontend/src/components/features/TtlFormLabel.tsx b/frontend/src/components/features/TtlFormLabel.tsx
index ff7b4f6c17..a67dadcd59 100644
--- a/frontend/src/components/features/TtlFormLabel.tsx
+++ b/frontend/src/components/features/TtlFormLabel.tsx
@@ -1,29 +1,31 @@
import { CircleHelpIcon, ExternalLinkIcon } from "lucide-react";
+import { FormLabel } from "../v2";
import { Tooltip, TooltipContent, TooltipTrigger } from "../v3";
-// To give users example of possible values of TTL
export const TtlFormLabel = ({ label }: { label: string }) => (
- <span className="inline-flex items-center gap-1">
- {label}
- <Tooltip>
- <TooltipTrigger asChild>
- <CircleHelpIcon className="size-3.5 text-muted" />
- </TooltipTrigger>
- <TooltipContent className="max-w-lg">
- <span>
- Examples: 30m, 1h, 3d, etc.{" "}
- <a
- href="https://github.com/vercel/ms?tab=readme-ov-file#examples"
- target="_blank"
- rel="noopener noreferrer"
- className="font-medium"
- >
- <span className="underline underline-offset-2">See More Examples</span>{" "}
- <ExternalLinkIcon className="mb-0.5 inline size-3" />
- </a>
- </span>
- </TooltipContent>
- </Tooltip>
- </span>
+ <FormLabel
+ label={label}
+ icon={
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <CircleHelpIcon className="size-3.5 text-muted" />
+ </TooltipTrigger>
+ <TooltipContent className="max-w-lg">
+ <span>
+ Examples: 30m, 1h, 3d, etc.{" "}
+ <a
+ href="https://github.com/vercel/ms?tab=readme-ov-file#examples"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="font-medium"
+ >
+ <span className="underline underline-offset-2">See More Examples</span>{" "}
+ <ExternalLinkIcon className="mb-0.5 inline size-3" />
+ </a>
+ </span>
+ </TooltipContent>
+ </Tooltip>
+ }
+ />
);
diff --git a/frontend/src/pages/cert-manager/CertificateRequestsPage/components/CertificateRequestRow.tsx b/frontend/src/pages/cert-manager/CertificateRequestsPage/components/CertificateRequestRow.tsx
index 3a113bf3ee..cb5deeb713 100644
--- a/frontend/src/pages/cert-manager/CertificateRequestsPage/components/CertificateRequestRow.tsx
+++ b/frontend/src/pages/cert-manager/CertificateRequestsPage/components/CertificateRequestRow.tsx
@@ -7,17 +7,17 @@ import { ExternalLinkIcon } from "lucide-react";
import { createNotification } from "@app/components/notifications";
import { getCertificateDisplayName } from "@app/components/utilities/certificateDisplayUtils";
import { truncateSerialNumber } from "@app/components/utilities/serialNumberUtils";
+import { Tooltip } from "@app/components/v2";
import {
+ Badge,
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
IconButton,
- Td,
- Tooltip,
- Tr
-} from "@app/components/v2";
-import { Badge } from "@app/components/v3";
+ TableCell,
+ TableRow
+} from "@app/components/v3";
import { useOrganization, useProject } from "@app/context";
import {
CertificateRequestStatus,
@@ -121,45 +121,32 @@ export const CertificateRequestRow = ({ request, onViewCertificates, application
);
return (
- <Tr className="h-10 hover:bg-mineshaft-700">
- <Td>
- <div className="max-w-xs truncate" title={displayName}>
- {displayName}
- </div>
- </Td>
- <Td>
- <div className="max-w-xs truncate" title={request.certificate?.serialNumber || "N/A"}>
- {truncateSerialNumber(request.certificate?.serialNumber)}
- </div>
- </Td>
- <Td>{getStatusBadge(request.status, request.approvalRequestId, request.errorMessage)}</Td>
- <Td>
- <div className="max-w-xs truncate">{request.profileName || "N/A"}</div>
- </Td>
- <Td>
+ <TableRow className="group">
+ <TableCell isTruncatable>{displayName}</TableCell>
+ <TableCell isTruncatable>
+ {truncateSerialNumber(request.certificate?.serialNumber) || "—"}
+ </TableCell>
+ <TableCell>
+ {getStatusBadge(request.status, request.approvalRequestId, request.errorMessage)}
+ </TableCell>
+ <TableCell isTruncatable>{request.profileName || "—"}</TableCell>
+ <TableCell className="whitespace-nowrap text-accent">
<Tooltip content={format(new Date(request.createdAt), "MMM dd, yyyy HH:mm:ss")}>
<time dateTime={request.createdAt}>
{format(new Date(request.createdAt), "yyyy-MM-dd")}
</time>
</Tooltip>
- </Td>
- <Td>
+ </TableCell>
+ <TableCell>
{request.status === CertificateRequestStatus.ISSUED && request.certificateId && (
<DropdownMenu>
- <DropdownMenuTrigger asChild className="rounded-lg">
- <IconButton
- variant="plain"
- ariaLabel="More options"
- className="h-max bg-transparent p-0"
- >
- <FontAwesomeIcon size="lg" icon={faEllipsis} />
+ <DropdownMenuTrigger asChild>
+ <IconButton variant="ghost" size="xs" aria-label="Request actions">
+ <FontAwesomeIcon icon={faEllipsis} />
</IconButton>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" sideOffset={3}>
- <DropdownMenuItem
- onClick={() => onViewCertificates?.(request.certificateId!)}
- className="flex items-center gap-2"
- >
+ <DropdownMenuItem onClick={() => onViewCertificates?.(request.certificateId!)}>
View Certificate
</DropdownMenuItem>
</DropdownMenuContent>
@@ -167,27 +154,19 @@ export const CertificateRequestRow = ({ request, onViewCertificates, application
)}
{request.status === CertificateRequestStatus.PENDING_VALIDATION && (
<DropdownMenu>
- <DropdownMenuTrigger asChild className="rounded-lg">
- <IconButton
- variant="plain"
- ariaLabel="More options"
- className="h-max bg-transparent p-0"
- >
- <FontAwesomeIcon size="lg" icon={faEllipsis} />
+ <DropdownMenuTrigger asChild>
+ <IconButton variant="ghost" size="xs" aria-label="Request actions">
+ <FontAwesomeIcon icon={faEllipsis} />
</IconButton>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" sideOffset={3}>
- <DropdownMenuItem
- onClick={handleTriggerValidation}
- isDisabled={isTriggering}
- className="flex items-center gap-2"
- >
+ <DropdownMenuItem onClick={handleTriggerValidation} isDisabled={isTriggering}>
{isTriggering ? "Triggering…" : "Trigger Validation"}
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
)}
- </Td>
- </Tr>
+ </TableCell>
+ </TableRow>
);
};
diff --git a/frontend/src/pages/cert-manager/CertificateRequestsPage/components/CertificateRequestsSection.tsx b/frontend/src/pages/cert-manager/CertificateRequestsPage/components/CertificateRequestsSection.tsx
index c9936a2ff7..86ca8076ad 100644
--- a/frontend/src/pages/cert-manager/CertificateRequestsPage/components/CertificateRequestsSection.tsx
+++ b/frontend/src/pages/cert-manager/CertificateRequestsPage/components/CertificateRequestsSection.tsx
@@ -1,29 +1,35 @@
/* eslint-disable jsx-a11y/label-has-associated-control */
import { useEffect, useMemo, useState } from "react";
-import { faFilter, faMagnifyingGlass, faPlus } from "@fortawesome/free-solid-svg-icons";
+import { faFilter, faPlus } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import { SearchIcon } from "lucide-react";
import { twMerge } from "tailwind-merge";
+import { FilterableSelect, Select, SelectItem, Tooltip } from "@app/components/v2";
import {
Button,
+ Card,
+ CardAction,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
DropdownMenu,
DropdownMenuContent,
DropdownMenuTrigger,
- FilterableSelect,
IconButton,
- Input,
+ InputGroup,
+ InputGroupAddon,
+ InputGroupInput,
Pagination,
- Select,
- SelectItem,
+ Skeleton,
Table,
- TableContainer,
- TableSkeleton,
- TBody,
- Th,
- THead,
- Tooltip,
- Tr
-} from "@app/components/v2";
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow
+} from "@app/components/v3";
import {
ProjectPermissionCertificateActions,
ProjectPermissionSub,
@@ -208,14 +214,15 @@ export const CertificateRequestsSection = ({
]);
return (
- <div className="w-full rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
- <div className="mb-4 flex flex-wrap items-center justify-between gap-y-2">
- <div>
- <div className="flex items-center gap-x-2 whitespace-nowrap">
- <p className="text-xl font-medium text-mineshaft-100">Certificate Requests</p>
- </div>
- </div>
- <div className="flex gap-2">
+ <Card className="mb-6">
+ <CardHeader>
+ <CardTitle>Certificate Requests</CardTitle>
+ <CardDescription>
+ {applicationId
+ ? "View, filter, and manage certificate issuance requests against this application"
+ : "Track certificate issuance requests across this project."}
+ </CardDescription>
+ <CardAction>
<Tooltip
content={
canRequestCertificate
@@ -226,223 +233,228 @@ export const CertificateRequestsSection = ({
>
<span>
<Button
- colorSchema="primary"
- type="submit"
- leftIcon={<FontAwesomeIcon icon={faPlus} />}
+ variant="outline"
onClick={() => handlePopUpOpen("issueCertificate")}
- isDisabled={!canRequestCertificate}
+ disabled={!canRequestCertificate}
>
+ <FontAwesomeIcon icon={faPlus} className="mr-1.5 size-3.5" />
Request
</Button>
</span>
</Tooltip>
- </div>
- </div>
-
- <div className="mb-4 flex gap-2">
- <Input
- value={pendingSearch}
- onChange={(e) => setPendingSearch(e.target.value)}
- leftIcon={<FontAwesomeIcon icon={faMagnifyingGlass} />}
- placeholder="Search by SAN or CN"
- className="flex-1"
- />
- <DropdownMenu>
- <DropdownMenuTrigger asChild>
- <IconButton
- ariaLabel="Filter Certificate Requests"
- variant="plain"
- size="sm"
- className={twMerge(
- "flex h-10 w-11 items-center justify-center overflow-hidden border border-mineshaft-600 bg-mineshaft-800 p-0 transition-all hover:border-primary/60 hover:bg-primary/10",
- isTableFiltered && "border-primary/50 text-primary"
- )}
+ </CardAction>
+ </CardHeader>
+ <CardContent>
+ <div className="mb-4 flex items-center gap-2">
+ <InputGroup className="flex-1">
+ <InputGroupAddon>
+ <SearchIcon />
+ </InputGroupAddon>
+ <InputGroupInput
+ value={pendingSearch}
+ onChange={(e) => setPendingSearch(e.target.value)}
+ placeholder="Search by SAN, CN, or Serial Number"
+ />
+ </InputGroup>
+
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <IconButton
+ aria-label="Filter Certificate Requests"
+ variant={isTableFiltered ? "project" : "outline"}
+ size="md"
+ className={twMerge(isTableFiltered && "text-primary")}
+ >
+ <FontAwesomeIcon icon={faFilter} />
+ </IconButton>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent
+ sideOffset={2}
+ className="max-h-[70vh] thin-scrollbar w-80 overflow-y-auto p-4"
+ align="end"
>
- <FontAwesomeIcon icon={faFilter} />
- </IconButton>
- </DropdownMenuTrigger>
- <DropdownMenuContent
- sideOffset={2}
- className="max-h-[70vh] thin-scrollbar w-80 overflow-y-auto p-4"
- align="end"
- >
- <div className="space-y-4">
- <div className="flex items-center justify-between">
- <h3 className="text-sm font-medium text-mineshaft-100">Filters</h3>
- <span className="text-xs text-bunker-300">
- {isTableFiltered && (
- <button
- type="button"
- onClick={handleClearFilters}
- className="cursor-pointer text-primary hover:text-primary-600"
- >
- Clear filters
- </button>
- )}
- </span>
- </div>
-
- <div className="space-y-2">
+ <div className="space-y-4">
<div className="flex items-center justify-between">
- <span className="text-xs font-medium text-bunker-300 uppercase">
- Certificate Profiles
+ <h3 className="text-sm font-medium text-mineshaft-100">Filters</h3>
+ <span className="text-xs text-bunker-300">
+ {isTableFiltered && (
+ <button
+ type="button"
+ onClick={handleClearFilters}
+ className="cursor-pointer text-primary hover:text-primary-600"
+ >
+ Clear filters
+ </button>
+ )}
</span>
- {pendingProfileIds.length > 0 && (
- <button
- type="button"
- onClick={handleClearProfiles}
- className="cursor-pointer text-xs text-primary hover:text-primary-600"
- >
- Clear
- </button>
- )}
</div>
- <FilterableSelect
- value={pendingProfileIds.map((id) => ({
- value: id,
- label: profilesData?.certificateProfiles?.find((p) => p.id === id)?.slug || id
- }))}
- onChange={(selectedOptions) => {
- const ids = Array.isArray(selectedOptions)
- ? selectedOptions.map((opt) => opt.value)
- : [];
- setPendingProfileIds(ids);
- }}
- options={
- profilesData?.certificateProfiles?.map((profile) => ({
- value: profile.id,
- label: profile.slug
- })) || []
- }
- placeholder="Select certificate profiles..."
- className="w-full border-mineshaft-600 bg-mineshaft-700 text-bunker-200"
- isMulti
- isLoading={!profilesData}
- maxMenuHeight={120}
+
+ <div className="space-y-2">
+ <div className="flex items-center justify-between">
+ <span className="text-xs font-medium text-bunker-300 uppercase">
+ Certificate Profiles
+ </span>
+ {pendingProfileIds.length > 0 && (
+ <button
+ type="button"
+ onClick={handleClearProfiles}
+ className="cursor-pointer text-xs text-primary hover:text-primary-600"
+ >
+ Clear
+ </button>
+ )}
+ </div>
+ <FilterableSelect
+ value={pendingProfileIds.map((id) => ({
+ value: id,
+ label: profilesData?.certificateProfiles?.find((p) => p.id === id)?.slug || id
+ }))}
+ onChange={(selectedOptions) => {
+ const ids = Array.isArray(selectedOptions)
+ ? selectedOptions.map((opt) => opt.value)
+ : [];
+ setPendingProfileIds(ids);
+ }}
+ options={
+ profilesData?.certificateProfiles?.map((profile) => ({
+ value: profile.id,
+ label: profile.slug
+ })) || []
+ }
+ placeholder="Select certificate profiles..."
+ className="w-full border-mineshaft-600 bg-mineshaft-700 text-bunker-200"
+ isMulti
+ isLoading={!profilesData}
+ maxMenuHeight={120}
+ />
+ </div>
+
+ <div className="space-y-2">
+ <div className="flex items-center justify-between">
+ <label className="text-xs font-medium text-bunker-300 uppercase">Events</label>
+ {pendingFilters.status && (
+ <button
+ type="button"
+ onClick={handleClearStatus}
+ className="cursor-pointer text-xs text-primary hover:text-primary-600"
+ >
+ Clear
+ </button>
+ )}
+ </div>
+ <Select
+ value={pendingFilters.status || "all"}
+ onValueChange={(value: string) => {
+ setPendingFilters((prev) => ({
+ ...prev,
+ status: value === "all" ? undefined : (value as CertificateRequestStatus)
+ }));
+ }}
+ placeholder="All events"
+ className="w-full border-mineshaft-600 bg-mineshaft-700 text-bunker-200"
+ position="popper"
+ dropdownContainerClassName="max-w-none"
+ >
+ <SelectItem value="all">All events</SelectItem>
+ <SelectItem value="pending">Pending</SelectItem>
+ <SelectItem value="issued">Issued</SelectItem>
+ <SelectItem value="failed">Failed</SelectItem>
+ </Select>
+ </div>
+
+ <MetadataFilterSection
+ entries={pendingMetadataFilters}
+ onChange={setPendingMetadataFilters}
/>
- </div>
- <div className="space-y-2">
- <div className="flex items-center justify-between">
- <label className="text-xs font-medium text-bunker-300 uppercase">Events</label>
- {pendingFilters.status && (
- <button
- type="button"
- onClick={handleClearStatus}
- className="cursor-pointer text-xs text-primary hover:text-primary-600"
- >
- Clear
- </button>
- )}
+ <div className="pt-2">
+ <Button
+ onClick={handleApplyFilters}
+ className="w-full"
+ variant="project"
+ size="sm"
+ isDisabled={!hasPendingChanges}
+ >
+ Apply
+ </Button>
</div>
- <Select
- value={pendingFilters.status || "all"}
- onValueChange={(value: string) => {
- setPendingFilters((prev) => ({
- ...prev,
- status: value === "all" ? undefined : (value as CertificateRequestStatus)
- }));
- }}
- placeholder="All events"
- className="w-full border-mineshaft-600 bg-mineshaft-700 text-bunker-200"
- position="popper"
- dropdownContainerClassName="max-w-none"
- >
- <SelectItem value="all">All events</SelectItem>
- <SelectItem value="pending">Pending</SelectItem>
- <SelectItem value="issued">Issued</SelectItem>
- <SelectItem value="failed">Failed</SelectItem>
- </Select>
</div>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </div>
- <MetadataFilterSection
- entries={pendingMetadataFilters}
- onChange={setPendingMetadataFilters}
- />
-
- <div className="pt-2">
- <Button
- onClick={handleApplyFilters}
- className="w-full bg-primary font-medium text-black hover:bg-primary-600"
- size="sm"
- isDisabled={!hasPendingChanges}
- >
- Apply
- </Button>
- </div>
- </div>
- </DropdownMenuContent>
- </DropdownMenu>
- </div>
-
- <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-800">
- <TableContainer>
- <Table>
- <THead>
- <Tr>
- <Th className="text-xs font-medium text-bunker-300 uppercase">SAN / CN</Th>
- <Th className="text-xs font-medium text-bunker-300 uppercase">SERIAL NUMBER</Th>
- <Th className="text-xs font-medium text-bunker-300 uppercase">STATUS</Th>
- <Th className="text-xs font-medium text-bunker-300 uppercase">PROFILE</Th>
- <Th className="text-xs font-medium text-bunker-300 uppercase">CREATED AT</Th>
- <Th className="text-xs font-medium text-bunker-300 uppercase" />
- </Tr>
- </THead>
- <TBody>
- {isLoading && <TableSkeleton columns={7} innerKey="certificate-requests-loading" />}
- {isError && (
- <Tr>
- <td colSpan={7} className="py-8 text-center text-red-400">
- Failed to load certificate requests. Please try again.
- </td>
- </Tr>
+ <Table>
+ <TableHeader>
+ <TableRow>
+ <TableHead className="max-w-[200px] min-w-[120px]">SAN / CN</TableHead>
+ <TableHead className="max-w-[120px] min-w-[90px]">Serial #</TableHead>
+ <TableHead className="w-[120px]">Status</TableHead>
+ <TableHead className="max-w-[140px] min-w-[80px]">Profile</TableHead>
+ <TableHead className="w-[110px]">Created</TableHead>
+ <TableHead className="w-5" />
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {isLoading &&
+ Array.from({ length: 6 }).map((_, i) => (
+ <TableRow key={`request-skeleton-${i + 1}`}>
+ {Array.from({ length: 6 }).map((__, j) => (
+ <TableCell key={`request-skeleton-cell-${j + 1}`}>
+ <Skeleton className="h-4 w-full" />
+ </TableCell>
+ ))}
+ </TableRow>
+ ))}
+ {!isLoading && isError && (
+ <TableRow>
+ <TableCell colSpan={6} className="py-8 text-center text-red-400">
+ Failed to load certificate requests. Please try again.
+ </TableCell>
+ </TableRow>
+ )}
+ {!isLoading &&
+ !isError &&
+ certificateRequestsData?.certificateRequests?.length === 0 && (
+ <TableRow>
+ <TableCell colSpan={6} className="py-8 text-center text-accent">
+ {isTableFiltered
+ ? "No certificate requests found matching your filters"
+ : "No certificate requests found"}
+ </TableCell>
+ </TableRow>
)}
- {!isLoading &&
- !isError &&
- certificateRequestsData?.certificateRequests?.length === 0 && (
- <Tr>
- <td colSpan={7} className="py-8 text-center text-bunker-300">
- {isTableFiltered
- ? "No certificate requests found matching your filters"
- : "No certificate requests found"}
- </td>
- </Tr>
- )}
- {!isLoading &&
- !isError &&
- certificateRequestsData?.certificateRequests?.map((request) => (
- <CertificateRequestRow
- key={request.id}
- request={request}
- onViewCertificates={handleViewCertificates}
- applicationName={applicationName}
- />
- ))}
- </TBody>
- </Table>
- </TableContainer>
+ {!isLoading &&
+ !isError &&
+ certificateRequestsData?.certificateRequests?.map((request) => (
+ <CertificateRequestRow
+ key={request.id}
+ request={request}
+ onViewCertificates={handleViewCertificates}
+ applicationName={applicationName}
+ />
+ ))}
+ </TableBody>
+ </Table>
{certificateRequestsData && certificateRequestsData.totalCount > 0 && (
- <div className="flex items-center justify-between">
- <Pagination
- count={certificateRequestsData.totalCount}
- page={currentPage}
- perPage={perPage}
- onChangePage={(page) => setCurrentPage(page)}
- onChangePerPage={(newPerPage) => {
- setCurrentPage(1);
- setPerPage(newPerPage);
- }}
- />
- </div>
+ <Pagination
+ count={certificateRequestsData.totalCount}
+ page={currentPage}
+ perPage={perPage}
+ onChangePage={(page) => setCurrentPage(page)}
+ onChangePerPage={(newPerPage) => {
+ setCurrentPage(1);
+ setPerPage(newPerPage);
+ }}
+ />
)}
- </div>
+ </CardContent>
<CertificateIssuanceModal
popUp={popUp}
handlePopUpToggle={handlePopUpToggle}
applicationId={applicationId}
/>
- </div>
+ </Card>
);
};
diff --git a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CertificateProfilesTab.tsx b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CertificateProfilesTab.tsx
index 55f3408541..c0cd0a2416 100644
--- a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CertificateProfilesTab.tsx
+++ b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CertificateProfilesTab.tsx
@@ -68,8 +68,7 @@ export const CertificateProfilesTab = () => {
<DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/pki/certificates/profiles" />
</div>
<p className="text-sm text-bunker-300">
- Unified certificate issuance configurations combining CA, certificate policy, and
- enrollment method
+ Unified certificate issuance configurations combining CAs and certificate policies
</p>
</div>
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionsTable.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionsTable.tsx
index d3c3be8556..e412a6e779 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionsTable.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionsTable.tsx
@@ -85,6 +85,7 @@ type Props = {
export const AppConnectionsTable = ({ projectId, projectType }: Props) => {
const isProjectView = Boolean(projectId);
+ const isCertManagerView = projectType === ProjectType.CertificateManager;
const { isPending, data: appConnections = [] } = useListAppConnections(projectId);
const rotateCredentials = useRotateAppConnectionCredentials();
const updateAppConnection = useUpdateAppConnection();
@@ -263,8 +264,11 @@ export const AppConnectionsTable = ({ projectId, projectType }: Props) => {
<DocumentationLinkBadge href="https://infisical.com/docs/integrations/app-connections/overview" />
</div>
<p className="text-sm text-bunker-300">
- Create and configure connections with third-party apps for re-use across your project
- {isProjectView ? "" : "s"}.
+ {isCertManagerView
+ ? "Create and configure connections with third-party apps for re-use across Certificate Manager."
+ : `Create and configure connections with third-party apps for re-use across your project${
+ isProjectView ? "" : "s"
+ }.`}
</p>
</div>
<VariablePermissionCan
diff --git a/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx b/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx
index cad61ce63a..7c26517bfb 100644
--- a/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx
+++ b/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx
@@ -45,10 +45,10 @@ const Page = () => {
<div className="mx-auto mb-6 w-full max-w-8xl">
<PageHeader
scope={currentProject.type}
- title={isCertManager ? "Certificate Manager Access Control" : "Project Access Control"}
+ title={isCertManager ? "Access Control" : "Project Access Control"}
description={
isCertManager
- ? "Manage fine-grained access for users, groups, roles, and machine identities within your Certificate Manager."
+ ? "Manage fine-grained access for users, groups, and machine identities."
: "Manage fine-grained access for users, groups, roles, and machine identities within your project resources."
}
>
diff --git a/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsSection.tsx b/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsSection.tsx
index 45dad5f3bc..92546ac881 100644
--- a/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsSection.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsSection.tsx
@@ -72,10 +72,14 @@ export const GroupsSection = () => {
<Card>
<CardHeader>
<CardTitle>
- {`${productLabel} Groups`}
+ {isCertManager ? "Groups" : `${productLabel} Groups`}
<DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/groups#user-groups" />
</CardTitle>
- <CardDescription>{`Add and manage ${productLabel.toLowerCase()} groups`}</CardDescription>
+ <CardDescription>
+ {isCertManager
+ ? "Add and manage groups"
+ : `Add and manage ${productLabel.toLowerCase()} groups`}
+ </CardDescription>
<CardAction>
<ProjectPermissionCan
I={ProjectPermissionActions.Create}
diff --git a/frontend/src/pages/project/AccessControlPage/components/IdentityTab/IdentityTab.tsx b/frontend/src/pages/project/AccessControlPage/components/IdentityTab/IdentityTab.tsx
index dbd29acc5a..5edf424bfb 100644
--- a/frontend/src/pages/project/AccessControlPage/components/IdentityTab/IdentityTab.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/IdentityTab/IdentityTab.tsx
@@ -229,10 +229,14 @@ export const IdentityTab = withProjectPermission(
<Card>
<CardHeader>
<CardTitle>
- {productLabel} Machine Identities
+ {isCertManager ? "Machine Identities" : `${productLabel} Machine Identities`}
<DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/identities/machine-identities" />
</CardTitle>
- <CardDescription>{`Create and manage ${productLabel.toLowerCase()} machine identities`}</CardDescription>
+ <CardDescription>
+ {isCertManager
+ ? "Create and manage machine identities"
+ : `Create and manage ${productLabel.toLowerCase()} machine identities`}
+ </CardDescription>
<CardAction>
<ProjectPermissionCan
I={ProjectPermissionActions.Create}
@@ -277,7 +281,9 @@ export const IdentityTab = withProjectPermission(
</IconButton>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
- <DropdownMenuLabel>{`Filter by ${productLabel} Role`}</DropdownMenuLabel>
+ <DropdownMenuLabel>
+ {isCertManager ? "Filter by Role" : `Filter by ${productLabel} Role`}
+ </DropdownMenuLabel>
{projectRoles?.map(({ id, slug, name }) => (
<DropdownMenuCheckboxItem
key={id}
@@ -331,7 +337,9 @@ export const IdentityTab = withProjectPermission(
)}
/>
</TableHead>
- <TableHead className="w-1/3">{`${productLabel} Role`}</TableHead>
+ <TableHead className="w-1/3">
+ {isCertManager ? "Role" : `${productLabel} Role`}
+ </TableHead>
<TableHead>Managed by</TableHead>
<TableHead className="w-5">
{isFetching ? <Spinner size="xs" /> : null}
diff --git a/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersSection.tsx b/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersSection.tsx
index e936bfc2de..eff96ad6a8 100644
--- a/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersSection.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersSection.tsx
@@ -62,10 +62,14 @@ export const MembersSection = () => {
<Card>
<CardHeader>
<CardTitle>
- {`${productLabel} Users`}
+ {isCertManager ? "Users" : `${productLabel} Users`}
<DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/identities/user-identities" />
</CardTitle>
- <CardDescription>{`Invite and manage ${productLabel.toLowerCase()} users`}</CardDescription>
+ <CardDescription>
+ {isCertManager
+ ? "Invite and manage users"
+ : `Invite and manage ${productLabel.toLowerCase()} users`}
+ </CardDescription>
<CardAction>
<ProjectPermissionCan
I={ProjectPermissionActions.Create}
diff --git a/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersTable.tsx b/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersTable.tsx
index 227e5da5de..3445f15afb 100644
--- a/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersTable.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersTable.tsx
@@ -204,7 +204,9 @@ export const MembersTable = ({ handlePopUpOpen }: Props) => {
</IconButton>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
- <DropdownMenuLabel>{`Filter by ${productLabel} Role`}</DropdownMenuLabel>
+ <DropdownMenuLabel>
+ {isCertManager ? "Filter by Role" : `Filter by ${productLabel} Role`}
+ </DropdownMenuLabel>
{projectRoles?.map(({ id, slug, name }) => (
<DropdownMenuCheckboxItem
key={id}
@@ -270,7 +272,7 @@ export const MembersTable = ({ handlePopUpOpen }: Props) => {
)}
/>
</TableHead>
- <TableHead>{`${productLabel} Role`}</TableHead>
+ <TableHead>{isCertManager ? "Role" : `${productLabel} Role`}</TableHead>
<TableHead className="w-5" />
</TableRow>
</TableHeader>