Skip to content

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

add legacy on the tab and posthog event

adilson6740ea7d311f
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx
index 3a72221692..b8bde45855 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx
@@ -4,6 +4,7 @@ import { useNavigate, useSearch } from "@tanstack/react-router";
import { ProjectPermissionCan } from "@app/components/permissions";
import { PageHeader, Tab, TabList, TabPanel, Tabs } from "@app/components/v2";
+import { Badge } from "@app/components/v3";
import { ROUTE_PATHS } from "@app/const/routes";
import {
ProjectPermissionActions,
@@ -82,8 +83,13 @@ export const IntegrationsListPage = () => {
Infrastructure Integrations
</Tab>
{showNativeIntegrations && (
- <Tab variant="project" value={IntegrationsListPageTabs.NativeIntegrations}>
+ <Tab
+ variant="project"
+ value={IntegrationsListPageTabs.NativeIntegrations}
+ className="gap-2"
+ >
Native Integrations
+ <Badge variant="warning">legacy</Badge>
</Tab>
)}
</TabList>
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsCreationBlockedModal.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsCreationBlockedModal.tsx
index 3160dd0359..850cb2c67c 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsCreationBlockedModal.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/NativeIntegrationsCreationBlockedModal.tsx
@@ -1,5 +1,7 @@
+import { useEffect } from "react";
import { useNavigate } from "@tanstack/react-router";
+import Telemetry from "@app/components/utilities/telemetry/Telemetry";
import {
Button,
Dialog,
@@ -20,6 +22,10 @@ type Props = {
onOpenChange: (isOpen: boolean) => void;
};
+// Measures how many users still try to create a native integration after creation was closed, so we
+// can size the remaining demand ahead of the deprecation date.
+const CREATION_BLOCKED_MODAL_VIEWED_EVENT = "Native Integration Creation Blocked Modal Viewed";
+
// Shown instead of the provider picker: native integrations are closed to new creation, so this is
// the only thing the "Add Integration" button does now.
export const NativeIntegrationsCreationBlockedModal = ({ isOpen, onOpenChange }: Props) => {
@@ -28,6 +34,21 @@ export const NativeIntegrationsCreationBlockedModal = ({ isOpen, onOpenChange }:
const { currentProject } = useProject();
const scopeVariant = useScopeVariant();
+ const telemetry = new Telemetry().getInstance();
+
+ // Fires on each open. Unlike a one-time nudge, this modal can be reopened many times per session,
+ // and each attempt is a signal worth counting.
+ useEffect(() => {
+ if (isOpen) {
+ telemetry.capture(CREATION_BLOCKED_MODAL_VIEWED_EVENT, {
+ orgId: currentOrg.id,
+ projectId: currentProject.id,
+ projectType: currentProject.type
+ });
+ }
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [isOpen]);
+
const handleGoToSecretSyncs = () => {
navigate({
to: ROUTE_PATHS.SecretManager.IntegrationsListPage.path,
@@ -42,14 +63,13 @@ export const NativeIntegrationsCreationBlockedModal = ({ isOpen, onOpenChange }:
<DialogContent className="max-w-lg">
<DialogHeader>
<DialogTitle>Use Secret Syncs Instead</DialogTitle>
- <DialogDescription>
+ <DialogDescription className="my-4 whitespace-pre-line text-foreground/75">
Native Integrations are being retired on {NATIVE_INTEGRATION_DEPRECATION_DATE}, and new
ones can no longer be created. Secret Syncs are the recommended way to sync secrets to
third-party services. They support the same services and add capabilities Native
- Integrations do not have.
+ Integrations do not have. Your existing integrations keep working until then.
</DialogDescription>
</DialogHeader>
- <p className="text-sm text-accent">Your existing integrations keep working until then.</p>
<DialogFooter>
<Button variant="ghost" onClick={() => onOpenChange(false)}>
Cancel