Files
PaperClipAI/ui
TonioandClaude Fable 5.2 dadbc495b3 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>
2026-11-26 18:25:15 +00:00
..
…

@paperclipai/ui

Published static assets for the Paperclip board UI.

What gets published

The npm package contains the production build under dist/. It does not ship the UI source tree or workspace-only dependencies.

Storybook

Storybook config, stories, and fixtures live under ui/storybook/.

pnpm --filter @paperclipai/ui storybook
pnpm --filter @paperclipai/ui build-storybook

Typical use

Install the package, then serve or copy the built files from node_modules/@paperclipai/ui/dist.

Editor dependency identity

Keep the root and workspace overrides for @codemirror/state, @codemirror/view, and @lezer/common aligned. CodeMirror requires shared extension identity, while Lezer parsers and syntax highlighters require shared NodeProp IDs. Multiple Lezer copies can crash code-block highlighting with tags is not iterable. src/lib/codemirror-single-instance.test.ts checks the installed dependency graph and highlights sample code through the editor's real language dependencies. GitHub Actions owns regeneration of pnpm-lock.yaml.