## Thinking Path > - People use Paperclip to manage agents at work. > - Onboarding connects the first agent to a model provider. > - When a user enters a new API key, the form explains which account becomes the default. > - The note touched the input border. Its text started to the left of the placeholder. > - The field now lays out its own note and exposes it as an accessible description. ## Linked Issues or Issue Description **What happened?** The default-account note touched the lower edge of the API key field. The input had no accessible description. **Expected behavior** The note should sit below the field, align with the input text, and wrap at narrow widths. Assistive technology should announce it with the field. **Steps to reproduce** 1. Start onboarding with a new organization that has no saved provider keys. 2. Name the agent. Choose **Use API key instead**, then **OpenAI**. 3. Inspect the field and note at desktop width and at 320 px. **Paperclip version or commit** Reproduced on `e18fe61c8f`. Related PR #19557 added the note. ## What Changed - Give the shared onboarding field an optional description. Use the input's horizontal inset and an 8 px vertical gap. - Associate the description with its input through `aria-describedby`. - Pass the existing provider-specific sentence from the new-key form. Add a regression test for fields with and without a description. ## Verification - The regression test failed on the original field and passed after the fix. All 17 focused field and saved-credential tests passed. - The UI typecheck passed. The selected UI suites passed 3,944 tests, with one skip. - In Chrome, verified alignment and wrapping at 1280 × 900 and 320 × 740. Checked the accessible description, password masking, and the saved-key path with a disposable database. - Three local CLI worktree tests could not start native PostgreSQL clusters because the host exhausted its shared-memory slots. The CLI telemetry test passed on a separate run using its standard environment. ## Risks The field also serves sign-in flows. The description is optional. Fields without one retain their existing input markup. ## Model Used OpenAI Codex (GPT-6) 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 - [ ] 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: Scott Tong <scott@scotts-mbp-m5-max.local> 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.