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
Merge branch 'main' into feature/usage-breakdown
Victor Hugo dos Santos51134df7fbac
diff --cc frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsxindex 674a8864e9,2e4b02d1e3..0572837227--- a/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx+++ b/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx@@@ -185,16 -80,18 +185,18 @@@ export const BillingV2Page = () =>const close = () => setFlow(null);- const redirectToPortal = async () => {- try {- const url = await createPortalSession.mutateAsync({+ const redirectToPortal = () => {+ createPortalSession.mutate(+ {- orgId,+ orgId: selectedOrgId,returnPath: window.location.pathname- });- window.location.href = url;- } catch {- createNotification({ type: "error", text: "Failed to open the billing portal." });- }+ },+ {+ onSuccess: (url) => {+ window.location.href = url;+ }+ }+ );};const onManageSubscription = () => {@@@ -212,22 -109,20 +214,24 @@@setFlow({ type: "sheet", prodId: productId, view: "commitment" });};+ const onViewBreakdown = (productId: string) => {+ setFlow({ type: "breakdown", prodId: productId });+ };+const hasActiveSubscription = overview?.subState === "active";- const onUpdatePayment = async () => {- try {- const url = await addPaymentMethod.mutateAsync({+ const onUpdatePayment = () => {+ addPaymentMethod.mutate(+ {- orgId,+ orgId: selectedOrgId,returnPath: window.location.pathname- });- window.location.href = url;- } catch {- createNotification({ type: "error", text: "Failed to open the payment portal." });- }+ },+ {+ onSuccess: (url) => {+ window.location.href = url;+ }+ }+ );};// Billing name/email and address are edited in the Stripe billing portal.diff --cc frontend/src/pages/organization/BillingV2Page/components/shared.tsxindex 471eb67dd2,4d6b7b9035..51b34f4b73--- a/frontend/src/pages/organization/BillingV2Page/components/shared.tsx+++ b/frontend/src/pages/organization/BillingV2Page/components/shared.tsx@@@ -209,9 -214,12 +216,12 @@@ export const DimensionMeter = ({ dim, c}return (- <div className="flex flex-col gap-1.5">+ <div+ className="product-color flex flex-col gap-1.5"+ style={{ "--product-color": color } as CSSProperties}+ ><div className="flex items-baseline justify-between gap-2.5 text-xs">- <span className="text-muted">{dim.label}</span>+ <span className="text-accent">{dim.label}</span><span className="text-muted tabular-nums">{right}</span></div>{hasCeiling && (