mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-29 15:52:36 +01:00
feat(ui): move the connection page to the Plugins design (#23029)
## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work > - The Plugins page is where a person connects tools to agents and sets what those tools can do > - #22869 and #23005 moved Browse, the plugin page, and Reviews to the Plugins marketplace design > - The connection page that opens after a successful connection kept the old design and an old side rail > - A person who connects a plugin lands on a page that does not look like the page they came from, and the plugin page does not show a clear way back to it > - This pull request applies the plugin page design to the connection page and adds a Settings button to each account row on the plugin page > - The benefit is one consistent path: Plugins, then the plugin, then the account settings ## Linked Issues or Issue Description Refs #22869, #23005 **What existing behavior does this improve?** The connection page at `/apps/:connectionId/permissions` and `/apps/:connectionId/review`, and the account rows on the plugin page. **Subsystem affected** UI, Plugins (Apps catalog) pages. **Current behavior** - The connection page shows a second side rail with "All connectors", Permissions, and Review. - The page uses a left-aligned column, ruled dividers, bordered chips, and raw palette colors for the status badge. - The plugin page opens the connection page only from the account name and the "⋯" menu. **Proposed behavior** - The connection page has no second rail. It shows a back link to the plugin, the header, and Permissions and Review as tabs in the page. The Review tab shows the count of waiting items. - The page uses the centered column, the quiet section labels, and the rounded grouped surfaces of the plugin page. - The Read and Write action groups are grouped cards. The control that sets all actions is in the card header. - Each account row on the plugin page has a Settings button that opens the connection page. - The breadcrumb reads Plugins, plugin, account. **Reason and benefit** The page after a connection matches the plugin page. A person can go from the plugin to its account settings and back with one click. **Breaking changes** None. The routes, the labels that assistive technology reads, and the permission logic do not change. ## What Changed - `Layout.tsx`, `Layout.production.tsx`: connection routes no longer mount `AppDetailSidebar`. The page for an app that is not connected keeps its rail. - `AppDetail.tsx`: new page shell, a restyled `AppDetailHeader`, an exported `ConnectionBackLink`, and `ConnectionTabs` with the review count. The status badge uses status tokens. - `IdentitiesSection.tsx`, `PermissionsPanel.tsx`, `AgentConnectionAccess.tsx`: quiet labels and grouped surfaces. No logic changes. - `Browse.tsx`: a Settings button on each account row that is not a draft. - `AiConnectionPoolConnector.tsx`: a "Plugins" back link, because the rail that held it is gone. - `replay-masking.test.tsx`, `connection-pools.spec.ts`: updated for the new header class and the new back link. ## Verification - `cd ui && pnpm typecheck`: pass. - `pnpm run check:token-gates`: all gates clean. - `node scripts/check-query-error-rendering.mjs`: 0 findings. - `npx vitest run` on the 11 test files that import the changed components: 732 passed, 1 skipped. - `npx playwright test --config tests/e2e/playwright.config.ts tests/e2e/connection-reviews.spec.ts tests/e2e/apps-prosumer-mcp-flow.spec.ts tests/e2e/applications-crud.spec.ts`: 9 passed, 1 skipped. - Manual check in a local instance, dark theme, with a Context7 connection: the Permissions tab, the Review tab, and the Settings button on the plugin page. - Not run: `tests/ai-connections-app/connection-pools.spec.ts`. Not checked in the browser: the GitHub repositories block, the reconnect banner, the light theme, and narrow widths. ## Risks - Low. The change is presentation only for the sections, and the routes are the same. - The connection pool page lost the rail. Its only way back is now the "Plugins" back link and the breadcrumb. - The page for an app that is not connected still has the old rail. This is a known inconsistency. > For core feature work, check [`ROADMAP.md`](ROADMAP.md) first and discuss it in `#dev` before opening the PR. Feature PRs that overlap with planned core work may need to be redirected — check the roadmap first. See `CONTRIBUTING.md`. ## Model Used - Claude Fable 5.2 (`claude-fable-5-2`) in Claude Code, with tool use, code execution, and a browser preview. ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [ ] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [ ] All Paperclip CI gates are green - [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
1480f716c9
commit
dadbc495b3
10 files changed
+216
-173
No files matched your search
@@ -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 ? (
|
||||
<CompanySettingsSidebar />
|
||||
) : appDetailConnectionId ? (
|
||||
<AppDetailSidebar kind="connection" connectionId={appDetailConnectionId} />
|
||||
) : appDetailApplicationId ? (
|
||||
<AppDetailSidebar
|
||||
kind="application"
|
||||
|
||||
@@ -157,10 +157,6 @@ export function Layout({ sidebarSections }: { sidebarSections?: ReactNode }) {
|
||||
const isToolsRoute = companyPathSegments[0]?.toLowerCase() === "tools";
|
||||
const isAppsRoute = companyPathSegments[0]?.toLowerCase() === "apps";
|
||||
const appsDeveloperTabs = useAppsDeveloperTabs();
|
||||
const appDetailConnectionId =
|
||||
isAppsRoute && companyPathSegments[1] && !RESERVED_APP_SUBPATHS.has(companyPathSegments[1].toLowerCase())
|
||||
? companyPathSegments[1]
|
||||
: null;
|
||||
const appDetailApplicationId =
|
||||
isAppsRoute && companyPathSegments[1]?.toLowerCase() === "app" && companyPathSegments[2]
|
||||
? companyPathSegments[2]
|
||||
@@ -210,8 +206,6 @@ export function Layout({ sidebarSections }: { sidebarSections?: ReactNode }) {
|
||||
<CompanySettingsSidebar />
|
||||
) : !streamlinedUiEnabled && shellRoute.builtInContextualSurface === "skills" ? (
|
||||
<SkillsContextualSidebar />
|
||||
) : appDetailConnectionId ? (
|
||||
<AppDetailSidebar kind="connection" connectionId={appDetailConnectionId} />
|
||||
) : appDetailApplicationId ? (
|
||||
<AppDetailSidebar kind="application" applicationId={appDetailApplicationId} />
|
||||
) : appsRouteHasRail(companyPathSegments, appsDeveloperTabs.length > 0) ? (
|
||||
|
||||
@@ -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 && <li className="px-4 py-6 text-sm text-muted-foreground">Add a connection to get started.</li>}
|
||||
</ol>;
|
||||
return <div className={connection ? "space-y-6" : "mx-auto max-w-2xl"}>
|
||||
return <div className={connection ? "mx-auto w-full max-w-3xl space-y-6" : "mx-auto max-w-2xl"}>
|
||||
{connection ? <ConnectionBackLink label="Plugins" href="/apps" /> : null}
|
||||
{connection ? <div className="flex items-start justify-between gap-4">
|
||||
<AppDetailHeader appName={draft.name} connection={connection} logoEntry={logoEntry} brandKey={logoEntry.slug} allowRemoteLogo canRename={!disabled} status={editing?.enabled ? { label: "Connected", tone: "connected" } : { label: "Paused", tone: "paused" }} actionCount={null} renaming={renaming} nameDraft={nameDraft} renamePending={disabled} onNameDraftChange={setNameDraft} onRenameStart={() => { if (!disabled) { setNameDraft(draft.name); setRenaming(true); } }} onRenameCancel={() => setRenaming(false)} onRenameSubmit={value => void save({ ...draft, name: value })} />
|
||||
<DropdownMenu><DropdownMenuTrigger asChild><Button variant="ghost" size="icon-sm" aria-label="Manage connection pool"><MoreHorizontal className="size-4" /></Button></DropdownMenuTrigger><DropdownMenuContent className={ANALYTICS_MASK_CLASS} align="end"><DropdownMenuItem variant="destructive" disabled={busy || !canManage} onSelect={() => { setError(""); setRemoving(true); }}><Trash2 />Remove connection</DropdownMenuItem></DropdownMenuContent></DropdownMenu>
|
||||
|
||||
Reference in new issue
Block a user