Files
PaperClipAI/ui
Tonio 28c44fa2a1 Use in-panel OpenAI sign-in from Other Models (#23474)
## Thinking Path

> - Paperclip lets people connect provider accounts for agent work.
> - The Connect account dialog includes a provider grid.
> - OpenAI subscription setup from that grid still uses the footer to
start sign-in.
> - This change uses the same sign-in panel as direct OpenAI setup.
> - People can see when authorization is pending and when they can
proceed.

## Linked Issues or Issue Description

**Subsystem affected**

Agent settings and managed AI accounts. Related change: #23361.

**Current behavior**

OpenAI under Other Models presents a sign-in hyperlink and repurposes
the footer during authorization.

**Proposed behavior**

Start device authorization from the panel. Show Waiting… there and keep
Next disabled while authorization is pending.

## What Changed

- Enable inline subscription controls for OpenAI when opened from the
provider grid.
- Exercise the grid presentation in the sign-in panel tests.

## Verification

- All 33 focused agent connection and sign-in panel tests passed.
- Open Connect account, select Other Models, select OpenAI, and click
Sign in.

## Risks

The changed path shares completion handling with direct subscription
setup. Provider authentication and access settings still use the same
APIs.

## Model Used

OpenAI GPT-6 through Codex with local editing, terminal tests, 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)
- [ ] 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
- [ ] I will address all Greptile and reviewer comments before
requesting merge
2026-12-01 23:57:07 -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.