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
fix: resolved loosing invoice on loosing sub
=10657be41ec2
diff --git a/frontend/src/pages/organization/BillingV2Page/components/Overview.tsx b/frontend/src/pages/organization/BillingV2Page/components/Overview.tsxindex 3f468413b4..b0ef69b50c 100644--- a/frontend/src/pages/organization/BillingV2Page/components/Overview.tsx+++ b/frontend/src/pages/organization/BillingV2Page/components/Overview.tsx@@ -30,8 +30,6 @@ export type OverviewProps = {};// Composes the billing overview by render state: loading → skeleton, error/no-overview → error panel,-// no-subscription → banner + products, otherwise the full active layout. Each section is its own-// component under components/ (cards/, deprecation/, states/); this file only routes and lays them out.export const Overview = ({overview,catalog,@@ -90,6 +88,29 @@ export const Overview = ({</Alert>) : null;+ const showPayment = overview.isCloud && !isManaged;++ const hasBillingHistory =+ Boolean(overview.payment) || Boolean(overview.billingDetails) || overview.invoices.length > 0;++ const billingSection = !isManaged && (+ <>+ <div className="@container">+ <div className={cn("grid gap-4", showPayment && "@3xl:grid-cols-[2fr_3fr]")}>+ {showPayment && (+ <PaymentCard+ overview={overview}+ canManage={canManageBilling}+ onUpdate={onUpdatePayment}+ />+ )}+ <DetailsCard overview={overview} canManage={canManageBilling} onEdit={onEditDetails} />+ </div>+ </div>+ {showPayment && <InvoicesCard invoices={overview.invoices} />}+ </>+ );+if (subState === "no-subscription") {return (<div className="flex flex-col gap-4">@@ -110,12 +131,11 @@ export const Overview = ({onSetCommitment={onSetCommitment}onContact={onContact}/>+ {hasBillingHistory && billingSection}</div>);}- const showPayment = overview.isCloud && !isManaged;-return (<div className="flex flex-col gap-4">{frozenNotice}@@ -150,22 +170,7 @@ export const Overview = ({onSetCommitment={onSetCommitment}onContact={onContact}/>- {!isManaged && (- // Payment (cloud-only) + details share a row, keyed off container width (sidebar resizes it).- <div className="@container">- <div className={cn("grid gap-4", showPayment && "@3xl:grid-cols-[2fr_3fr]")}>- {showPayment && (- <PaymentCard- overview={overview}- canManage={canManageBilling}- onUpdate={onUpdatePayment}- />- )}- <DetailsCard overview={overview} canManage={canManageBilling} onEdit={onEditDetails} />- </div>- </div>- )}- {showPayment && <InvoicesCard invoices={overview.invoices} />}+ {billingSection}</div>);};