Skip to content

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

feat: addressed llm review

=986abada4a0d
diff --git a/frontend/src/pages/organization/BillingV2Page/components/Overview.tsx b/frontend/src/pages/organization/BillingV2Page/components/Overview.tsx
index ee36139a26..bc36919ee4 100644
--- a/frontend/src/pages/organization/BillingV2Page/components/Overview.tsx
+++ b/frontend/src/pages/organization/BillingV2Page/components/Overview.tsx
@@ -340,8 +340,11 @@ const UsageCard = ({ overview }: UsageCardProps) => {
const used = members + identities;
const isUnlimited = limit === null;
const available = isUnlimited ? 0 : Math.max(0, limit - used);
- const membersPct = limit ? Math.min(100, (members / limit) * 100) : 0;
- const identitiesPct = limit ? Math.min(100, (identities / limit) * 100) : 0;
+ // Cap the combined fill at 100% and split it between the two segments by their share of `used`, so
+ // the bar never overflows when members + identities exceeds the limit while keeping their ratio.
+ const usedPct = limit ? Math.min(100, (used / limit) * 100) : 0;
+ const membersPct = used ? usedPct * (members / used) : 0;
+ const identitiesPct = used ? usedPct * (identities / used) : 0;
return (
<Card>
diff --git a/frontend/src/pages/organization/BillingV2Page/components/ProductSheet.tsx b/frontend/src/pages/organization/BillingV2Page/components/ProductSheet.tsx
index 981ecf6743..5abb9cab4a 100644
--- a/frontend/src/pages/organization/BillingV2Page/components/ProductSheet.tsx
+++ b/frontend/src/pages/organization/BillingV2Page/components/ProductSheet.tsx
@@ -165,7 +165,7 @@ const PlansView = ({ prod, entitlement, cadence, onContact }: PlansViewProps) =>
{hasEnterprise && prod.enterprise && (
<div className="flex flex-col gap-3.5 rounded-xl border border-border bg-card p-[18px]">
<div className="flex items-center justify-between gap-2">
- <span className="font-mediumtext-foreground">Enterprise</span>
+ <span className="font-medium text-foreground">Enterprise</span>
<Badge variant="neutral">Talk to Us</Badge>
</div>
<div className="flex items-baseline">