Files
PaperClipAI/ui
TonioandPaperclip 111973c5e3 Show waiting and retry in the onboarding sign-in card (#23268)
## Thinking Path

> - Paperclip helps people manage AI agents.
> - Onboarding connects an agent to a model.
> - Users open the provider sign-in from the connection card.
> - The card should show when the provider is waiting and how to recover
after a timeout.
> - This change keeps both actions in the same place.

## Linked Issues or Issue Description

**Subsystem affected**

Model connection during first-agent onboarding. Related work includes
#23255 and #6636.

**Current behavior**

The sign-in link remains active after opening the provider. Retry
appears in the footer.

**Proposed behavior**

Show a waiting label beside the code. Offer retry inside the card when
sign-in expires. Keep Next disabled during these states.

## What Changed

- Show the provider-specific waiting label after opening sign-in.
- Show a retry action and saved-setup message in the card.
- Cover both providers and the reset after retry.

## Verification

- Ran the UI typecheck.
- Ran the adapter login card and local login tests. All 33 passed.

## Risks

Local and hosted sign-in expose retry through different handlers. This
change keeps the existing session handlers.

## Model Used

OpenAI GPT-6 with Codex repository and test tools.

## 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
- [x] 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-11-30 07:30:05 +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.