## Thinking Path > - Paperclip helps people manage AI agents. > - During onboarding, a user selects a model provider. > - The selected tile moves to the center of the row. > - Its width can change during this movement when only one provider is available. > - The tile's horizontal scale also applies to the logo and text. > - This change keeps the logo and both labels at their natural size while the tile moves. ## Linked Issues or Issue Description **What happened?** With Codex disabled, selecting Claude stretched the brand mark, provider name and credential label during the collapse. At 80 ms on desktop, the provider name grew from 43.69 px to 84.18 px wide. **Expected behavior** The logo and both lines of text should stay centered and keep their resting dimensions throughout the transition. **Steps to reproduce** 1. Disable the Codex adapter on a disposable instance. 2. Open onboarding, create an organization, and name its first agent. 3. On **Connect a model**, select Claude and inspect an intermediate animation frame. 4. Repeat with **Use API key instead** and at a narrow viewport. Related implementation history: #12613 and #18309. ## What Changed - Give the brand mark and provider name position-only Motion layout projection. - Apply the same projection to the credential text inside its existing fade and slide animation. - Use the tile's existing transition for all three elements. ## Verification - Ran the real onboarding wizard in Chrome at 1280 × 800 and 375 × 812. All eight cases passed, including Claude-only and default configurations, OpenAI selection, both credential labels, keyboard input, and reduced motion. - Measured the image and rendered text ranges every 16 ms through 512 ms. Size and centering stayed within 0.15 CSS px of the expected values. The tile rectangles matched the baseline on every sampled frame in all four paired cases. - Ran `pnpm exec vitest run --project @paperclipai/ui --maxWorkers=4`: 575 files passed, 7,159 tests passed and one skipped. - An earlier broader local run hit the Mac's PostgreSQL shared-memory limit in three CLI worktree tests. ## Risks Low risk. The shared source picker also displays connection choices when creating an agent. The change is limited to the mark and label spans inside its existing radio buttons. ## Model Used OpenAI GPT-6 via Codex with local code editing and browser automation. ## Checklist - [x] Included the project and subsystem context. - [x] Specified the model and capabilities used. - [x] Checked the roadmap for duplicate work. - [x] I have searched GitHub for duplicate or related PRs and linked them above. - [x] Described the bug and reproduction in the issue-template format. - [x] Used public references. - [x] Used a descriptive branch name. - [x] Ran the UI tests and browser checks. - [x] Added an onboarding Playwright regression that checks both label bounds and the brand mark during tile movement. - [x] Documented the risk above. - [ ] All Paperclip CI gates are green. - [ ] Greptile is 5/5 with all review findings addressed. - [x] Will address review findings before merge. --------- Co-authored-by: Scott Tong <scott@scotts-mbp-m5-max.local>
@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.