Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
chore: tighten pam insights layout
bernie-g020fab53bd6b
diff --git a/frontend/src/pages/pam/InsightsPage/InsightsPage.tsx b/frontend/src/pages/pam/InsightsPage/InsightsPage.tsxindex 3dc6d9cdb8..141f6eb34a 100644--- a/frontend/src/pages/pam/InsightsPage/InsightsPage.tsx+++ b/frontend/src/pages/pam/InsightsPage/InsightsPage.tsx@@ -33,9 +33,7 @@ export const InsightsPage = withProjectPermission(</div><div className="flex flex-col gap-6"><PamSessionActivityChart />- <div className="flex-1">- <PamTopActors />- </div>+ <PamTopActors /></div></div></>diff --git a/frontend/src/pages/pam/InsightsPage/components/PamResourceBreakdown.tsx b/frontend/src/pages/pam/InsightsPage/components/PamResourceBreakdown.tsxindex 2224938ec7..cb48219138 100644--- a/frontend/src/pages/pam/InsightsPage/components/PamResourceBreakdown.tsx+++ b/frontend/src/pages/pam/InsightsPage/components/PamResourceBreakdown.tsx@@ -49,8 +49,7 @@ export const PamResourceBreakdown = () => {: null;return {...entry,- displayName: meta?.name ?? entry.resourceType,- image: meta?.image ?? null+ displayName: meta?.name ?? entry.resourceType};});}, [data]);@@ -135,7 +134,7 @@ export const PamResourceBreakdown = () => {</PieChart></ResponsiveContainer></div>- <div className="grid flex-1 grid-cols-[auto_auto_1fr_auto_auto_auto] items-center gap-x-3 gap-y-2">+ <div className="grid flex-1 grid-cols-[auto_1fr_auto_auto_auto] items-center gap-x-3 gap-y-2">{rows.map((entry, index) => {const pct =totalResources > 0 ? Math.round((entry.resourceCount / totalResources) * 100) : 0;@@ -145,15 +144,6 @@ export const PamResourceBreakdown = () => {className="size-2.5 shrink-0 rounded-full"style={{ backgroundColor: COLORS[index % COLORS.length] }}/>- {entry.image ? (- <img- src={`/images/integrations/${entry.image}`}- alt={entry.displayName}- className="size-4 shrink-0 object-contain"- />- ) : (- <span className="size-4 shrink-0 rounded-sm bg-border" />- )}<span className="truncate text-sm" title={entry.displayName}>{entry.displayName}</span>@@ -167,8 +157,7 @@ export const PamResourceBreakdown = () => {</Fragment>);})}- <div className="col-span-6 mt-1 border-t border-border" />- <span />+ <div className="col-span-5 mt-1 border-t border-border" /><span /><span className="text-sm font-medium">Total</span><span />diff --git a/frontend/src/pages/pam/InsightsPage/components/PamTopActors.tsx b/frontend/src/pages/pam/InsightsPage/components/PamTopActors.tsxindex 03b0ab60b2..d7808b2799 100644--- a/frontend/src/pages/pam/InsightsPage/components/PamTopActors.tsx+++ b/frontend/src/pages/pam/InsightsPage/components/PamTopActors.tsx@@ -45,7 +45,7 @@ export const PamTopActors = () => {);}return (- <Table containerClassName="max-h-72">+ <Table><TableHeader className="sticky top-0 z-10 bg-container shadow-[inset_0_-1px_0_var(--color-border)]"><TableRow><TableHead className="w-8" />@@ -100,14 +100,14 @@ export const PamTopActors = () => {};return (- <Card className="h-full">+ <Card><CardHeader><CardTitle>Top Actors</CardTitle><CardDescription>Users & identities initiating the most PAM sessions over the past 30 days</CardDescription></CardHeader>- <CardContent className="flex flex-1 flex-col justify-between gap-4">+ <CardContent className="flex flex-col gap-4">{renderBody()}{!isPending && uniqueActors > 0 && (<span className="text-xs text-muted">