mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-22 20:29:18 +01:00
The local act helper wrapped flushSync, which flushes render work but not passive effects. The install dialog seeds its state in a useEffect, so tests added a setTimeout(0) hop to give it a chance to run. A setTimeout callback and React's own scheduler task queue in a different order each run, so the hop sometimes lost the race and the test read stale state. Delegate the helper to React's own act, which flushes passive effects before it resolves, and remove the now-unneeded timing hops. Co-authored-by: Paperclip <noreply@paperclip.ing>
@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.