Skip to content

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

fix(pki-discovery): tooltip for truncated certificate names

bernie-g7b8391a3721b
diff --git a/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/components/DiscoveryInstallationsSection.tsx b/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/components/DiscoveryInstallationsSection.tsx
index 83a396f323..ceb54bed3b 100644
--- a/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/components/DiscoveryInstallationsSection.tsx
+++ b/frontend/src/pages/cert-manager/DiscoveryDetailsByIDPage/components/DiscoveryInstallationsSection.tsx
@@ -19,7 +19,10 @@ import {
TableCell,
TableHead,
TableHeader,
- TableRow
+ TableRow,
+ Tooltip,
+ TooltipContent,
+ TooltipTrigger
} from "@app/components/v3";
import { useProject } from "@app/context";
import { getInstancePinningLink } from "@app/helpers/project";
@@ -99,11 +102,17 @@ export const DiscoveryInstallationsSection = ({ discoveryId, projectId, isScanRu
{installation.name || getEndpoint(installation)}
</RowLink>
</TableCell>
- <TableCell
- className="max-w-44 truncate"
- title={installation.primaryCertName ?? undefined}
- >
- {installation.primaryCertName || "N/A"}
+ <TableCell className="max-w-44">
+ {installation.primaryCertName ? (
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <span className="block truncate">{installation.primaryCertName}</span>
+ </TooltipTrigger>
+ <TooltipContent>{installation.primaryCertName}</TooltipContent>
+ </Tooltip>
+ ) : (
+ "N/A"
+ )}
</TableCell>
<TableCell>{getGatewayLabel(installation) || "N/A"}</TableCell>
<TableCell>
diff --git a/frontend/src/pages/cert-manager/DiscoveryPage/components/InstallationsTab.tsx b/frontend/src/pages/cert-manager/DiscoveryPage/components/InstallationsTab.tsx
index 452ea50ebf..6563f8f8c8 100644
--- a/frontend/src/pages/cert-manager/DiscoveryPage/components/InstallationsTab.tsx
+++ b/frontend/src/pages/cert-manager/DiscoveryPage/components/InstallationsTab.tsx
@@ -29,7 +29,10 @@ import {
TableCell,
TableHead,
TableHeader,
- TableRow
+ TableRow,
+ Tooltip,
+ TooltipContent,
+ TooltipTrigger
} from "@app/components/v3";
import {
ProjectPermissionPkiCertificateInstallationActions,
@@ -202,11 +205,17 @@ export const InstallationsTab = ({ projectId }: Props) => {
{getKeystoreStatusBadge(installation)}
</div>
</TableCell>
- <TableCell
- className="max-w-56 truncate"
- title={installation.primaryCertName ?? undefined}
- >
- {installation.primaryCertName || <span className="text-accent">—</span>}
+ <TableCell className="max-w-56">
+ {installation.primaryCertName ? (
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <span className="block truncate">{installation.primaryCertName}</span>
+ </TooltipTrigger>
+ <TooltipContent>{installation.primaryCertName}</TooltipContent>
+ </Tooltip>
+ ) : (
+ <span className="text-accent">—</span>
+ )}
</TableCell>
<TableCell>{getGatewayLabel(installation) || "N/A"}</TableCell>
<TableCell>