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
improvement(integrations): move integrations page header and tabs to v3 (#7909)
claude[bot]a8bfc1b0b340
diff --git a/frontend/src/pages/admin/IntegrationsPage/IntegrationsPage.tsx b/frontend/src/pages/admin/IntegrationsPage/IntegrationsPage.tsxindex 9c1dcdd10b..641e922720 100644--- a/frontend/src/pages/admin/IntegrationsPage/IntegrationsPage.tsx+++ b/frontend/src/pages/admin/IntegrationsPage/IntegrationsPage.tsx@@ -1,7 +1,7 @@import { Helmet } from "react-helmet";import { useTranslation } from "react-i18next";-import { PageHeader } from "@app/components/v2";+import { PageHeader } from "@app/components/v3";import { IntegrationsPageForm } from "./components";diff --git a/frontend/src/pages/cert-manager/IntegrationsListPage/IntegrationsListPage.tsx b/frontend/src/pages/cert-manager/IntegrationsListPage/IntegrationsListPage.tsxindex 687c36e223..3e3db873d9 100644--- a/frontend/src/pages/cert-manager/IntegrationsListPage/IntegrationsListPage.tsx+++ b/frontend/src/pages/cert-manager/IntegrationsListPage/IntegrationsListPage.tsx@@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next";import { useNavigate, useSearch } from "@tanstack/react-router";import { ProjectPermissionCan } from "@app/components/permissions";-import { PageHeader, TabPanel, Tabs } from "@app/components/v2";+import { PageHeader, Tabs, TabsContent } from "@app/components/v3";import { ROUTE_PATHS } from "@app/const/routes";import { ProjectPermissionSub, useOrganization, useProject } from "@app/context";import { ProjectPermissionPkiSyncActions } from "@app/context/ProjectPermissionContext/types";@@ -53,10 +53,10 @@ export const IntegrationsListPage = () => {description="Manage integrations with third-party certificate services."/><Tabs orientation="vertical" value={currentTab} onValueChange={updateSelectedTab}>- <TabPanel value={IntegrationsListPageTabs.AppConnections}>+ <TabsContent value={IntegrationsListPageTabs.AppConnections}><AppConnectionsTab />- </TabPanel>- <TabPanel value={IntegrationsListPageTabs.PkiSyncs}>+ </TabsContent>+ <TabsContent value={IntegrationsListPageTabs.PkiSyncs}><ProjectPermissionCanrenderGuardBannerI={ProjectPermissionPkiSyncActions.Read}@@ -64,7 +64,7 @@ export const IntegrationsListPage = () => {><PkiSyncsTab /></ProjectPermissionCan>- </TabPanel>+ </TabsContent></Tabs></div></div>diff --git a/frontend/src/pages/organization/IntegrationsPage/IntegrationsPage.tsx b/frontend/src/pages/organization/IntegrationsPage/IntegrationsPage.tsxindex f7ab77afd1..7653421465 100644--- a/frontend/src/pages/organization/IntegrationsPage/IntegrationsPage.tsx+++ b/frontend/src/pages/organization/IntegrationsPage/IntegrationsPage.tsx@@ -2,8 +2,15 @@ import { Helmet } from "react-helmet";import { useNavigate, useSearch } from "@tanstack/react-router";import { InfoIcon } from "lucide-react";-import { PageHeader, Tab, TabList, TabPanel, Tabs } from "@app/components/v2";-import { AlertTitle, DismissableAlert } from "@app/components/v3";+import {+ AlertTitle,+ DismissableAlert,+ PageHeader,+ Tabs,+ TabsContent,+ TabsList,+ TabsTrigger+} from "@app/components/v3";import { ROUTE_PATHS } from "@app/const/routes";import { useOrganization } from "@app/context";import {@@ -93,21 +100,24 @@ export const IntegrationsPage = () => {description="Connect Infisical to external services and manage organization-wide integrations."/><Tabs value={activeTab} onValueChange={updateSelectedTab}>- <TabList>+ <TabsList+ variant={isSubOrganization ? "sub-org" : "org"}+ aria-label={+ isSubOrganization+ ? "Sub-organization integrations sections"+ : "Organization integrations sections"+ }+ >{tabs.map(({ key, label }) => (- <Tab- variant={isSubOrganization ? "namespace" : "org"}- value={key}- key={`tab-${key}`}- >+ <TabsTrigger value={key} key={`tab-${key}`}>{label}- </Tab>+ </TabsTrigger>))}- </TabList>+ </TabsList>{tabs.map(({ key, component: Component }) => (- <TabPanel value={key} key={`tab-panel-${key}`}>+ <TabsContent value={key} key={`tab-panel-${key}`}><Component />- </TabPanel>+ </TabsContent>))}</Tabs></div>diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsxindex a371898106..669508426a 100644--- a/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx@@ -4,8 +4,16 @@ import { useNavigate, useSearch } from "@tanstack/react-router";import { TriangleAlertIcon } from "lucide-react";import { ProjectPermissionCan } from "@app/components/permissions";-import { PageHeader, Tab, TabList, TabPanel, Tabs } from "@app/components/v2";-import { Tooltip, TooltipContent, TooltipTrigger } from "@app/components/v3";+import {+ PageHeader,+ Tabs,+ TabsContent,+ TabsList,+ TabsTrigger,+ Tooltip,+ TooltipContent,+ TooltipTrigger+} from "@app/components/v3";import { NATIVE_INTEGRATION_DEPRECATION_DATE } from "@app/const/nativeIntegrationDeprecation";import { ROUTE_PATHS } from "@app/const/routes";import {@@ -71,25 +79,19 @@ export const IntegrationsListPage = () => {description="Manage integrations with third-party services."/><Tabs value={selectedTab} onValueChange={updateSelectedTab}>- <TabList>- <Tab variant="project" value={IntegrationsListPageTabs.AppConnections}>+ <TabsList variant="project" aria-label="Project integrations sections">+ <TabsTrigger value={IntegrationsListPageTabs.AppConnections}>App Connections- </Tab>- <Tab variant="project" value={IntegrationsListPageTabs.SecretSyncs}>- Secret Syncs- </Tab>- <Tab variant="project" value={IntegrationsListPageTabs.FrameworkIntegrations}>+ </TabsTrigger>+ <TabsTrigger value={IntegrationsListPageTabs.SecretSyncs}>Secret Syncs</TabsTrigger>+ <TabsTrigger value={IntegrationsListPageTabs.FrameworkIntegrations}>Framework Integrations- </Tab>- <Tab variant="project" value={IntegrationsListPageTabs.InfrastructureIntegrations}>+ </TabsTrigger>+ <TabsTrigger value={IntegrationsListPageTabs.InfrastructureIntegrations}>Infrastructure Integrations- </Tab>+ </TabsTrigger>{showNativeIntegrations && (- <Tab- variant="project"- value={IntegrationsListPageTabs.NativeIntegrations}- className="gap-2"- >+ <TabsTrigger value={IntegrationsListPageTabs.NativeIntegrations}>Native Integrations<Tooltip><TooltipTrigger asChild>@@ -102,20 +104,20 @@ export const IntegrationsListPage = () => {. Migrate to Secret Syncs.</TooltipContent></Tooltip>- </Tab>+ </TabsTrigger>)}- </TabList>- <TabPanel value={IntegrationsListPageTabs.AppConnections}>+ </TabsList>+ <TabsContent value={IntegrationsListPageTabs.AppConnections}><AppConnectionsTab />- </TabPanel>- <TabPanel value={IntegrationsListPageTabs.FrameworkIntegrations}>+ </TabsContent>+ <TabsContent value={IntegrationsListPageTabs.FrameworkIntegrations}><FrameworkIntegrationTab />- </TabPanel>- <TabPanel value={IntegrationsListPageTabs.InfrastructureIntegrations}>+ </TabsContent>+ <TabsContent value={IntegrationsListPageTabs.InfrastructureIntegrations}><InfrastructureIntegrationTab />- </TabPanel>+ </TabsContent>{showNativeIntegrations && (- <TabPanel value={IntegrationsListPageTabs.NativeIntegrations}>+ <TabsContent value={IntegrationsListPageTabs.NativeIntegrations}><ProjectPermissionCanrenderGuardBannerI={ProjectPermissionActions.Read}@@ -123,9 +125,9 @@ export const IntegrationsListPage = () => {><NativeIntegrationsTab /></ProjectPermissionCan>- </TabPanel>+ </TabsContent>)}- <TabPanel value={IntegrationsListPageTabs.SecretSyncs}>+ <TabsContent value={IntegrationsListPageTabs.SecretSyncs}><ProjectPermissionCanrenderGuardBannerI={ProjectPermissionSecretSyncActions.Read}@@ -133,7 +135,7 @@ export const IntegrationsListPage = () => {><SecretSyncsTab /></ProjectPermissionCan>- </TabPanel>+ </TabsContent></Tabs></div></div>