mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-26 01:39:51 +01:00
## 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>