Files
PaperClipAI/ui
TonioandPaperclip 5e59737ef3 feat(ui): request missing plugins from catalog search (#23777)
## Thinking Path

> - Paperclip helps people manage AI agents and their work.
> - Operators search the Plugins catalog for tools their agents need.
> - An empty search offers only a way to clear the query.
> - Operators can now use the search term to request the missing tool.
> - Each submission creates a backlog task that the company can track.

## Linked Issues or Issue Description

**Subsystem affected**

Plugins catalog search.

**Problem or motivation**

An operator who cannot find a tool must leave the catalog to write a
request.

**Proposed solution**

Add a primary request button beside Clear search. Open a form with the
search term as its editable name.

## What Changed

- Collect an optional website and notification email. Save the request
as a company backlog task and show its identifier.
- Capture `plugin_request_submitted` after a successful save. Include
the source and flags for website presence and email opt-in.
- Add a test that submits the form and checks the saved fields,
confirmation, and event count.

## Verification

- Run `node_modules/.bin/vitest run
ui/src/pages/apps/RequestPluginDialog.test.tsx
ui/src/lib/analytics/product-analytics-events.test.ts`. All three tests
passed locally. The query error policy check reported zero findings.
- A manual worktree submission produced one PostHog event with both
flags true.

- [Final CI
run](https://github.com/paperclipai/paperclip/actions/runs/47424073788)
passed the required verification and end-to-end gates on `e749348c05`.

## Risks

The optional email becomes visible to people who can read the company
task. The form records the notification preference. Email delivery
requires a future integration.

## Model Used

OpenAI GPT-6 via Codex, with local code execution and browser
verification.

## 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
- [x] All Paperclip CI gates are green
- [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge

---------

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-12-04 14:01:43 -08: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.