Skip to content

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

fix: change app connection location

IgorHortac6ec7cd68656
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx
index efc68ef53e..4c180fd6d0 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.tsx
@@ -16,6 +16,7 @@ import { ProjectType } from "@app/hooks/api/projects/types";
import { IntegrationsListPageTabs } from "@app/types/integrations";
import {
+ AppConnectionsTab,
FrameworkIntegrationTab,
InfrastructureIntegrationTab,
NativeIntegrationsTab,
@@ -62,8 +63,8 @@ export const IntegrationsListPage = () => {
/>
<Tabs orientation="vertical" value={selectedTab} onValueChange={updateSelectedTab}>
<TabList>
- <Tab variant="project" value={IntegrationsListPageTabs.SecretSyncs}>
- Secret Syncs
+ <Tab variant="project" value={IntegrationsListPageTabs.AppConnections}>
+ App Connections
</Tab>
<Tab variant="project" value={IntegrationsListPageTabs.FrameworkIntegrations}>
Framework Integrations
@@ -74,15 +75,12 @@ export const IntegrationsListPage = () => {
<Tab variant="project" value={IntegrationsListPageTabs.NativeIntegrations}>
Native Integrations
</Tab>
+ <Tab variant="project" value={IntegrationsListPageTabs.SecretSyncs}>
+ Secret Syncs
+ </Tab>
</TabList>
- <TabPanel value={IntegrationsListPageTabs.SecretSyncs}>
- <ProjectPermissionCan
- renderGuardBanner
- I={ProjectPermissionSecretSyncActions.Read}
- a={ProjectPermissionSub.SecretSyncs}
- >
- <SecretSyncsTab />
- </ProjectPermissionCan>
+ <TabPanel value={IntegrationsListPageTabs.AppConnections}>
+ <AppConnectionsTab />
</TabPanel>
<TabPanel value={IntegrationsListPageTabs.FrameworkIntegrations}>
<FrameworkIntegrationTab />
@@ -99,6 +97,15 @@ export const IntegrationsListPage = () => {
<NativeIntegrationsTab />
</ProjectPermissionCan>
</TabPanel>
+ <TabPanel value={IntegrationsListPageTabs.SecretSyncs}>
+ <ProjectPermissionCan
+ renderGuardBanner
+ I={ProjectPermissionSecretSyncActions.Read}
+ a={ProjectPermissionSub.SecretSyncs}
+ >
+ <SecretSyncsTab />
+ </ProjectPermissionCan>
+ </TabPanel>
</Tabs>
</div>
</div>
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/AppConnectionsTab/AppConnectionsTab.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/AppConnectionsTab/AppConnectionsTab.tsx
new file mode 100644
index 0000000000..a82a4908ea
--- /dev/null
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/AppConnectionsTab/AppConnectionsTab.tsx
@@ -0,0 +1,18 @@
+import { ProjectPermissionCan } from "@app/components/permissions";
+import { ProjectPermissionSub, useProject } from "@app/context";
+import { ProjectPermissionAppConnectionActions } from "@app/context/ProjectPermissionContext/types";
+import { AppConnectionsTable } from "@app/pages/organization/AppConnections/AppConnectionsPage/components";
+
+export const AppConnectionsTab = () => {
+ const { currentProject } = useProject();
+
+ return (
+ <ProjectPermissionCan
+ renderGuardBanner
+ I={ProjectPermissionAppConnectionActions.Read}
+ a={ProjectPermissionSub.AppConnections}
+ >
+ <AppConnectionsTable projectId={currentProject.id} projectType={currentProject.type} />
+ </ProjectPermissionCan>
+ );
+};
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/AppConnectionsTab/index.ts b/frontend/src/pages/secret-manager/IntegrationsListPage/components/AppConnectionsTab/index.ts
new file mode 100644
index 0000000000..79649edaff
--- /dev/null
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/AppConnectionsTab/index.ts
@@ -0,0 +1 @@
+export { AppConnectionsTab } from "./AppConnectionsTab";
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/index.ts b/frontend/src/pages/secret-manager/IntegrationsListPage/components/index.ts
index ba1b8d3d33..e6a8142e75 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/index.ts
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/index.ts
@@ -1,3 +1,4 @@
+export * from "./AppConnectionsTab";
export * from "./FrameworkIntegrationTab";
export * from "./InfrastructureIntegrationTab";
export * from "./NativeIntegrationsTab";
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/route.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/route.tsx
index 0d5f66c26e..528f12a2ff 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/route.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/route.tsx
@@ -2,15 +2,7 @@ import { createFileRoute, redirect } from "@tanstack/react-router";
import { zodValidator } from "@tanstack/zod-adapter";
import { z } from "zod";
-import { projectKeys } from "@app/hooks/api";
-import { TIntegration } from "@app/hooks/api/integrations/types";
-import { fetchWorkspaceIntegrations } from "@app/hooks/api/projects/queries";
-import {
- fetchSecretSyncsByProjectId,
- SecretSync,
- secretSyncKeys,
- TSecretSync
-} from "@app/hooks/api/secretSyncs";
+import { SecretSync } from "@app/hooks/api/secretSyncs";
import { IntegrationsListPageTabs } from "@app/types/integrations";
import { IntegrationsListPage } from "./IntegrationsListPage";
@@ -29,64 +21,11 @@ export const Route = createFileRoute(
validateSearch: zodValidator(IntegrationsListPageQuerySchema),
beforeLoad: async ({ context, search, params: { projectId, orgId } }) => {
if (!search.selectedTab) {
- let secretSyncs: TSecretSync[];
-
- try {
- secretSyncs = await context.queryClient.ensureQueryData({
- queryKey: secretSyncKeys.list(projectId),
- queryFn: () => fetchSecretSyncsByProjectId(projectId)
- });
- } catch {
- throw redirect({
- to: "/organizations/$orgId/projects/secret-management/$projectId/integrations",
- params: { orgId, projectId },
- search: { selectedTab: IntegrationsListPageTabs.NativeIntegrations }
- });
- }
-
- if (secretSyncs.length) {
- throw redirect({
- to: "/organizations/$orgId/projects/secret-management/$projectId/integrations",
- params: { orgId, projectId },
- search: { selectedTab: IntegrationsListPageTabs.SecretSyncs }
- });
- }
-
- let integrations: TIntegration[];
- try {
- integrations = await context.queryClient.ensureQueryData({
- queryKey: projectKeys.getProjectIntegrations(projectId),
- queryFn: () => fetchWorkspaceIntegrations(projectId)
- });
- } catch {
- throw redirect({
- to: "/organizations/$orgId/projects/secret-management/$projectId/integrations",
- params: {
- orgId,
- projectId
- },
- search: { selectedTab: IntegrationsListPageTabs.SecretSyncs }
- });
- }
-
- if (integrations.length) {
- throw redirect({
- to: "/organizations/$orgId/projects/secret-management/$projectId/integrations",
- params: {
- orgId,
- projectId
- },
- search: { selectedTab: IntegrationsListPageTabs.NativeIntegrations }
- });
- }
-
+ // Default to App Connections tab
throw redirect({
to: "/organizations/$orgId/projects/secret-management/$projectId/integrations",
- params: {
- orgId,
- projectId
- },
- search: { selectedTab: IntegrationsListPageTabs.SecretSyncs }
+ params: { orgId, projectId },
+ search: { selectedTab: IntegrationsListPageTabs.AppConnections }
});
}
diff --git a/frontend/src/types/integrations.ts b/frontend/src/types/integrations.ts
index 0041603191..4ed595087b 100644
--- a/frontend/src/types/integrations.ts
+++ b/frontend/src/types/integrations.ts
@@ -1,4 +1,5 @@
export enum IntegrationsListPageTabs {
+ AppConnections = "app-connections",
NativeIntegrations = "native-integrations",
FrameworkIntegrations = "framework-integrations",
InfrastructureIntegrations = "infrastructure-integrations",