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
Correct current plan text in usage and billing
Tuan Dang29d50f850be2
diff --git a/frontend/src/views/Settings/BillingSettingsPage/components/BillingCloudTab/PreviewSection.tsx b/frontend/src/views/Settings/BillingSettingsPage/components/BillingCloudTab/PreviewSection.tsxindex 4050e79365..5e3d50c424 100644--- a/frontend/src/views/Settings/BillingSettingsPage/components/BillingCloudTab/PreviewSection.tsx+++ b/frontend/src/views/Settings/BillingSettingsPage/components/BillingCloudTab/PreviewSection.tsx@@ -12,7 +12,7 @@ export const PreviewSection = () => {const { subscription, isLoading: isSubscriptionLoading } = useSubscription();const { data, isLoading } = useGetOrgPlanBillingInfo(currentOrg?._id ?? "");const createCustomerPortalSession = useCreateCustomerPortalSession();-+const { popUp, handlePopUpOpen, handlePopUpToggle } = usePopUp(["managePlan"] as const);@@ -35,6 +35,12 @@ export const PreviewSection = () => {return formattedDate;}++ function formatPlanSlug(slug: string) {+ return slug+ .replace(/(\b[a-z])/g, match => match.toUpperCase())+ .replace(/-/g, " ");+ }return (<div>@@ -52,11 +58,13 @@ export const PreviewSection = () => {</Button></div>)}- {!isLoading && data && (+ {!isLoading && data && subscription && (<div className="flex mt-8 max-w-screen-lg"><div className="p-4 bg-mineshaft-900 rounded-lg flex-1 mr-4 border border-mineshaft-600"><p className="mb-2 text-gray-400">Current plan</p>- <p className="text-2xl mb-8 text-mineshaft-50 font-semibold">Starter</p>+ <p className="text-2xl mb-8 text-mineshaft-50 font-semibold">+ {formatPlanSlug(subscription.slug)}+ </p><buttontype="button"onClick={async () => {