Skip to content

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

feat: addressed billing nit

=87511781e702
diff --git a/frontend/src/pages/organization/BillingV2Page/billing-v2-format.ts b/frontend/src/pages/organization/BillingV2Page/billing-v2-format.ts
index 2dfb373155..090e6f8fda 100644
--- a/frontend/src/pages/organization/BillingV2Page/billing-v2-format.ts
+++ b/frontend/src/pages/organization/BillingV2Page/billing-v2-format.ts
@@ -190,7 +190,9 @@ export const commitSavingsNudge = (
};
// Capitalize a plan tier ("pro" -> "Pro") for the badge beside a product's name.
-export const tierLabel = (tier: string): string => tier.charAt(0).toUpperCase() + tier.slice(1);
+// hardcoded legacy for now
+export const tierLabel = (tier: string): string =>
+ (tier.charAt(0).toUpperCase() + tier.slice(1)).replace("Legacy_", "");
// Cadence as an adjective ("annual"/"monthly"), empty for an unknown cadence. Distinct from
// cadenceWord, which returns the period noun ("year"/"month").
diff --git a/frontend/src/pages/organization/BillingV2Page/components/cards/PaymentCard.tsx b/frontend/src/pages/organization/BillingV2Page/components/cards/PaymentCard.tsx
index c2b3820c65..7eba1f488d 100644
--- a/frontend/src/pages/organization/BillingV2Page/components/cards/PaymentCard.tsx
+++ b/frontend/src/pages/organization/BillingV2Page/components/cards/PaymentCard.tsx
@@ -30,9 +30,6 @@ export const PaymentCard = ({ overview, canManage, onUpdate }: PaymentCardProps)
<CardContent>
{overview.payment ? (
<div className="flex items-center gap-3.5">
- <div className="flex h-[30px] w-[46px] shrink-0 items-center justify-center rounded-sm border border-border bg-container text-[10px] font-bold tracking-wide text-foreground">
- {overview.payment.brand.toUpperCase()}
- </div>
<div>
<div className="text-sm font-medium text-foreground">
{overview.payment.brand.toUpperCase()} ending in {overview.payment.last4}
diff --git a/frontend/src/pages/organization/BillingV2Page/components/cards/ProductsCard.tsx b/frontend/src/pages/organization/BillingV2Page/components/cards/ProductsCard.tsx
index 81ef40eac4..e312f81936 100644
--- a/frontend/src/pages/organization/BillingV2Page/components/cards/ProductsCard.tsx
+++ b/frontend/src/pages/organization/BillingV2Page/components/cards/ProductsCard.tsx
@@ -114,15 +114,9 @@ const ActiveProductCard = ({
<div className="flex min-w-0 flex-1 flex-col gap-0.5">
<div className="flex flex-wrap items-center gap-2">
<span className="text-[15px] font-semibold text-foreground">{prod.name}</span>
- {/* Plan retiring: strikethrough tier chip in warning tone. Otherwise the plain tier chip. */}
- {entitlement?.planTier &&
- (isPlanDeprecated ? (
- <Badge variant="warning" className="line-through">
- {tierLabel(entitlement.planTier)}
- </Badge>
- ) : (
- <Badge variant="info">{tierLabel(entitlement.planTier)}</Badge>
- ))}
+ {entitlement?.planTier && (
+ <Badge variant="info">{tierLabel(entitlement.planTier)}</Badge>
+ )}
{isProductDeprecated && <Badge variant="danger">Deprecated</Badge>}
{prod.addon && <Badge variant="neutral">Add-on</Badge>}
{isTrialing ? <Badge variant="info">Trial</Badge> : <ActiveBadge />}