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
feat(analytics): track paywall-to-billing funnel (#8144)
Andrew Huang03bc9ba8ec2f
diff --git a/AGENTS.md b/AGENTS.mdindex 5876dc2abe..62e035d288 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -33,3 +33,9 @@ Before changing a shared frontend component's lifecycle, read the [shared compon- Never create a GitHub issue.- When creating a pull request, use and fully complete the repository's`.github/pull_request_template.md` template.++## Workflow Guardrails++- Do not reformat existing code as incidental cleanup. Preserve the repository's current formatting unless a review agent, CI check, or user explicitly asks for a formatting change.+- Never push changes to `license-fns` or local UI fixtures to a remote branch. Those edits are local-only support for review and test passes; keep them out of commits and pull requests.+- When resolving merge conflicts, optimize for a correct, minimal, strategically unblocking resolution. Do not let a slow or stalled local check block the push when the corresponding frontend or backend CI checks on GitHub can validate the branch; push the resolved code and use CI to complete the expensive verification.diff --git a/ANALYTICS.md b/ANALYTICS.mdnew file mode 100644index 0000000000..ea3e3fd650--- /dev/null+++ b/ANALYTICS.md@@ -0,0 +1,125 @@+# Product analytics++Use this guide for product analytics emitted to PostHog from the frontend,+backend, workers, and lifecycle/webhook processors. An event is a durable data+contract: define what it means and who owns it before adding a capture call or+dashboard.++## Design an event++Answer these questions before implementation:++1. **Question:** Which product decision will this event inform? Do not collect+ data without a concrete consumer.+2. **Owner:** Which single producer can establish the fact most reliably?+3. **Firing condition:** What exact transition emits it, and can retries or+ rerenders emit it twice?+4. **Source of truth:** Is this UI intent, an accepted command, or a durable+ domain outcome?+5. **Scope:** Is the subject a person, organization, project, instance, or+ another bounded entity?+6. **Dimensions:** Which stable identifiers are needed for breakdowns? Keep+ display copy separate from machine-readable keys.+7. **Cardinality and privacy:** Can any property contain secrets, raw errors,+ concrete URLs, resource IDs used as breakdowns, or unbounded user input?+8. **Attribution:** Is an organization and time window sufficient, or does the+ flow require a correlation ID propagated to its authoritative outcome?+9. **Consumer:** Which insight or dashboard uses the event, and how will its+ query distinguish intent from conversion?++## Event ownership++Each event has one owning producer. Do not emit the same event name from the+frontend and backend: doing so mixes browser observations with domain outcomes+and double-counts web activity.++The frontend owns UI exposure, navigation, and intent that no server can+observe, such as a modal being viewed or a CTA being selected.++The application backend owns accepted commands and external sessions it+successfully creates. Emit properties from normalized or resolved service+state, not optional request inputs when they can differ.++The system that commits or reconciles a durable transition owns authoritative+outcomes. Subscription activation, payment, trial conversion, and similar+events normally belong to the license or webhook lifecycle rather than a+browser return page.++Name events after the fact their owner can prove. For example,+`Billing Checkout Session Created` is a backend fact; `Subscription Activated`+is a billing-lifecycle fact.++## Frontend events++Use `@app/lib/analytics` for new frontend product analytics. The event catalog+in `frontend/src/lib/analytics/events.ts` is the contract between application+code and PostHog dashboards: every event has one canonical name and a typed+property shape.++```ts+import { analytics, AnalyticsEvent } from "@app/lib/analytics";++analytics.captureForOrganization(AnalyticsEvent.PaywallViewed, orgId, {+ paywallKey,+ paywallText,+ route,+ isEnterpriseFeature+});+```++`captureForOrganization` adds `orgId` and the PostHog organization group. Do+not add those fields at call sites. Analytics initialization remains lazy; do+not instantiate the client at module scope.++To add a frontend event:++1. Add its canonical name to `AnalyticsEvent`.+2. Add its property contract to `OrganizationAnalyticsEventMap` or the+ appropriate scope map when one exists.+3. Capture it through the scope-specific analytics method.+4. Update the PostHog insight or dashboard that consumes it.++Legacy frontend telemetry still uses `Telemetry` directly. Migrate it through+the shared API rather than copying that pattern into new code. Preserve+existing identity and feature-flag behavior during migration.++## Backend events++Define backend event names and discriminated property types in+`backend/src/services/telemetry/telemetry-types.ts`. Emit organization-scoped+events with `organizationId` so the telemetry service attaches the PostHog+organization group and refreshes its properties.++Fire an event only after the operation named by the event succeeds. Use the+resolved service result for normalized plans, cadence, provider type, and+other dimensions. When delivery is best-effort, follow the established+fire-and-forget pattern without changing the API response or error behavior.++## Properties and naming++Event names describe completed facts in title case. Use stable+machine-readable values for plans, products, capabilities, and other+breakdowns; do not use display labels as identifiers.++Properties must have bounded cardinality and must not contain secrets, raw+errors, arbitrary URLs, or unbounded user-entered content. Define lifecycle+terms such as viewed, clicked, created, succeeded, failed, and canceled so they+cannot overlap accidentally.++Every paywall has a required, lowercase dot-separated `paywallKey` owned by+its call site. Keep the key stable when copy or plan names change; use modal+text only as display context. Record the matched route ID, not a concrete URL+containing organization, project, or resource identifiers.++## Review an analytics change++Before opening or approving a pull request:++- Check the frontend and backend catalogs for a semantic duplicate.+- Trace every property to the executed state, not only the request payload.+- Verify shared-component callers supply stable identity at compile time.+- Check module-scope code and constructors for initialization side effects.+- Confirm retries, rerenders, and webhook redelivery cannot inflate counts.+- Run the saved PostHog queries and verify their breakdown fields match the+ typed event contract.+- Keep pull request and ticket references out of durable repository guidance.diff --git a/CLAUDE.md b/CLAUDE.mdindex 8cdbe744c4..ce44ac8c5c 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -80,6 +80,10 @@ Never write: narration restating the next line; section headers inside a functioBefore finishing, delete any comment you added that only says what the code says.+### Product Analytics++Read [`ANALYTICS.md`](ANALYTICS.md) before adding or changing product analytics. Every event has one owning producer: the frontend records UI exposure and intent, the application backend records accepted commands it can establish, and the system of record records durable outcomes. Define stable dimensions, cardinality, firing conditions, and dashboard consumers before implementation.+### Design System & VoiceThe v3 visual system (colors, typography, components, layout) and product voice/content tone are documented in [`DESIGN.md`](DESIGN.md). Read it before producing new UI or user-visible copy.diff --git a/backend/src/ee/routes/v1/license-v2-router.ts b/backend/src/ee/routes/v1/license-v2-router.tsindex e896952103..4f1976c8f4 100644--- a/backend/src/ee/routes/v1/license-v2-router.ts+++ b/backend/src/ee/routes/v1/license-v2-router.ts@@ -420,7 +420,7 @@ export const registerLicenseV2Router = async (server: FastifyZodProvider) => {// A first-touch org has no Stripe customer yet, so the server needs an email. Take it from the// authenticated user (JWT-only route) rather than trusting a client-supplied value.const email = isUserSessionAuth(req.auth) ? (req.auth.user.email ?? undefined) : undefined;- return server.services.licenseV2.buyProduct({+ const result = await server.services.licenseV2.buyProduct({orgId: req.params.organizationId,actor: buildActor(req.permission),productId: req.body.productId,@@ -430,6 +430,27 @@ export const registerLicenseV2Router = async (server: FastifyZodProvider) => {email,returnPath: req.body.returnPath});++ void server.services.telemetry+ .sendPostHogEvents({+ event:+ result.outcome === "checkout_created"+ ? PostHogEventTypes.BillingCheckoutSessionCreated+ : PostHogEventTypes.BillingProductActivated,+ distinctId: getTelemetryDistinctId(req),+ organizationId: req.params.organizationId,+ properties: {+ productId: req.body.productId,+ plan: result.plan,+ cadence: result.cadence,+ ...(result.outcome === "subscription_updated" ? { subscriptionId: result.subscriptionId } : {})+ }+ })+ .catch(() => {});++ return result.outcome === "checkout_created"+ ? { outcome: result.outcome, checkoutUrl: result.checkoutUrl }+ : { outcome: result.outcome, subscriptionId: result.subscriptionId };}});@@ -458,7 +479,7 @@ export const registerLicenseV2Router = async (server: FastifyZodProvider) => {},onRequest: verifyAuth([AuthMode.JWT]),handler: async (req) => {- return server.services.licenseV2.upgradeProduct({+ const result = await server.services.licenseV2.upgradeProduct({orgId: req.params.organizationId,actor: buildActor(req.permission),productId: req.body.productId,@@ -466,6 +487,22 @@ export const registerLicenseV2Router = async (server: FastifyZodProvider) => {expectedPlanVersionId: req.body.expectedPlanVersionId,prorationDate: req.body.prorationDate});++ void server.services.telemetry+ .sendPostHogEvents({+ event: PostHogEventTypes.BillingPlanUpgraded,+ distinctId: getTelemetryDistinctId(req),+ organizationId: req.params.organizationId,+ properties: {+ productId: req.body.productId,+ fromPlan: result.fromPlanKey,+ toPlan: result.toPlanKey ?? req.body.plan,+ subscriptionId: result.subscriptionId+ }+ })+ .catch(() => {});++ return result;}});diff --git a/backend/src/ee/services/license-v2/license-v2-service.ts b/backend/src/ee/services/license-v2/license-v2-service.tsindex 3807ae1280..996e9538fa 100644--- a/backend/src/ee/services/license-v2/license-v2-service.ts+++ b/backend/src/ee/services/license-v2/license-v2-service.ts@@ -890,8 +890,9 @@ export const licenseV2ServiceFactory = ({throw new NotFoundError({ message: `Product with ID '${productId}' not found` });}+ const normalizedCadence = normalizeCadence(cadence);// `quantities` from the client is the buyer's committed choice; the service derives declaredUsage.- const resolved = await buildProductLineItem(product, normalizeCadence(cadence), orgId, plan, quantities);+ const resolved = await buildProductLineItem(product, normalizedCadence, orgId, plan, quantities);if (!resolved) {throw new BadRequestError({ message: "This product is not available for self-serve checkout" });}@@ -899,7 +900,7 @@ export const licenseV2ServiceFactory = ({const result = await licenseClient.buyProduct(orgId, {productId,plan: resolved.planTier,- cadence: normalizeCadence(cadence),+ cadence: normalizedCadence,quantities: resolved.quantities,declaredUsage: resolved.declaredUsage,email,@@ -908,7 +909,12 @@ export const licenseV2ServiceFactory = ({if (result.outcome === "subscription_updated") {await licenseClient.markEntitlementsStale(orgId);- return { outcome: "subscription_updated" as const, subscriptionId: result.subscriptionId };+ return {+ outcome: "subscription_updated" as const,+ subscriptionId: result.subscriptionId,+ plan: resolved.planTier,+ cadence: normalizedCadence+ };}// checkout_created: the customer must finish in Stripe Checkout; entitlements change via webhook.@@ -916,7 +922,12 @@ export const licenseV2ServiceFactory = ({throw new InternalServerError({ message: "Checkout session did not return a URL" });}await licenseClient.markEntitlementsStale(orgId, { checkout: true });- return { outcome: "checkout_created" as const, checkoutUrl: result.checkoutUrl };+ return {+ outcome: "checkout_created" as const,+ checkoutUrl: result.checkoutUrl,+ plan: resolved.planTier,+ cadence: normalizedCadence+ };};const addPaymentMethod = async ({ orgId, actor, returnPath }: TAddBillingV2PaymentMethodDTO) => {diff --git a/backend/src/services/telemetry/telemetry-types.ts b/backend/src/services/telemetry/telemetry-types.tsindex 58b64b1110..9e19ac30b9 100644--- a/backend/src/services/telemetry/telemetry-types.ts+++ b/backend/src/services/telemetry/telemetry-types.ts@@ -298,6 +298,11 @@ export enum PostHogEventTypes {AccessApprovalPolicyUpdated = "Access Approval Policy Updated",SecretRotationV2Failed = "Secret Rotation V2 Failed",+ // Billing+ BillingCheckoutSessionCreated = "Billing Checkout Session Created",+ BillingProductActivated = "Billing Product Activated",+ BillingPlanUpgraded = "Billing Plan Upgraded",+// Agent ProxyProxiedServiceCreated = "Proxied Service Created",@@ -2371,6 +2376,35 @@ export type TProxiedServiceCreatedEvent = {};};+export type TBillingCheckoutSessionCreatedEvent = {+ event: PostHogEventTypes.BillingCheckoutSessionCreated;+ properties: {+ productId: string;+ plan?: string;+ cadence?: "monthly" | "annual";+ };+};++export type TBillingProductActivatedEvent = {+ event: PostHogEventTypes.BillingProductActivated;+ properties: {+ productId: string;+ plan?: string;+ cadence?: "monthly" | "annual";+ subscriptionId?: string;+ };+};++export type TBillingPlanUpgradedEvent = {+ event: PostHogEventTypes.BillingPlanUpgraded;+ properties: {+ productId: string;+ fromPlan?: string;+ toPlan: string;+ subscriptionId?: string;+ };+};+type TAgentVaultEventBase = {orgId: string;channel: string;@@ -2775,6 +2809,9 @@ export type TPostHogEvent = {| TAccessApprovalPolicyUpdatedEvent| TSecretRotationV2FailedEvent| TProxiedServiceCreatedEvent+ | TBillingCheckoutSessionCreatedEvent+ | TBillingProductActivatedEvent+ | TBillingPlanUpgradedEvent| TAgentVaultPostHogEvent| TTrialStartedEvent| TTrialCardRequiredEventdiff --git a/frontend/CLAUDE.md b/frontend/CLAUDE.mdindex 525d1d1608..3ffb603037 100644--- a/frontend/CLAUDE.md+++ b/frontend/CLAUDE.md@@ -62,6 +62,12 @@ When adding new queries, consider whether the default 60s staleTime is appropria- For data that must always be fresh (auth configs, lease TTLs): override with `staleTime: 0, gcTime: 0`.- For rarely-changing data (server config, user profile): use `staleTime: Infinity` as the context providers do.+### Product Analytics++Use `@app/lib/analytics` for new frontend product analytics. Define the event and its typed properties in the shared catalog, then capture it through the method matching its scope so required grouping is applied automatically. Do not call the legacy `Telemetry` wrapper directly from new code or define event names as local strings.++Read [`../ANALYTICS.md`](../ANALYTICS.md) before adding or changing an event. It defines naming, ownership between frontend and backend producers, property cardinality and privacy rules, and lifecycle semantics. Frontend events describe UI exposure and intent; decisive product outcomes belong to backend telemetry so web activity is not double-counted against CLI, machine identity, or other clients.+### State Management- **Server state**: TanStack React Query (query key factories in each API domain)diff --git a/frontend/src/components/license/UpgradePlanModal/UpgradePlanModal.tsx b/frontend/src/components/license/UpgradePlanModal/UpgradePlanModal.tsxindex 18f6db4e6a..9d76ac735e 100644--- a/frontend/src/components/license/UpgradePlanModal/UpgradePlanModal.tsx+++ b/frontend/src/components/license/UpgradePlanModal/UpgradePlanModal.tsx@@ -1,4 +1,5 @@-import { Link } from "@tanstack/react-router";+import { useEffect, useRef } from "react";+import { Link, useRouterState } from "@tanstack/react-router";import { SparklesIcon } from "lucide-react";import {@@ -13,19 +14,68 @@ import {} from "@app/components/v3";import { useOrganization } from "@app/context";import { useScopeVariant } from "@app/hooks";+import { analytics, AnalyticsEvent } from "@app/lib/analytics";type Props = {isOpen?: boolean;onOpenChange?: (isOpen: boolean) => void;+ paywallKey: string;text: string;// akhilmhdh: We will come back to this late. Otherwise would need to change in a lot of places.// eslint-disable-next-lineisEnterpriseFeature?: boolean;};-export const UpgradePlanModal = ({ text, isOpen, onOpenChange }: Props): JSX.Element => {+export const UpgradePlanModal = ({+ text,+ isOpen,+ onOpenChange,+ paywallKey,+ isEnterpriseFeature+}: Props): JSX.Element => {const { currentOrg } = useOrganization();const scopeVariant = useScopeVariant();+ const route = useRouterState({+ select: (state) => state.matches.at(-1)?.routeId ?? "unknown"+ });+ const eventPropertiesRef = useRef<{+ paywallKey: string;+ paywallText: string;+ route: string;+ isEnterpriseFeature: boolean;+ } | null>(null);++ useEffect(() => {+ if (isOpen) {+ const eventProperties = {+ paywallKey,+ paywallText: text,+ route,+ isEnterpriseFeature: Boolean(isEnterpriseFeature)+ };+ eventPropertiesRef.current = eventProperties;+ analytics.captureForOrganization(+ AnalyticsEvent.PaywallViewed,+ currentOrg.id,+ eventProperties+ );+ } else {+ eventPropertiesRef.current = null;+ }+ // The event should fire once per closed-to-open transition, not when copy or route context changes.+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [isOpen]);++ const handleUpgradeClick = () => {+ const eventProperties = eventPropertiesRef.current;+ if (!eventProperties) return;++ analytics.captureForOrganization(+ AnalyticsEvent.PaywallUpgradeClicked,+ currentOrg.id,+ eventProperties+ );+ };return (<Dialog open={isOpen} onOpenChange={onOpenChange}>@@ -48,7 +98,9 @@ export const UpgradePlanModal = ({ text, isOpen, onOpenChange }: Props): JSX.EleCancel</Button><Link to="/organizations/$orgId/billing" params={{ orgId: currentOrg.id }}>- <Button variant={scopeVariant}>Upgrade Plan</Button>+ <Button variant={scopeVariant} onClick={handleUpgradeClick}>+ Upgrade Plan+ </Button></Link></DialogFooter></DialogContent>diff --git a/frontend/src/components/pki-syncs/PkiSyncSelect.tsx b/frontend/src/components/pki-syncs/PkiSyncSelect.tsxindex d8bab5571f..216f118026 100644--- a/frontend/src/components/pki-syncs/PkiSyncSelect.tsx+++ b/frontend/src/components/pki-syncs/PkiSyncSelect.tsx@@ -149,6 +149,7 @@ export const PkiSyncSelect = ({ onSelect }: Props) => {</p><UpgradePlanModal+ paywallKey="pki.sync-provider"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}isEnterpriseFeature={popUp.upgradePlan.data?.isEnterpriseFeature}diff --git a/frontend/src/components/projects/NewProjectModal.tsx b/frontend/src/components/projects/NewProjectModal.tsxindex d22470b6fd..f2b7baa206 100644--- a/frontend/src/components/projects/NewProjectModal.tsx+++ b/frontend/src/components/projects/NewProjectModal.tsx@@ -359,6 +359,7 @@ const NewProjectForm = ({ onOpenChange, projectType: fixedProjectType }: NewProj</Button></DialogFooter><UpgradePlanModal+ paywallKey="project.external-kms"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Your current plan does not include access to external KMS. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/components/secret-syncs/SecretSyncSelect.tsx b/frontend/src/components/secret-syncs/SecretSyncSelect.tsxindex a4ef36da0e..59857a843a 100644--- a/frontend/src/components/secret-syncs/SecretSyncSelect.tsx+++ b/frontend/src/components/secret-syncs/SecretSyncSelect.tsx@@ -196,6 +196,7 @@ export const SecretSyncSelect = ({ onSelect }: Props) => {)}<UpgradePlanModal+ paywallKey="secret-manager.secret-sync-provider"isOpen={popUp.upgradePlan.isOpen}isEnterpriseFeature={popUp.upgradePlan.data?.isEnterpriseFeature}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgSubmenuView.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgSubmenuView.tsxindex f077c5c41a..ff7722d83c 100644--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgSubmenuView.tsx+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgSubmenuView.tsx@@ -111,6 +111,7 @@ export const OrgSettingsSubmenuView = ({ onBack }: { onBack: () => void }) => {))}</SidebarMenu><UpgradePlanModal+ paywallKey="organization.sub-organizations"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="You need to upgrade your plan to manage sub-organizations."diff --git a/frontend/src/layouts/PamLayout/PamLayout.tsx b/frontend/src/layouts/PamLayout/PamLayout.tsxindex a9268a3e2f..6baec49d62 100644--- a/frontend/src/layouts/PamLayout/PamLayout.tsx+++ b/frontend/src/layouts/PamLayout/PamLayout.tsx@@ -22,6 +22,7 @@ export const PamLayout = () => {{assumedPrivilegeDetails && <AssumePrivilegeModeBanner />}<Outlet /><UpgradePlanModal+ paywallKey="pam.product-access"isOpen={isUpgradeModalOpen}onOpenChange={setIsUpgradeModalOpen}text="PAM is not available on your current plan. Upgrade to continue using it."diff --git a/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx b/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsxindex 7f6737af0c..d614e449ca 100644--- a/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx+++ b/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx@@ -28,6 +28,7 @@ export const PkiManagerLayout = () => {<Outlet /></div><UpgradePlanModal+ paywallKey="cert-manager.product-access"isOpen={isUpgradeModalOpen}onOpenChange={setIsUpgradeModalOpen}text="Certificate Manager is not available on your current plan. Upgrade to continue using it."diff --git a/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx b/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsxindex 61033e5d70..7287e56dcb 100644--- a/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx+++ b/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx@@ -257,6 +257,7 @@ const ProjectSelectInner = () => {</NavbarSwitcherContent></NavbarSwitcher><UpgradePlanModal+ paywallKey="project.limit"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="You've reached the maximum number of projects available on the Free plan. Upgrade to the Infisical Pro plan to create more projects."diff --git a/frontend/src/lib/analytics/events.ts b/frontend/src/lib/analytics/events.tsnew file mode 100644index 0000000000..4c1881894b--- /dev/null+++ b/frontend/src/lib/analytics/events.ts@@ -0,0 +1,18 @@+export const AnalyticsEvent = {+ PaywallViewed: "Paywall Viewed",+ PaywallUpgradeClicked: "Paywall Upgrade Clicked"+} as const;++type PaywallProperties = {+ paywallKey: string;+ paywallText: string;+ route: string;+ isEnterpriseFeature: boolean;+};++export type OrganizationAnalyticsEventMap = {+ [AnalyticsEvent.PaywallViewed]: PaywallProperties;+ [AnalyticsEvent.PaywallUpgradeClicked]: PaywallProperties;+};++export type OrganizationAnalyticsEvent = keyof OrganizationAnalyticsEventMap;diff --git a/frontend/src/lib/analytics/index.ts b/frontend/src/lib/analytics/index.tsnew file mode 100644index 0000000000..53cba9f758--- /dev/null+++ b/frontend/src/lib/analytics/index.ts@@ -0,0 +1,24 @@+import Telemetry from "@app/components/utilities/telemetry/Telemetry";++import {+ AnalyticsEvent,+ OrganizationAnalyticsEvent,+ OrganizationAnalyticsEventMap+} from "./events";++export const analytics = {+ captureForOrganization<Event extends OrganizationAnalyticsEvent>(+ event: Event,+ orgId: string,+ properties: OrganizationAnalyticsEventMap[Event]+ ) {+ const telemetry = new Telemetry().getInstance();+ telemetry.capture(event, {+ ...properties,+ orgId,+ $groups: { organization: orgId }+ });+ }+};++export { AnalyticsEvent };diff --git a/frontend/src/pages/admin/AccessManagementPage/components/ServerAdminsTable.tsx b/frontend/src/pages/admin/AccessManagementPage/components/ServerAdminsTable.tsxindex e675f8928b..7c4dfc18b2 100644--- a/frontend/src/pages/admin/AccessManagementPage/components/ServerAdminsTable.tsx+++ b/frontend/src/pages/admin/AccessManagementPage/components/ServerAdminsTable.tsx@@ -404,6 +404,7 @@ export const ServerAdminsTable = () => {onOpenChange={(isOpen) => handlePopUpToggle("addServerAdmin", isOpen)}/><UpgradePlanModal+ paywallKey="admin.server-admins"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Your current plan does not allow removing server admins. To unlock this feature, please upgrade to Infisical Pro plan."diff --git a/frontend/src/pages/admin/EncryptionPage/components/EncryptionPageForm.tsx b/frontend/src/pages/admin/EncryptionPage/components/EncryptionPageForm.tsxindex b0e15d5e7a..2d192f8735 100644--- a/frontend/src/pages/admin/EncryptionPage/components/EncryptionPageForm.tsx+++ b/frontend/src/pages/admin/EncryptionPage/components/EncryptionPageForm.tsx@@ -158,6 +158,7 @@ export const EncryptionPageForm = () => {</CardContent></Card><UpgradePlanModal+ paywallKey="admin.encryption-page"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={popUp.upgradePlan?.data?.text}diff --git a/frontend/src/pages/admin/ResourceOverviewPage/components/UserIdentitiesTable.tsx b/frontend/src/pages/admin/ResourceOverviewPage/components/UserIdentitiesTable.tsxindex 06c1df555c..8307e4754c 100644--- a/frontend/src/pages/admin/ResourceOverviewPage/components/UserIdentitiesTable.tsx+++ b/frontend/src/pages/admin/ResourceOverviewPage/components/UserIdentitiesTable.tsx@@ -500,6 +500,7 @@ export const UserIdentitiesTable = () => {buttonText="Remove Access"/><UpgradePlanModal+ paywallKey="admin.user-identities"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={popUp.upgradePlan.data?.text}diff --git a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSettingsTab.tsx b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSettingsTab.tsxindex bc0b3d8694..41aa64c624 100644--- a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSettingsTab.tsx+++ b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSettingsTab.tsx@@ -876,6 +876,7 @@ export const ApplicationSettingsTab = ({ application, profiles }: Props) => {applicationId={application.id}/><UpgradePlanModal+ paywallKey="cert-manager.application-settings"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={(popUp.upgradePlan?.data as { text: string })?.text}diff --git a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSyncsTab.tsx b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSyncsTab.tsxindex 3b30623adb..65980bf0ba 100644--- a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSyncsTab.tsx+++ b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSyncsTab.tsx@@ -89,6 +89,7 @@ export const ApplicationSyncsTab = ({ applicationId, applicationName, projectIdapplicationId={applicationId}/><UpgradePlanModal+ paywallKey="cert-manager.application-syncs"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Certificate Syncs are available on Infisical's Enterprise plan."diff --git a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaDistributionPointsSection.tsx b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaDistributionPointsSection.tsxindex 4e3ef18378..e9ac2bd456 100644--- a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaDistributionPointsSection.tsx+++ b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaDistributionPointsSection.tsx@@ -304,6 +304,7 @@ export const CaDistributionPointsSection = ({ caId }: Props) => {</Modal><UpgradePlanModal+ paywallKey="cert-manager.ca-distribution-points"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Certificate revocation lists are available on Infisical's Enterprise plan."diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaSection.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaSection.tsxindex f285d02649..4f56a337de 100644--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaSection.tsx+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaSection.tsx@@ -148,6 +148,7 @@ export const CaSection = () => {</CardContent><CreateCaWizard isOpen={isCreateWizardOpen} onOpenChange={setIsCreateWizardOpen} /><UpgradePlanModal+ paywallKey="cert-manager.ca"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={(popUp.upgradePlan?.data as { text: string })?.text}diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaSection.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaSection.tsxindex c84211f337..a6d1744cc8 100644--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaSection.tsx+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/ExternalCaSection.tsx@@ -155,6 +155,7 @@ export const ExternalCaSection = () => {/><UpgradePlanModal+ paywallKey="cert-manager.external-ca"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={(popUp.upgradePlan?.data as { text: string })?.text}diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplatesSection.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplatesSection.tsxindex 8a17981ea3..f5261b93c2 100644--- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplatesSection.tsx+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateTemplatesSection.tsx@@ -94,6 +94,7 @@ export const CertificateTemplatesSection = ({ caId }: Props) => {}/><UpgradePlanModal+ paywallKey="cert-manager.certificate-templates"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}isEnterpriseFeature={popUp.upgradePlan.data?.isEnterpriseFeature}diff --git a/frontend/src/pages/cert-manager/CodeSigningPage/components/SignersTable.tsx b/frontend/src/pages/cert-manager/CodeSigningPage/components/SignersTable.tsxindex 363c286d29..85da4a78a1 100644--- a/frontend/src/pages/cert-manager/CodeSigningPage/components/SignersTable.tsx+++ b/frontend/src/pages/cert-manager/CodeSigningPage/components/SignersTable.tsx@@ -228,6 +228,7 @@ export const SignersTable = ({ projectId, onCreateSigner }: Props) => {)}</CardContent><UpgradePlanModal+ paywallKey="cert-manager.signers"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Code signing is available on Infisical's Enterprise plan."diff --git a/frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobsTab.tsx b/frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobsTab.tsxindex 57fd08f154..c39891280e 100644--- a/frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobsTab.tsx+++ b/frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobsTab.tsx@@ -364,6 +364,7 @@ export const DiscoveryJobsTab = ({ projectId }: Props) => {/><UpgradePlanModal+ paywallKey="cert-manager.discovery-jobs"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={(popUp.upgradePlan?.data as { text: string })?.text}diff --git a/frontend/src/pages/cert-manager/PkiTemplateListPage/PkiTemplateListPage.tsx b/frontend/src/pages/cert-manager/PkiTemplateListPage/PkiTemplateListPage.tsxindex 91ec4e0c36..fd9311ad19 100644--- a/frontend/src/pages/cert-manager/PkiTemplateListPage/PkiTemplateListPage.tsx+++ b/frontend/src/pages/cert-manager/PkiTemplateListPage/PkiTemplateListPage.tsx@@ -317,6 +317,7 @@ export const PkiTemplateListPage = () => {/></div><UpgradePlanModal+ paywallKey="cert-manager.pki-template-list"isOpen={popUp.estUpgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("estUpgradePlan", isOpen)}text="Your current plan does not include access to configuring template enrollment methods. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CertificateProfilesTab.tsx b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CertificateProfilesTab.tsxindex b2f47dd055..5e81a354ad 100644--- a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CertificateProfilesTab.tsx+++ b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CertificateProfilesTab.tsx@@ -109,6 +109,7 @@ export const CertificateProfilesTab = () => {<CreateProfileModal isOpen={isCreateModalOpen} onClose={() => setIsCreateModalOpen(false)} /><UpgradePlanModal+ paywallKey="cert-manager.certificate-profiles"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}isEnterpriseFeature={popUp.upgradePlan.data?.isEnterpriseFeature}diff --git a/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/HsmConnectorsTab.tsx b/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/HsmConnectorsTab.tsxindex 8c0e31b748..57739592f2 100644--- a/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/HsmConnectorsTab.tsx+++ b/frontend/src/pages/cert-manager/SettingsPage/components/HsmConnectorsTab/HsmConnectorsTab.tsx@@ -117,6 +117,7 @@ export const HsmConnectorsTab = () => {<Button onClick={() => setUpgradeOpen(true)}>Upgrade to Enterprise</Button></div><UpgradePlanModal+ paywallKey="cert-manager.hsm-connectors"isOpen={upgradeOpen}onOpenChange={setUpgradeOpen}text="To use HSM Connectors, upgrade to Infisical's Enterprise plan."diff --git a/frontend/src/pages/kms/KmipPage/components/KmipClientTable.tsx b/frontend/src/pages/kms/KmipPage/components/KmipClientTable.tsxindex 0b6818f6b9..b16b47c8f8 100644--- a/frontend/src/pages/kms/KmipPage/components/KmipClientTable.tsx+++ b/frontend/src/pages/kms/KmipPage/components/KmipClientTable.tsx@@ -342,6 +342,7 @@ export const KmipClientTable = () => {certificate={popUp.displayKmipClientCert.data}/><UpgradePlanModal+ paywallKey="kms.kmip-client"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Your current plan does not include access to KMIP. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgGroupsTab/components/OrgGroupsSection/OrgGroupsSection.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgGroupsTab/components/OrgGroupsSection/OrgGroupsSection.tsxindex 4cd2ee7bbf..2ab02c7610 100644--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgGroupsTab/components/OrgGroupsSection/OrgGroupsSection.tsx+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgGroupsTab/components/OrgGroupsSection/OrgGroupsSection.tsx@@ -138,6 +138,7 @@ export const OrgGroupsSection = () => {}/><UpgradePlanModal+ paywallKey="organization.org-groups"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}isEnterpriseFeature={popUp.upgradePlan.data?.isEnterpriseFeature}diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/CreateOrgIdentitySheet.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/CreateOrgIdentitySheet.tsxindex f5b8587822..8e0d44c3c7 100644--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/CreateOrgIdentitySheet.tsx+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/CreateOrgIdentitySheet.tsx@@ -181,6 +181,7 @@ const CreateOrgIdentityForm = ({ onClose }: { onClose: () => void }) => {</Button></SheetFooter><UpgradePlanModal+ paywallKey="organization.create-org-identity-sheet"isOpen={upgradePlanPopUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handleUpgradePlanPopUpToggle("upgradePlan", isOpen)}text="Assigning custom roles to machine identities can be unlocked if you upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthMethodModalContent.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthMethodModalContent.tsxindex 2d0a8c9e6c..2e83b6196a 100644--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthMethodModalContent.tsx+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityAuthMethodModalContent.tsx@@ -452,6 +452,7 @@ export const IdentityAuthMethodModalContent = ({/>{selectedMethodItem?.render ? selectedMethodItem.render() : <div />}<UpgradePlanModal+ paywallKey="organization.identity-auth-method-modal"isOpen={popUp?.upgradePlan?.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={`Your current plan does not include access to ${popUp.upgradePlan.data?.featureName}. To unlock this feature, please upgrade to Infisical ${popUp.upgradePlan.data?.isEnterpriseFeature ? "Enterprise" : "Pro"} plan.`}diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySection.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySection.tsxindex 24b7f222d3..c1fd66e434 100644--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySection.tsx+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySection.tsx@@ -309,6 +309,7 @@ const IdentitySectionContent = ({ view = "identities" }: Props) => {</>)}<UpgradePlanModal+ paywallKey="organization.identity"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={popUp.upgradePlan.data?.text}diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/OrgIdentityModal.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/OrgIdentityModal.tsxindex f45e63041d..b899faa422 100644--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/OrgIdentityModal.tsx+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/OrgIdentityModal.tsx@@ -304,6 +304,7 @@ export const OrgIdentityModal = ({ popUp, handlePopUpToggle }: Props) => {</Button></div><UpgradePlanModal+ paywallKey="organization.org-identity"isOpen={upgradePlanPopUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handleUpgradePlanPopUpToggle("upgradePlan", isOpen)}text="Assigning custom roles to machine identities can be unlocked if you upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/OrgMembersSection.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/OrgMembersSection.tsxindex 51dc9c4ad1..d72979308c 100644--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/OrgMembersSection.tsx+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/OrgMembersSection.tsx@@ -283,6 +283,7 @@ export const OrgMembersSection = () => {</div></DeleteActionModal><UpgradePlanModal+ paywallKey="organization.org-members"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={popUp.upgradePlan?.data?.text}diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgRoleTabSection/OrgRoleTable.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgRoleTabSection/OrgRoleTable.tsxindex 7fc477b8f0..94b64e3b4f 100644--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgRoleTabSection/OrgRoleTable.tsx+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgRoleTabSection/OrgRoleTable.tsx@@ -550,6 +550,7 @@ export const OrgRoleTable = () => {onDeleteApproved={handleRoleDelete}/><UpgradePlanModal+ paywallKey="organization.org-role"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={popUp.upgradePlan?.data?.text}diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionList.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionList.tsxindex 438fb0ae66..d67607517e 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionList.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionList.tsx@@ -210,6 +210,7 @@ export const AppConnectionsSelect = ({ onSelect, projectType }: Props) => {</p><UpgradePlanModal+ paywallKey="organization.app-connection-list"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="All App Connections can be unlocked if you switch to Infisical Enterprise plan."diff --git a/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/AuditLogStreamTab.tsx b/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/AuditLogStreamTab.tsxindex 0c4fa5fa40..6d4631fd74 100644--- a/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/AuditLogStreamTab.tsx+++ b/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/AuditLogStreamTab.tsx@@ -72,6 +72,7 @@ export const AuditLogStreamsTab = withPermission(onOpenChange={(isOpen) => handlePopUpToggle("auditLogStreamForm", isOpen)}/><UpgradePlanModal+ paywallKey="organization.audit-log-stream"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Your current plan does not include access to audit log streams. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/LogStreamProviderSelect.tsx b/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/LogStreamProviderSelect.tsxindex 10089a00aa..6f167e3575 100644--- a/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/LogStreamProviderSelect.tsx+++ b/frontend/src/pages/organization/AuditLogsPage/components/AuditLogStreamTab/components/LogStreamProviderSelect.tsx@@ -83,6 +83,7 @@ export const LogStreamProviderSelect = ({ onSelect }: Props) => {})}</div><UpgradePlanModal+ paywallKey="organization.log-stream-provider-select"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Your current plan does not include access to this audit log stream provider. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/organization/AuditLogsPage/components/LogsSection.tsx b/frontend/src/pages/organization/AuditLogsPage/components/LogsSection.tsxindex 8eb3603016..acbc4b2e53 100644--- a/frontend/src/pages/organization/AuditLogsPage/components/LogsSection.tsx+++ b/frontend/src/pages/organization/AuditLogsPage/components/LogsSection.tsx@@ -214,6 +214,7 @@ const LogsSectionComponent = ({/></CardContent><UpgradePlanModal+ paywallKey="organization.logs"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => {handlePopUpToggle("upgradePlan", isOpen);@@ -298,6 +299,7 @@ const LogsSectionComponent = ({timezone={timezone}/><UpgradePlanModal+ paywallKey="organization.logs"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => {handlePopUpToggle("upgradePlan", isOpen);diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsxindex 6383da70fc..c35537fdc6 100644--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx@@ -241,6 +241,7 @@ const Page = () => {handlePopUpToggle={handlePopUpToggle}/><UpgradePlanModal+ paywallKey="organization.identity-details-by-id"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={`Your current plan does not include access to ${popUp.upgradePlan.data?.featureName}. To unlock this feature, please upgrade to Infisical ${popUp.upgradePlan.data?.isEnterpriseFeature ? "Enterprise" : "Pro"} plan.`}diff --git a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/GatewayTab.tsx b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/GatewayTab.tsxindex ccfee02586..7d4e618b3c 100644--- a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/GatewayTab.tsx+++ b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/GatewayTab.tsx@@ -536,6 +536,7 @@ export const GatewayTab = withPermission(onToggle={(isOpen) => handlePopUpToggle("createPool", isOpen)}/><UpgradePlanModal+ paywallKey="organization.gateway"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Your current plan does not include access to gateway pools. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/ProductSettingsPage.tsx b/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/ProductSettingsPage.tsxindex 69b2e2b92f..5b0377b66c 100644--- a/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/ProductSettingsPage.tsx+++ b/frontend/src/pages/organization/ProductSettingsPage/SecretsManagement/ProductSettingsPage.tsx@@ -156,6 +156,7 @@ export const ProductSettingsPage = () => {</div></div><UpgradePlanModal+ paywallKey="organization.product-settings"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Cross-project secret sharing is not available on your plan. Upgrade to the Infisical Pro plan to enable this feature."diff --git a/frontend/src/pages/organization/ProductSettingsPage/project-templates/ProjectTemplatesSection.tsx b/frontend/src/pages/organization/ProductSettingsPage/project-templates/ProjectTemplatesSection.tsxindex 473bcee264..066ad503eb 100644--- a/frontend/src/pages/organization/ProductSettingsPage/project-templates/ProjectTemplatesSection.tsx+++ b/frontend/src/pages/organization/ProductSettingsPage/project-templates/ProjectTemplatesSection.tsx@@ -82,6 +82,7 @@ export const ProjectTemplatesSection = ({ projectType, onTemplateSelect }: PropsonOpenChange={(isOpen) => handlePopUpToggle("addTemplate", isOpen)}/><UpgradePlanModal+ paywallKey="organization.project-templates"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Your current plan does not include access to project templates. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/organization/ProjectsPage/ProjectTypePage/ProjectTypePage.tsx b/frontend/src/pages/organization/ProjectsPage/ProjectTypePage/ProjectTypePage.tsxindex 0b4237accd..3402885da3 100644--- a/frontend/src/pages/organization/ProjectsPage/ProjectTypePage/ProjectTypePage.tsx+++ b/frontend/src/pages/organization/ProjectsPage/ProjectTypePage/ProjectTypePage.tsx@@ -373,6 +373,7 @@ const ProjectTypeContent = ({projectType={projectType}/><UpgradePlanModal+ paywallKey="organization.project-type"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="You have reached the maximum number of projects allowed on your current plan. Upgrade to Infisical Pro plan to add more projects."diff --git a/frontend/src/pages/organization/RoleByIDPage/components/DuplicateOrgRoleModal.tsx b/frontend/src/pages/organization/RoleByIDPage/components/DuplicateOrgRoleModal.tsxindex 76849be132..f26d653f28 100644--- a/frontend/src/pages/organization/RoleByIDPage/components/DuplicateOrgRoleModal.tsx+++ b/frontend/src/pages/organization/RoleByIDPage/components/DuplicateOrgRoleModal.tsx@@ -163,6 +163,7 @@ const Content = ({ role, onClose }: ContentProps) => {</DialogFooter></form><UpgradePlanModal+ paywallKey="organization.duplicate-org-role"isOpen={upgradePlanPopUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handleUpgradePlanPopUpToggle("upgradePlan", isOpen)}text="Your current plan does not include custom roles. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/organization/RoleByIDPage/components/RoleModal.tsx b/frontend/src/pages/organization/RoleByIDPage/components/RoleModal.tsxindex 42e8f045a7..f91a517061 100644--- a/frontend/src/pages/organization/RoleByIDPage/components/RoleModal.tsx+++ b/frontend/src/pages/organization/RoleByIDPage/components/RoleModal.tsx@@ -221,6 +221,7 @@ export const RoleModal = ({ popUp, handlePopUpToggle }: Props) => {</DialogContent></Dialog><UpgradePlanModal+ paywallKey="organization.role"isOpen={upgradePlanPopUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handleUpgradePlanPopUpToggle("upgradePlan", isOpen)}text="Your current plan does not include custom roles. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsx b/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsxindex c50c69eabe..73fe35dfcf 100644--- a/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsx+++ b/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsx@@ -279,6 +279,7 @@ export const SecretInsightsPage = withPermission(isAuditLogSupported={isClickhouseEnabled}/><UpgradePlanModal+ paywallKey="organization.secret-insights"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Your current plan does not include access to secret insights. To unlock this feature, please upgrade your Infisical plan."diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/OrgEncryptionTab.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/OrgEncryptionTab.tsxindex 90e8d9a6bf..8d0b0cc2b0 100644--- a/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/OrgEncryptionTab.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/OrgEncryptionTab.tsx@@ -179,6 +179,7 @@ export const OrgEncryptionTab = withPermission()}</CardContent><UpgradePlanModal+ paywallKey="organization.org-encryption"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Your current plan does not include access to external KMS. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgProvisioningTab/OrgGithubSyncSection.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgProvisioningTab/OrgGithubSyncSection.tsxindex 7d76bd962b..1f0adbdd24 100644--- a/frontend/src/pages/organization/SettingsPage/components/OrgProvisioningTab/OrgGithubSyncSection.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/OrgProvisioningTab/OrgGithubSyncSection.tsx@@ -190,6 +190,7 @@ export const OrgGithubSyncSection = () => {handlePopUpToggle={handlePopUpToggle}/><UpgradePlanModal+ paywallKey="organization.org-github-sync"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Your current plan does not include access to GitHub Organization Sync. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgProvisioningTab/OrgSCIMSection.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgProvisioningTab/OrgSCIMSection.tsxindex 96a4e48cf1..9c73ce1dae 100644--- a/frontend/src/pages/organization/SettingsPage/components/OrgProvisioningTab/OrgSCIMSection.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/OrgProvisioningTab/OrgSCIMSection.tsx@@ -123,6 +123,7 @@ export const OrgScimSection = () => {handlePopUpToggle={handlePopUpToggle}/><UpgradePlanModal+ paywallKey="organization.org-scim"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Your current plan does not include access to SCIM Provisioning. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgSecurityTab/OrgGenericAuthSection.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgSecurityTab/OrgGenericAuthSection.tsxindex 4a2f923b32..578fb89cd3 100644--- a/frontend/src/pages/organization/SettingsPage/components/OrgSecurityTab/OrgGenericAuthSection.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/OrgSecurityTab/OrgGenericAuthSection.tsx@@ -138,6 +138,7 @@ export const OrgGenericAuthSection = () => {</CardContent></Card><UpgradePlanModal+ paywallKey="organization.org-generic-auth"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Your current plan does not include access to enforce user MFA. To unlock this feature, please upgrade to Infisical Advanced plan."diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgGeneralAuthSection.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgGeneralAuthSection.tsxindex 2ed32df2d9..5e9b7fdd61 100644--- a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgGeneralAuthSection.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgGeneralAuthSection.tsx@@ -387,6 +387,7 @@ export const OrgGeneralAuthSection = ({</Card><UpgradePlanModal+ paywallKey="organization.org-general-auth"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={`Your current plan does not include access to ${popUp.upgradePlan.data?.featureName ?? "enforce SAML SSO"}. To unlock this feature, please upgrade to Infisical ${popUp.upgradePlan.data?.planName ?? "Pro"} plan.`}diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgLDAPSection.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgLDAPSection.tsxindex a41970b263..c748394e82 100644--- a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgLDAPSection.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgLDAPSection.tsx@@ -216,6 +216,7 @@ export const OrgLDAPSection = ({ onSwitchProvider }: Props): JSX.Element => {handlePopUpToggle={handlePopUpToggle}/><UpgradePlanModal+ paywallKey="organization.org-ldap.section"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Your current plan does not include access to LDAP authentication. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgOIDCSection.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgOIDCSection.tsxindex 2358e154cb..a4bdcc8531 100644--- a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgOIDCSection.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgOIDCSection.tsx@@ -270,6 +270,7 @@ export const OrgOIDCSection = ({ onSwitchProvider }: Props): JSX.Element => {handlePopUpToggle={handlePopUpToggle}/><UpgradePlanModal+ paywallKey="organization.org-oidc.section"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Your current plan does not include access to OIDC SSO. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgSSOSection.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgSSOSection.tsxindex 636772290d..2efc2ff800 100644--- a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgSSOSection.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgSSOSection.tsx@@ -262,6 +262,7 @@ export const OrgSSOSection = ({ onSwitchProvider }: Props): JSX.Element => {handlePopUpToggle={handlePopUpToggle}/><UpgradePlanModal+ paywallKey="organization.org-sso.section"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={popUp.upgradePlan.data?.text}diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgSsoTab.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgSsoTab.tsxindex bfadce5e23..c34d4f7fc0 100644--- a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgSsoTab.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgSsoTab.tsx@@ -175,7 +175,10 @@ export const OrgSsoTab = withPermission(const handleConnectSaml = async () => {if (!subscription?.samlSSO) {- handlePopUpOpen("upgradePlan", { featureName: "SAML SSO" });+ handlePopUpOpen("upgradePlan", {+ featureName: "SAML SSO",+ paywallKey: "organization.org-sso.chooser"+ });return;}if (!currentOrg) return;@@ -196,7 +199,8 @@ export const OrgSsoTab = withPermission(if (!subscription?.oidcSSO) {handlePopUpOpen("upgradePlan", {featureName: "OIDC SSO",- isEnterpriseFeature: true+ isEnterpriseFeature: true,+ paywallKey: "organization.org-oidc.chooser"});return;}@@ -207,7 +211,8 @@ export const OrgSsoTab = withPermission(if (!subscription?.ldap) {handlePopUpOpen("upgradePlan", {featureName: "LDAP",- isEnterpriseFeature: true+ isEnterpriseFeature: true,+ paywallKey: "organization.org-ldap.chooser"});return;}@@ -575,6 +580,7 @@ export const OrgSsoTab = withPermission(</>)}<UpgradePlanModal+ paywallKey={popUp.upgradePlan.data?.paywallKey ?? "organization.org-sso.chooser"}isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={`Your current plan does not include access to ${popUp.upgradePlan.data?.featureName}. To unlock this feature, please upgrade to Infisical ${popUp.upgradePlan.data?.isEnterpriseFeature ? "Enterprise" : "Pro"} plan.`}diff --git a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplatesSection.tsx b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplatesSection.tsxindex 156d8184d0..8987674583 100644--- a/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplatesSection.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/ProjectTemplatesTab/components/ProjectTemplatesSection.tsx@@ -69,6 +69,7 @@ export const ProjectTemplatesSection = () => {onOpenChange={(isOpen) => handlePopUpToggle("addTemplate", isOpen)}/><UpgradePlanModal+ paywallKey="organization.project-templates"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Your current plan does not include access to project templates. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx b/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsxindex b95141c9a7..b387c57e26 100644--- a/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx+++ b/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx@@ -254,6 +254,7 @@ const Page = withPermission(/><UpgradePlanModal+ paywallKey="organization.user-details-by-id"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={popUp.upgradePlan?.data?.text}diff --git a/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupRoles.tsx b/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupRoles.tsxindex 51cefe9e92..42503dd73d 100644--- a/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupRoles.tsx+++ b/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupRoles.tsx@@ -385,6 +385,7 @@ const GroupRolesForm = ({ projectRoles, roles, groupId, onClose }: FormProps) =></Button></div><UpgradePlanModal+ paywallKey="project.group-roles"isOpen={upgradePlanPopUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handleUpgradePlanPopUpToggle("upgradePlan", isOpen)}text="Assigning custom roles to groups can be unlocked if you upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsSection.tsx b/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsSection.tsxindex c8b2730548..aab89b042c 100644--- a/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsSection.tsx+++ b/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsSection.tsx@@ -121,6 +121,7 @@ export const GroupsSection = () => {}}/><UpgradePlanModal+ paywallKey="project.groups"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={popUp.upgradePlan?.data?.text}diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleModify.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleModify.tsxindex 354ba54f45..a713ea0cb0 100644--- a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleModify.tsx+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleModify.tsx@@ -368,6 +368,7 @@ export const IdentityRoleModify = ({ identityProjectMembership, onClose }: Props</Button></SheetFooter><UpgradePlanModal+ paywallKey="project.identity-role-modify"isOpen={upgradePlanPopUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handleUpgradePlanPopUpToggle("upgradePlan", isOpen)}text="Assigning custom roles to machine identities can be unlocked if you upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentitySingleRoleModify.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentitySingleRoleModify.tsxindex 6b0a76a5b6..66136e0c8b 100644--- a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentitySingleRoleModify.tsx+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentitySingleRoleModify.tsx@@ -101,6 +101,7 @@ export const IdentitySingleRoleModify = ({ identityProjectMembership, role, onSu</Button></div><UpgradePlanModal+ paywallKey="project.identity-single-role-modify"isOpen={upgradePlanPopUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handleUpgradePlanPopUpToggle("upgradePlan", isOpen)}text="Assigning custom roles to machine identities can be unlocked if you upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityAuthSection.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityAuthSection.tsxindex 4bca32ba7d..7e6bccd931 100644--- a/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityAuthSection.tsx+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityAuthSection.tsx@@ -139,6 +139,7 @@ export const ProjectIdentityAuthenticationSection = ({ identity, refetchIdentityhandlePopUpToggle={handleAuthMethodPopUpToggle}/><UpgradePlanModal+ paywallKey="project.project-identity-auth"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={(popUp.upgradePlan?.data as { description: string })?.description}diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsxindex 87c86e204c..68c895ad01 100644--- a/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx+++ b/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx@@ -330,6 +330,7 @@ export const Page = () => {actorId={(popUp.assumePrivileges.data as { userId: string })?.userId}/><UpgradePlanModal+ paywallKey="project.member-details-by-id"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={popUp.upgradePlan?.data?.text}diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/components/DuplicateProjectRoleModal.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/components/DuplicateProjectRoleModal.tsxindex 9f11c7d493..13c80b9933 100644--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/DuplicateProjectRoleModal.tsx+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/DuplicateProjectRoleModal.tsx@@ -200,6 +200,7 @@ const Content = ({ role, onClose }: ContentProps) => {</SheetFooter></form><UpgradePlanModal+ paywallKey="project.duplicate-project-role"isOpen={upgradePlanPopUp.upgradePlan.isOpen}onOpenChange={(open) => handleUpgradePlanPopUpToggle("upgradePlan", open)}text="Your current plan does not include custom roles. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/components/EditProjectRoleDialog.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/components/EditProjectRoleDialog.tsxindex 352d94c8cb..226b5021b4 100644--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/EditProjectRoleDialog.tsx+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/EditProjectRoleDialog.tsx@@ -209,6 +209,7 @@ export const EditProjectRoleDialog = ({ isOpen, role, onOpenChange }: Props) =></SheetContent></Sheet><UpgradePlanModal+ paywallKey="project.edit-project-role-dialog"isOpen={upgradePlanPopUp.upgradePlan.isOpen}onOpenChange={(open) => handleUpgradePlanPopUpToggle("upgradePlan", open)}text="Your current plan does not include custom roles. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/components/RoleModal.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/components/RoleModal.tsxindex 835b28d919..f486b5f528 100644--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/RoleModal.tsx+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/RoleModal.tsx@@ -201,6 +201,7 @@ export const RoleModal = ({ popUp, handlePopUpToggle }: Props) => {</SheetContent></Sheet><UpgradePlanModal+ paywallKey="project.role"isOpen={upgradePlanPopUp.upgradePlan.isOpen}onOpenChange={(open) => handleUpgradePlanPopUpToggle("upgradePlan", open)}text="Your current plan does not include custom roles. To unlock this feature, please upgrade to Infisical Enterprise plan."diff --git a/frontend/src/pages/project/SettingsPage/components/AuditLogsRetentionSection/AuditLogsRetentionSection.tsx b/frontend/src/pages/project/SettingsPage/components/AuditLogsRetentionSection/AuditLogsRetentionSection.tsxindex 32d517c31c..c4bbf87944 100644--- a/frontend/src/pages/project/SettingsPage/components/AuditLogsRetentionSection/AuditLogsRetentionSection.tsx+++ b/frontend/src/pages/project/SettingsPage/components/AuditLogsRetentionSection/AuditLogsRetentionSection.tsx@@ -137,6 +137,7 @@ export const AuditLogsRetentionSection = () => {</Card></form><UpgradePlanModal+ paywallKey="project.audit-logs-retention"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text={popUp.upgradePlan?.data?.text}diff --git a/frontend/src/pages/project/SettingsPage/components/CrossProjectSharingSection/CrossProjectSharingSection.tsx b/frontend/src/pages/project/SettingsPage/components/CrossProjectSharingSection/CrossProjectSharingSection.tsxindex 3aa40e7b69..627e2ea3b9 100644--- a/frontend/src/pages/project/SettingsPage/components/CrossProjectSharingSection/CrossProjectSharingSection.tsx+++ b/frontend/src/pages/project/SettingsPage/components/CrossProjectSharingSection/CrossProjectSharingSection.tsx@@ -448,6 +448,7 @@ export const CrossProjectSharingSection = () => {sourceProjectId={currentProject.id}/><UpgradePlanModal+ paywallKey="project.cross-project-sharing"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Your current plan does not allow sharing secrets across projects. To unlock this feature, please upgrade to Infisical Pro plan."diff --git a/frontend/src/pages/secret-manager/InsightsPage/InsightsPage.tsx b/frontend/src/pages/secret-manager/InsightsPage/InsightsPage.tsxindex 57e9eafbee..8e058cea71 100644--- a/frontend/src/pages/secret-manager/InsightsPage/InsightsPage.tsx+++ b/frontend/src/pages/secret-manager/InsightsPage/InsightsPage.tsx@@ -141,6 +141,7 @@ export const InsightsPage = withProjectPermission(</div></div><UpgradePlanModal+ paywallKey="secret-manager.insights"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => {handlePopUpToggle("upgradePlan", isOpen);diff --git a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsxindex 62b085f54b..b0b4de49fe 100644--- a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx@@ -3683,6 +3683,7 @@ const OverviewPageContent = () => {/>{subscription && (<UpgradePlanModal+ paywallKey="secret-manager.overview"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}isEnterpriseFeature={popUp.upgradePlan.data?.isEnterpriseFeature}diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/EnvironmentSelect/EnvironmentSelect.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/EnvironmentSelect/EnvironmentSelect.tsxindex 9b20c5c774..858d01f5d4 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/EnvironmentSelect/EnvironmentSelect.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/EnvironmentSelect/EnvironmentSelect.tsx@@ -115,6 +115,7 @@ export function EnvironmentSelect({ selectedEnvs, setSelectedEnvs, isDisabled }:}}/><UpgradePlanModal+ paywallKey="secret-manager.environment-select"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(open) => handlePopUpToggle("upgradePlan", open)}text="Your current plan does not include access to adding custom environments. To unlock this feature, please upgrade to Infisical Pro plan."diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsxindex c212339315..83854b20d9 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx@@ -1898,6 +1898,7 @@ export const SecretEditTableRow = ({</SheetContent></Sheet><UpgradePlanModal+ paywallKey="secret-manager.secret-edit-table-row"isOpen={popUp.accessInsightsUpgrade.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("accessInsightsUpgrade", isOpen)}text="Secret access insights can be unlocked if you upgrade to Infisical Pro plan."diff --git a/frontend/src/pages/secret-manager/SecretApprovalsPage/components/AccessApprovalRequest/AccessApprovalRequest.tsx b/frontend/src/pages/secret-manager/SecretApprovalsPage/components/AccessApprovalRequest/AccessApprovalRequest.tsxindex df3355ec9e..78b315d287 100644--- a/frontend/src/pages/secret-manager/SecretApprovalsPage/components/AccessApprovalRequest/AccessApprovalRequest.tsx+++ b/frontend/src/pages/secret-manager/SecretApprovalsPage/components/AccessApprovalRequest/AccessApprovalRequest.tsx@@ -986,6 +986,7 @@ export const AccessApprovalRequest = ({)}<UpgradePlanModal+ paywallKey="secret-manager.access-approval-request"text={popUp.upgradePlan.data?.text}isOpen={popUp.upgradePlan.isOpen}onOpenChange={() => handlePopUpClose("upgradePlan")}diff --git a/frontend/src/pages/secret-manager/SecretApprovalsPage/components/ApprovalPolicyList/ApprovalPolicyList.tsx b/frontend/src/pages/secret-manager/SecretApprovalsPage/components/ApprovalPolicyList/ApprovalPolicyList.tsxindex a1b97a30d8..a4fa00e592 100644--- a/frontend/src/pages/secret-manager/SecretApprovalsPage/components/ApprovalPolicyList/ApprovalPolicyList.tsx+++ b/frontend/src/pages/secret-manager/SecretApprovalsPage/components/ApprovalPolicyList/ApprovalPolicyList.tsx@@ -595,6 +595,7 @@ export const ApprovalPolicyList = ({ projectId }: IProps) => {/>)}<UpgradePlanModal+ paywallKey="secret-manager.approval-policy-list"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Adding secret approval policies can be unlocked if you upgrade to Infisical Pro plan."diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentSection/EnvironmentSection.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentSection/EnvironmentSection.tsxindex 944e87ce89..7c2b7bfafd 100644--- a/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentSection/EnvironmentSection.tsx+++ b/frontend/src/pages/secret-manager/SettingsPage/components/EnvironmentSection/EnvironmentSection.tsx@@ -339,6 +339,7 @@ export const EnvironmentSection = () => {</AlertDialogContent></AlertDialog><UpgradePlanModal+ paywallKey="secret-manager.environment"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="You have reached the maximum number of environments allowed on the free plan. Upgrade to Infisical Pro plan to add more environments."diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/components/SecretScanningDataSourcesSection.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/components/SecretScanningDataSourcesSection.tsxindex 3ba6009e17..da85d67e7d 100644--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/components/SecretScanningDataSourcesSection.tsx+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/components/SecretScanningDataSourcesSection.tsx@@ -82,6 +82,7 @@ export const SecretScanningDataSourcesSection = () => {onOpenChange={(isOpen) => handlePopUpToggle("addDataSource", isOpen)}/><UpgradePlanModal+ paywallKey="secret-scanning.secret-scanning-data-sources"isOpen={popUp.upgradePlan.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}text="Creating data sources can be unlocked if you upgrade to Infisical Enterprise plan."