diff --git a/tests/ai-connections-app/connection-pools.spec.ts b/tests/ai-connections-app/connection-pools.spec.ts
index 5019742e306..f3d3c276e87 100644
--- a/tests/ai-connections-app/connection-pools.spec.ts
+++ b/tests/ai-connections-app/connection-pools.spec.ts
@@ -70,7 +70,7 @@ test("native catalog setup, account edits, conflicts and removal persist through
const saved = async () => (await listPools(request)).find(pool => pool.id === poolId)!;
expect(await saved()).toMatchObject({ enabled: false, mode: "round_robin", thresholdPercent: 90 });
expect((await saved()).members.map(member => member.binding.connectionId)).toEqual([accounts[1]!.id, accounts[0]!.id]);
- await expect(page.getByRole("link", { name: "Settings", exact: true })).toBeVisible();
+ await expect(page.getByRole("link", { name: "Back to Plugins", exact: true })).toBeVisible();
await expect(page.getByRole("link", { name: "Review", exact: true })).toHaveCount(0);
await expect(page.getByRole("checkbox", { name: "Enable this pool", exact: true })).not.toBeChecked();
await expect(page.getByRole("region", { name: "Used by", exact: true })).toContainText("No agents yet.");
@@ -116,7 +116,7 @@ test("native catalog setup, account edits, conflicts and removal persist through
await expect(confirmation).toContainText("The connections in this pool are kept.");
await confirmation.getByRole("button", { name: "Cancel", exact: true }).click();
expect(await saved()).toBeTruthy();
- await page.getByRole("link", { name: "All connectors", exact: true }).click();
+ await page.getByRole("link", { name: "Back to Plugins", exact: true }).click();
await page.getByRole("button", { name: `Manage ${name} connection`, exact: true }).click();
await page.getByRole("menuitem", { name: "Remove connection", exact: true }).click();
await page.getByRole("alertdialog").getByRole("button", { name: "Remove connection", exact: true }).click();
diff --git a/ui/src/components/Layout.production.tsx b/ui/src/components/Layout.production.tsx
index 848bd86e667..070f9b94a46 100644
--- a/ui/src/components/Layout.production.tsx
+++ b/ui/src/components/Layout.production.tsx
@@ -145,12 +145,6 @@ export function Layout() {
);
const isToolsRoute = companyPathSegments[0]?.toLowerCase() === "tools";
const isAppsRoute = companyPathSegments[0]?.toLowerCase() === "apps";
- const appDetailConnectionId =
- isAppsRoute &&
- companyPathSegments[1] &&
- !RESERVED_APP_SUBPATHS.has(companyPathSegments[1].toLowerCase())
- ? companyPathSegments[1]
- : null;
const appDetailApplicationId =
isAppsRoute &&
companyPathSegments[1]?.toLowerCase() === "app" &&
@@ -205,8 +199,6 @@ export function Layout() {
);
const secondarySidebar = isCompanySettingsRoute ? (
- ) : appDetailConnectionId ? (
-
) : appDetailApplicationId ? (
) : !streamlinedUiEnabled && shellRoute.builtInContextualSurface === "skills" ? (
- ) : appDetailConnectionId ? (
-
) : appDetailApplicationId ? (
) : appsRouteHasRail(companyPathSegments, appsDeveloperTabs.length > 0) ? (
diff --git a/ui/src/components/ai-connections/AiConnectionPoolConnector.tsx b/ui/src/components/ai-connections/AiConnectionPoolConnector.tsx
index 529f76b7dfc..752dd2631dc 100644
--- a/ui/src/components/ai-connections/AiConnectionPoolConnector.tsx
+++ b/ui/src/components/ai-connections/AiConnectionPoolConnector.tsx
@@ -14,7 +14,7 @@ import { useToast } from "@/context/ToastContext";
import { Link, useNavigate } from "@/lib/router";
import { queryKeys } from "@/lib/queryKeys";
import { AppLogo } from "@/pages/apps/AppLogo";
-import { AppDetailHeader } from "@/pages/apps/AppDetail";
+import { AppDetailHeader, ConnectionBackLink } from "@/pages/apps/AppDetail";
import { StepHeader } from "@/features/connections/ConnectionSetupHeader";
import { Button } from "@/components/ui/button";
import { QueryErrorState, useQueryView } from "@/components/QueryView";
@@ -146,7 +146,8 @@ function PoolConnector({ companyId, pluginKey, connection }: { companyId: string
})}
{draft.members.length === 0 &&
Add a connection to get started.}
;
- return
+ return
+ {connection ?
: null}
{connection ?
{ if (!disabled) { setNameDraft(draft.name); setRenaming(true); } }} onRenameCancel={() => setRenaming(false)} onRenameSubmit={value => void save({ ...draft, name: value })} />
{ setError(""); setRemoving(true); }}>Remove connection
diff --git a/ui/src/lib/analytics/replay-masking.test.tsx b/ui/src/lib/analytics/replay-masking.test.tsx
index 545040d9ebc..eb903873d6c 100644
--- a/ui/src/lib/analytics/replay-masking.test.tsx
+++ b/ui/src/lib/analytics/replay-masking.test.tsx
@@ -65,7 +65,7 @@ const MASKED_SURFACES: Array<{ file: string; content: string }> = [
{ file: "pages/apps/Browse.tsx", content: "“{connection.name}”" },
{ file: "pages/apps/Connections.tsx", content: ">{row.displayName}" },
{ file: "pages/apps/AppDetail.tsx", content: "{appName}" },
- { file: "pages/apps/AppDetail.tsx", content: "{appName}" },
+ { file: "pages/apps/AppDetail.tsx", content: "{appName}" },
{ file: "components/AppConnectionSidebar.tsx", content: "{appName}" },
{ file: "features/connections/ConnectionChoiceList.tsx", content: ">{choice.name}" },
{ file: "features/connections/ConnectionIntentInteractionBody.tsx", content: "${accessRequest.connectionName}" },
diff --git a/ui/src/pages/apps/AppDetail.tsx b/ui/src/pages/apps/AppDetail.tsx
index 0948e88136f..0a29e841d44 100644
--- a/ui/src/pages/apps/AppDetail.tsx
+++ b/ui/src/pages/apps/AppDetail.tsx
@@ -12,7 +12,7 @@ import { useCallback, useEffect, useMemo, useRef, useState, type ReactNode } fro
import { EmailConnectionAccess } from "@/components/EmailConnectionAccess";
import { EmailConnectionInboxes } from "./chat/EmailEndpointSetup";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
-import { Check, Loader2, Pencil } from "lucide-react";
+import { ArrowLeft, Check, Loader2, Pencil } from "lucide-react";
import type {
ToolConnection,
ToolPolicy,
@@ -24,7 +24,7 @@ import {
aiSubscriptionNeedsIsolatedLogin,
isToolConnectionAttentionHealth as isAttentionHealthStatus,
} from "@paperclipai/shared";
-import { Navigate, useParams, useNavigate, useSearchParams } from "@/lib/router";
+import { Link, Navigate, useParams, useNavigate, useSearchParams } from "@/lib/router";
import { useCompany } from "@/context/CompanyContext";
import { useBreadcrumbs } from "@/context/BreadcrumbContext";
import { useToast } from "@/context/ToastContext";
@@ -57,7 +57,7 @@ import {
galleryEntryFor,
type AppGalleryDisplayEntry,
} from "./app-definition-display";
-import { appTabHref, appTabLabel, isAppTabKey, type AppTabKey } from "./app-tabs";
+import { APP_TABS, appTabHref, isAppTabKey, type AppTabKey } from "./app-tabs";
import { ConnectionProvenanceChip } from "./ConnectionProvenanceChip";
import { IdentitiesSection } from "./app-detail/IdentitiesSection";
import { PermissionsPanel } from "./app-detail/PermissionsPanel";
@@ -258,6 +258,8 @@ function StandardAppDetail({ renderActions, renderAgentSettings, renderConnectio
const appName = connection
? connectionDisplayNameForOwner(connection, baseAppName, owner)
: "App";
+ // A connection made from the catalog belongs to a plugin page; anything else goes back to the marketplace.
+ const pluginHref = logoEntry ? `/apps/plugin/${encodeURIComponent(appDefinitionSlug(logoEntry))}` : null;
const successNoticeShownFor = useRef(null);
useEffect(() => {
@@ -285,11 +287,11 @@ function StandardAppDetail({ renderActions, renderAgentSettings, renderConnectio
if (!activeTab) return;
setBreadcrumbs([
{ label: "Plugins", href: "/apps" },
- { label: appName, href: appTabHref(connectionId, "permissions") },
- { label: appTabLabel(activeTab) },
+ ...(pluginHref ? [{ label: baseAppName, href: pluginHref }] : []),
+ { label: appName },
]);
return () => setBreadcrumbs([]);
- }, [setBreadcrumbs, appName, connectionId, activeTab]);
+ }, [setBreadcrumbs, appName, baseAppName, pluginHref, activeTab]);
const { catalog, active, quarantined, readOnly, canChange } = useMemo(() => {
const catalog = catalogQuery.data?.catalog ?? [];
@@ -543,7 +545,7 @@ function StandardAppDetail({ renderActions, renderAgentSettings, renderConnectio
}
if (connectionQuery.isLoading || connectionView.kind === "reconnecting") {
return (
-
+
@@ -591,9 +593,11 @@ function StandardAppDetail({ renderActions, renderAgentSettings, renderConnectio
const permissionsFailure = permissionsViews.find((view) => view.kind === "error");
return (
-
+
{authorization.fallback}
{workspaceGate.dialog}
+
+
-
+
+
+
{status.tone === "attention" && connection.requiresReauthorization === false && (
: permissionsLoading
?
- :
+ :
{isAppAggregator(brandKey) && grantsQuery.data?.capabilities.canConfigure === true
?
: null}
{connection.config?.sourceTemplateKey === "honcho" &&
}
@@ -708,10 +714,10 @@ function StandardAppDetail({ renderActions, renderAgentSettings, renderConnectio
onReplaceAudience={(grant, memberUserIds) =>
replaceAudience.mutate({ grantId: grant.id, memberUserIds })}
/>
- {connection.config?.sourceTemplateKey === "composio" ?
+ {connection.config?.sourceTemplateKey === "composio" ?
These permissions apply to all apps available through this Composio connection. Manage app accounts and sign-in in Composio.
: null}
- {connection.config?.sourceTemplateKey !== "composio" && isRemoteMcpConnectorMethod(connection.config?.sourceTemplateKey, connection.config?.connectionMethodKey) &&
Paperclip controls access to the tools listed here. App and action permissions inside these tools are managed in {baseAppName}.
}
+ {connection.config?.sourceTemplateKey !== "composio" && isRemoteMcpConnectorMethod(connection.config?.sourceTemplateKey, connection.config?.connectionMethodKey) &&
Paperclip controls access to the tools listed here. App and action permissions inside these tools are managed in {baseAppName}.
}
{instructionsTemplate && }{renderAgentSettings?.(connection)}>}
actions={actionsContent}
@@ -759,7 +765,7 @@ function StandardAppDetail({ renderActions, renderAgentSettings, renderConnectio
onDisconnect={() => disconnectRemote.mutateAsync()}
/>}
{grantsQuery.data?.capabilities.canConfigure === true && connection.connectionPurpose === "tool" && (
-
+
)}
@@ -805,76 +811,119 @@ export function AppDetailHeader({
onRenameSubmit: (value: string) => void;
}) {
const unverifiedHost = unverifiedRemoteHost(connection);
+ const hint = connectionDisplaySecondaryHint(connection);
return (
-