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: UX improvements
varonixfc1d73339331
diff --git a/frontend/src/hooks/api/secretInsights/queries.tsx b/frontend/src/hooks/api/secretInsights/queries.tsxindex 98d99544ef..58b76afe07 100644--- a/frontend/src/hooks/api/secretInsights/queries.tsx+++ b/frontend/src/hooks/api/secretInsights/queries.tsx@@ -246,7 +246,7 @@ export const useGetSecretBlindIndexStatus = (// Org-scoped insights hooks. The endpoints have no :projectId — the backend resolves the// org from the auth token, so the hooks only take orgId to key the cache.-export const useGetOrgSecretsSummary = (orgId: string) => {+export const useGetOrgSecretsSummary = (orgId: string, options?: { enabled?: boolean }) => {return useQuery({queryKey: secretInsightsKeys.orgSecretsSummary(orgId),queryFn: async () => {@@ -255,12 +255,16 @@ export const useGetOrgSecretsSummary = (orgId: string) => {);return data.usageInsights;},- enabled: Boolean(orgId),+ enabled: Boolean(orgId) && (options?.enabled ?? true),staleTime: INSIGHTS_STALE_TIME});};-export const useGetOrgSecretsProjects = (orgId: string, params: TGetOrgSecretsProjectsDTO = {}) => {+export const useGetOrgSecretsProjects = (+ orgId: string,+ params: TGetOrgSecretsProjectsDTO = {},+ options?: { enabled?: boolean }+) => {return useInfiniteQuery({queryKey: secretInsightsKeys.orgSecretsProjects(orgId, params),initialPageParam: 0,@@ -276,7 +280,7 @@ export const useGetOrgSecretsProjects = (orgId: string, params: TGetOrgSecretsPrconst nextOffset = lastPage.offset + lastPage.projects.length;return nextOffset < lastPage.totalProjects ? nextOffset : undefined;},- enabled: Boolean(orgId),+ enabled: Boolean(orgId) && (options?.enabled ?? true),staleTime: INSIGHTS_STALE_TIME});};@@ -295,7 +299,7 @@ export const useGetOrgAuthMethodDistribution = (orgId: string, options?: { enabl});};-export const useGetOrgStaticSecretsUsage = (orgId: string) => {+export const useGetOrgStaticSecretsUsage = (orgId: string, options?: { enabled?: boolean }) => {return useQuery({queryKey: secretInsightsKeys.orgStaticSecretsUsage(orgId),queryFn: async () => {@@ -304,7 +308,7 @@ export const useGetOrgStaticSecretsUsage = (orgId: string) => {);return data.staticSecretUsage;},- enabled: Boolean(orgId),+ enabled: Boolean(orgId) && (options?.enabled ?? true),staleTime: INSIGHTS_STALE_TIME});};diff --git a/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsx b/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsxindex f685f8a084..c50c69eabe 100644--- a/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsx+++ b/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsx@@ -1,11 +1,16 @@-import { useMemo } from "react";+import { useEffect, useMemo } from "react";import { Helmet } from "react-helmet";+import { Link } from "@tanstack/react-router";import { format } from "date-fns";-import { FileTextIcon } from "lucide-react";+import { FileTextIcon, LockIcon } from "lucide-react";+import { UpgradePlanModal } from "@app/components/license/UpgradePlanModal";import { OrgPermissionCan } from "@app/components/permissions";import { PageHeader } from "@app/components/v2";import {+ Alert,+ AlertDescription,+ AlertTitle,Button,Skeleton,Tooltip,@@ -13,12 +18,22 @@ import {TooltipProvider,TooltipTrigger} from "@app/components/v3";-import { OrgPermissionSubjects, useOrganization, useServerConfig } from "@app/context";+import {+ OrgPermissionSubjects,+ useOrganization,+ useServerConfig,+ useSubscription+} from "@app/context";import { OrgPermissionSecretsManagementInsightsActions } from "@app/context/OrgPermissionContext/types";import { withPermission } from "@app/hoc";import { usePopUp } from "@app/hooks";import {AuditReportStatus,+ TOrgAuthMethodUsage,+ TOrgProjectsInsights,+ TOrgSecretAccessVolume,+ TOrgSecretsSummary,+ TOrgStaticSecretUsage,useGetOrgAuditReports,useGetOrgAuthMethodDistribution,useGetOrgSecretsAccessVolume,@@ -40,20 +55,39 @@ import {const SENT_REPORT_STATUSES = [AuditReportStatus.Completed, AuditReportStatus.Partial];const IN_FLIGHT_REPORT_STATUSES = [AuditReportStatus.Pending, AuditReportStatus.Processing];+// Every insights endpoint is gated on the same entitlement, so without it there is nothing to+// fetch. The cards render from these zeroed payloads and fall back to their own empty states, so+// the page keeps its shape behind the upgrade prompt instead of collapsing to a blank screen.+const PLAN_LOCKED_SUMMARY: TOrgSecretsSummary = { activeLeases: 0, users: 0, identities: 0 };+const PLAN_LOCKED_PROJECTS: TOrgProjectsInsights = {+ projects: [],+ totalProjects: 0,+ projectsWithIssues: 0,+ offset: 0,+ limit: 0+};+const PLAN_LOCKED_AUTH_METHODS: TOrgAuthMethodUsage = { totalFetches: 0, methods: [] };+const PLAN_LOCKED_STATIC_SECRETS: TOrgStaticSecretUsage = { weeks: [] };+const PLAN_LOCKED_ACCESS_VOLUME: TOrgSecretAccessVolume = { days: [] };+export const SecretInsightsPage = withPermission(() => {const { currentOrg } = useOrganization();const { config } = useServerConfig();+ const { subscription } = useSubscription();const isClickhouseEnabled = Boolean(config.isClickhouseAuditLogEnabled);+ const hasInsightsPlan = Boolean(subscription?.secretAccessInsights);- const { data: summary, isPending: isSummaryPending } = useGetOrgSecretsSummary(currentOrg.id);+ const { data: summary, isPending: isSummaryPending } = useGetOrgSecretsSummary(currentOrg.id, {+ enabled: hasInsightsPlan+ });const {data: projectsPages,isPending: isProjectsPending,hasNextPage: hasMoreProjects,fetchNextPage: fetchMoreProjects,isFetchingNextPage: isFetchingMoreProjects- } = useGetOrgSecretsProjects(currentOrg.id, { limit: 100 });+ } = useGetOrgSecretsProjects(currentOrg.id, { limit: 100 }, { enabled: hasInsightsPlan });const projectsInsights = useMemo(() => {if (!projectsPages) return undefined;@@ -76,18 +110,26 @@ export const SecretInsightsPage = withPermission(};}, [projectsPages]);const { data: authMethodUsage, isPending: isAuthMethodsPending } =- useGetOrgAuthMethodDistribution(currentOrg.id, { enabled: isClickhouseEnabled });+ useGetOrgAuthMethodDistribution(currentOrg.id, {+ enabled: isClickhouseEnabled && hasInsightsPlan+ });const { data: staticSecretUsage, isPending: isStaticSecretsPending } =- useGetOrgStaticSecretsUsage(currentOrg.id);+ useGetOrgStaticSecretsUsage(currentOrg.id, { enabled: hasInsightsPlan });const { data: accessVolume, isPending: isAccessVolumePending } = useGetOrgSecretsAccessVolume(currentOrg.id,- { enabled: isClickhouseEnabled }+ { enabled: isClickhouseEnabled && hasInsightsPlan });- const { popUp, handlePopUpOpen, handlePopUpToggle } = usePopUp(["requestOrgReport"] as const);+ const { popUp, handlePopUpOpen, handlePopUpToggle } = usePopUp([+ "requestOrgReport",+ "upgradePlan"+ ] as const);// Reports are generated asynchronously and delivered by email; the list is newest-first// and polls while a report is in flight (the backend allows one in-flight report per org).- const { data: orgReports } = useGetOrgAuditReports({ offset: 0, limit: 10 });+ const { data: orgReports } = useGetOrgAuditReports(+ { offset: 0, limit: 10 },+ { enabled: hasInsightsPlan }+ );const lastSentReport = orgReports?.reports.find((report) =>SENT_REPORT_STATUSES.includes(report.status));@@ -95,9 +137,26 @@ export const SecretInsightsPage = withPermission(orgReports?.reports.some((report) => IN_FLIGHT_REPORT_STATUSES.includes(report.status)));- const isAuthMethodsLoading = isClickhouseEnabled && isAuthMethodsPending;- const isAccessVolumeLoading = isClickhouseEnabled && isAccessVolumePending;- const showAuthMethodsSlot = isAuthMethodsLoading || Boolean(authMethodUsage);+ useEffect(() => {+ if (subscription && !subscription.secretAccessInsights) {+ handlePopUpOpen("upgradePlan");+ }+ }, [subscription]);++ const isSummaryLoading = hasInsightsPlan && isSummaryPending;+ const isProjectsLoading = hasInsightsPlan && isProjectsPending;+ const isStaticSecretsLoading = hasInsightsPlan && isStaticSecretsPending;+ const isAuthMethodsLoading = isClickhouseEnabled && hasInsightsPlan && isAuthMethodsPending;+ const isAccessVolumeLoading = isClickhouseEnabled && hasInsightsPlan && isAccessVolumePending;++ const summaryData = hasInsightsPlan ? summary : PLAN_LOCKED_SUMMARY;+ const projectsData = hasInsightsPlan ? projectsInsights : PLAN_LOCKED_PROJECTS;+ const staticSecretData = hasInsightsPlan ? staticSecretUsage : PLAN_LOCKED_STATIC_SECRETS;+ const authMethodData = hasInsightsPlan ? authMethodUsage : PLAN_LOCKED_AUTH_METHODS;+ const accessVolumeData = hasInsightsPlan ? accessVolume : PLAN_LOCKED_ACCESS_VOLUME;++ const showAuthMethodsSlot =+ isAuthMethodsLoading || (isClickhouseEnabled && Boolean(authMethodData));return (<>@@ -130,7 +189,9 @@ export const SecretInsightsPage = withPermission(variant="project"size="xs"isDisabled={!isAllowed || hasInFlightReport}- onClick={() => handlePopUpOpen("requestOrgReport")}+ onClick={() =>+ handlePopUpOpen(hasInsightsPlan ? "requestOrgReport" : "upgradePlan")+ }>Generate Report</Button>@@ -153,21 +214,42 @@ export const SecretInsightsPage = withPermission(</div></PageHeader><div className="flex flex-col gap-4 pb-8">- {isSummaryPending && (+ {!hasInsightsPlan && (+ <Alert variant="info">+ <LockIcon />+ <AlertTitle>Insights Is Not Included in Your Current Plan</AlertTitle>+ <AlertDescription>+ <p>+ Secret health, access volume, and authentication data stay empty until you+ upgrade. Go to{" "}+ <Link+ to="/organizations/$orgId/billing"+ params={{ orgId: currentOrg.id }}+ className="inline underline hover:opacity-80"+ >+ Billing+ </Link>{" "}+ to change your plan.+ </p>+ </AlertDescription>+ </Alert>+ )}+ {isSummaryLoading && (<div className="grid gap-4 md:grid-cols-3"><Skeleton className="h-[150px]" /><Skeleton className="h-[150px]" /><Skeleton className="h-[150px]" /></div>)}- {!isSummaryPending && summary && <SummaryCard summary={summary} />}- {isProjectsPending && <Skeleton className="h-[320px]" />}- {!isProjectsPending && projectsInsights && (+ {!isSummaryLoading && summaryData && <SummaryCard summary={summaryData} />}+ {isProjectsLoading && <Skeleton className="h-[320px]" />}+ {!isProjectsLoading && projectsData && (<InsightsCard- data={projectsInsights}+ data={projectsData}hasMore={hasMoreProjects}onLoadMore={fetchMoreProjects}isLoadingMore={isFetchingMoreProjects}+ isPlanRestricted={!hasInsightsPlan}/>)}<div@@ -176,17 +258,17 @@ export const SecretInsightsPage = withPermission(}>{isAuthMethodsLoading && <Skeleton className="h-[320px]" />}- {!isAuthMethodsLoading && authMethodUsage && (- <AuthMethodsCard data={authMethodUsage} />+ {!isAuthMethodsLoading && isClickhouseEnabled && authMethodData && (+ <AuthMethodsCard data={authMethodData} />)}- {isStaticSecretsPending && <Skeleton className="h-[320px]" />}- {!isStaticSecretsPending && staticSecretUsage && (- <StaticSecretPresenceCard data={staticSecretUsage} />+ {isStaticSecretsLoading && <Skeleton className="h-[320px]" />}+ {!isStaticSecretsLoading && staticSecretData && (+ <StaticSecretPresenceCard data={staticSecretData} />)}</div>{isAccessVolumeLoading && <Skeleton className="h-[300px]" />}- {!isAccessVolumeLoading && accessVolume && (- <SecretAccessVolumeCard data={accessVolume} />+ {!isAccessVolumeLoading && isClickhouseEnabled && accessVolumeData && (+ <SecretAccessVolumeCard data={accessVolumeData} />)}</div></div>@@ -196,6 +278,11 @@ export const SecretInsightsPage = withPermission(onOpenChange={(isOpen) => handlePopUpToggle("requestOrgReport", isOpen)}isAuditLogSupported={isClickhouseEnabled}/>+ <UpgradePlanModal+ isOpen={popUp.upgradePlan.isOpen}+ onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}+ text="Your current plan does not include access to secret insights. To unlock this feature, please upgrade your Infisical plan."+ /></>);},diff --git a/frontend/src/pages/organization/SecretInsightsPage/components/AuthMethodsCard.tsx b/frontend/src/pages/organization/SecretInsightsPage/components/AuthMethodsCard.tsxindex 6bf0328eb6..24ea26b9fe 100644--- a/frontend/src/pages/organization/SecretInsightsPage/components/AuthMethodsCard.tsx+++ b/frontend/src/pages/organization/SecretInsightsPage/components/AuthMethodsCard.tsx@@ -1,5 +1,5 @@import { useMemo } from "react";-import { TriangleAlertIcon } from "lucide-react";+import { FingerprintIcon, TriangleAlertIcon } from "lucide-react";import {Alert,@@ -10,7 +10,9 @@ import {CardHeader,CardTitle,Empty,+ EmptyDescription,EmptyHeader,+ EmptyMedia,EmptyTitle} from "@app/components/v3";import { IdentityAuthMethod, identityAuthToNameMap, TOrgAuthMethodUsage } from "@app/hooks/api";@@ -56,7 +58,7 @@ export const AuthMethodsCard = ({ data }: { data: TOrgAuthMethodUsage }) => {}, [data]);return (- <Card>+ <Card className="h-full"><CardHeader><CardTitle>Auth Methods Used to Fetch Secrets</CardTitle><CardDescription>@@ -65,9 +67,15 @@ export const AuthMethodsCard = ({ data }: { data: TOrgAuthMethodUsage }) => {</CardHeader><CardContent>{segments.length === 0 && (- <Empty className="border-0">+ <Empty frame="dashed" className="hover:bg-container"><EmptyHeader>- <EmptyTitle>No secret fetch data yet</EmptyTitle>+ <EmptyMedia variant="icon">+ <FingerprintIcon />+ </EmptyMedia>+ <EmptyTitle>No secret fetches in the past 7 days</EmptyTitle>+ <EmptyDescription>+ Once a machine identity reads a secret, its auth method appears here.+ </EmptyDescription></EmptyHeader></Empty>)}diff --git a/frontend/src/pages/organization/SecretInsightsPage/components/InsightsCard.tsx b/frontend/src/pages/organization/SecretInsightsPage/components/InsightsCard.tsxindex 05ac19d102..13692fb6f5 100644--- a/frontend/src/pages/organization/SecretInsightsPage/components/InsightsCard.tsx+++ b/frontend/src/pages/organization/SecretInsightsPage/components/InsightsCard.tsx@@ -1,6 +1,15 @@-import { useMemo, useState } from "react";+import { ReactNode, useMemo, useState } from "react";import { useNavigate } from "@tanstack/react-router";-import { ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, SearchIcon } from "lucide-react";+import {+ CheckIcon,+ ChevronDownIcon,+ ChevronRightIcon,+ ChevronUpIcon,+ FolderIcon,+ LockIcon,+ SearchIcon,+ SearchXIcon+} from "lucide-react";import {Badge,@@ -13,7 +22,9 @@ import {CardHeader,CardTitle,Empty,+ EmptyDescription,EmptyHeader,+ EmptyMedia,EmptyTitle,InputGroup,InputGroupAddon,@@ -34,6 +45,13 @@ import { TOrgProjectInsightWarnings, TOrgProjectsInsights } from "@app/hooks/apiconst COLLAPSED_ROW_COUNT = 4;+type EmptyState = {+ icon: ReactNode;+ title: string;+ description: string;+ mediaClassName?: string;+};+enum InsightsView {NeedsAttention = "needs-attention",AllProjects = "all-projects"@@ -75,12 +93,16 @@ export const InsightsCard = ({data,hasMore,onLoadMore,- isLoadingMore+ isLoadingMore,+ isPlanRestricted = false}: {data: TOrgProjectsInsights;hasMore: boolean;onLoadMore: () => void;isLoadingMore: boolean;+ // Without the insights entitlement the row set is empty because nothing was fetched, so the card+ // must not report the org as healthy+ isPlanRestricted?: boolean;}) => {const navigate = useNavigate();const { currentOrg } = useOrganization();@@ -119,15 +141,56 @@ export const InsightsCard = ({const isSearching = search.trim().length > 0;const visible = showAll || isSearching ? filtered : filtered.slice(0, COLLAPSED_ROW_COUNT);+ const getDescription = () => {+ if (isPlanRestricted) return "Upgrade your plan to see project-level issues.";+ if (isHealthy) return "No projects have outstanding issues right now.";+ return `${data.projectsWithIssues} of ${data.totalProjects} projects have outstanding issues, ordered by severity.`;+ };++ const getEmptyState = (): EmptyState => {+ if (isSearching) {+ return {+ icon: <SearchXIcon />,+ title: "No projects match your search",+ description: `No project name or slug matches "${search.trim()}".`+ };+ }++ if (isPlanRestricted) {+ return {+ icon: <LockIcon />,+ title: "Project insights are not on your current plan",+ description:+ "Upgrade to see failed rotations, failed syncs, stale secrets, and duplicated secrets for every project."+ };+ }++ if (data.totalProjects === 0) {+ return {+ icon: <FolderIcon />,+ title: "No secrets management projects",+ description: "Create a secrets management project to see its insights here."+ };+ }++ return {+ icon: <CheckIcon />,+ title: "All projects are healthy",+ description: `No failed rotations, failed syncs, stale or duplicated secrets across your ${pluralize(+ data.totalProjects,+ "project"+ )}. New issues will appear here as they are detected.`,+ mediaClassName: "rounded-full"+ };+ };++ const emptyState = filtered.length === 0 ? getEmptyState() : null;+return (<Card><CardHeader><CardTitle>Insights</CardTitle>- <CardDescription>- {isHealthy- ? "You don't have any projects with issues"- : `${data.projectsWithIssues} of ${data.totalProjects} projects have outstanding issues, ordered by severity.`}- </CardDescription>+ <CardDescription>{getDescription()}</CardDescription><CardAction className="flex items-center gap-2"><Tabs value={view} onValueChange={(next) => setView(next as InsightsView)}><TabsList variant="filled">@@ -148,17 +211,15 @@ export const InsightsCard = ({</CardAction></CardHeader><CardContent>- {view === InsightsView.NeedsAttention && modeProjects.length === 0 && !isSearching && (- <Empty className="border-0">- <EmptyHeader>- <EmptyTitle>You don't have any projects with issues</EmptyTitle>- </EmptyHeader>- </Empty>- )}- {modeProjects.length > 0 && filtered.length === 0 && (- <Empty className="border-0">+ {/* the framed Empty ships a hover tint for interactive drop targets; this one is static */}+ {emptyState && (+ <Empty frame="dashed" className="hover:bg-container"><EmptyHeader>- <EmptyTitle>No projects match your search</EmptyTitle>+ <EmptyMedia variant="icon" className={emptyState.mediaClassName}>+ {emptyState.icon}+ </EmptyMedia>+ <EmptyTitle>{emptyState.title}</EmptyTitle>+ <EmptyDescription>{emptyState.description}</EmptyDescription></EmptyHeader></Empty>)}diff --git a/frontend/src/pages/organization/SecretInsightsPage/components/SecretAccessVolumeCard.tsx b/frontend/src/pages/organization/SecretInsightsPage/components/SecretAccessVolumeCard.tsxindex aca29e44a8..5eac3810b7 100644--- a/frontend/src/pages/organization/SecretInsightsPage/components/SecretAccessVolumeCard.tsx+++ b/frontend/src/pages/organization/SecretInsightsPage/components/SecretAccessVolumeCard.tsx@@ -1,5 +1,6 @@import { useMemo } from "react";import { format, parseISO } from "date-fns";+import { ActivityIcon } from "lucide-react";import {Card,@@ -8,7 +9,9 @@ import {CardHeader,CardTitle,Empty,+ EmptyDescription,EmptyHeader,+ EmptyMedia,EmptyTitle} from "@app/components/v3";import { TOrgSecretAccessVolume } from "@app/hooks/api";@@ -37,9 +40,15 @@ export const SecretAccessVolumeCard = ({ data }: { data: TOrgSecretAccessVolume</CardHeader><CardContent>{chartData.length === 0 && (- <Empty className="border-0">+ <Empty frame="dashed" className="hover:bg-container"><EmptyHeader>- <EmptyTitle>No secret access data yet</EmptyTitle>+ <EmptyMedia variant="icon">+ <ActivityIcon />+ </EmptyMedia>+ <EmptyTitle>No secret reads in the past 7 days</EmptyTitle>+ <EmptyDescription>+ Every secret read across your projects is counted here, by day.+ </EmptyDescription></EmptyHeader></Empty>)}diff --git a/frontend/src/pages/organization/SecretInsightsPage/components/StaticSecretPresenceCard.tsx b/frontend/src/pages/organization/SecretInsightsPage/components/StaticSecretPresenceCard.tsxindex a19e4545ad..e7951bae65 100644--- a/frontend/src/pages/organization/SecretInsightsPage/components/StaticSecretPresenceCard.tsx+++ b/frontend/src/pages/organization/SecretInsightsPage/components/StaticSecretPresenceCard.tsx@@ -1,6 +1,6 @@import { useMemo } from "react";import { format, parseISO } from "date-fns";-import { TrendingDownIcon, TrendingUpIcon } from "lucide-react";+import { KeyIcon, TrendingDownIcon, TrendingUpIcon } from "lucide-react";import {Bar,BarChart,@@ -21,7 +21,9 @@ import {CardHeader,CardTitle,Empty,+ EmptyDescription,EmptyHeader,+ EmptyMedia,EmptyTitle,TBadgeProps} from "@app/components/v3";@@ -98,9 +100,15 @@ export const StaticSecretPresenceCard = ({ data }: { data: TOrgStaticSecretUsage</CardHeader><CardContent className="flex flex-1 flex-col">{weeks.length === 0 && (- <Empty className="border-0">+ <Empty frame="dashed" className="hover:bg-container"><EmptyHeader>- <EmptyTitle>No secret creation data yet</EmptyTitle>+ <EmptyMedia variant="icon">+ <KeyIcon />+ </EmptyMedia>+ <EmptyTitle>No secrets created in the past 12 weeks</EmptyTitle>+ <EmptyDescription>+ Secrets your projects create appear here, one bar per week.+ </EmptyDescription></EmptyHeader></Empty>)}diff --git a/frontend/src/pages/organization/SecretInsightsPage/components/SummaryCard.tsx b/frontend/src/pages/organization/SecretInsightsPage/components/SummaryCard.tsxindex eb0acdd2d4..72dbe98b74 100644--- a/frontend/src/pages/organization/SecretInsightsPage/components/SummaryCard.tsx+++ b/frontend/src/pages/organization/SecretInsightsPage/components/SummaryCard.tsx@@ -14,7 +14,7 @@ type StatCardProps = {};const StatCard = ({ title, icon, iconVariant, value, suffix, caption }: StatCardProps) => (- <Card className="flex-1">+ <Card className="h-full"><CardHeader><CardTitle>{title}</CardTitle><CardAction>diff --git a/frontend/src/pages/secret-manager/InsightsPage/components/InsightsSummaryCards.tsx b/frontend/src/pages/secret-manager/InsightsPage/components/InsightsSummaryCards.tsxindex d3f1561a2f..1f02c38d60 100644--- a/frontend/src/pages/secret-manager/InsightsPage/components/InsightsSummaryCards.tsx+++ b/frontend/src/pages/secret-manager/InsightsPage/components/InsightsSummaryCards.tsx@@ -64,7 +64,7 @@ const StatCard = ({const [open, setOpen] = useState(false);return (- <Card className="flex-1">+ <Card className="h-full flex-1"><CardHeader><CardTitle>{title}</CardTitle><CardAction>