mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-30 21:49:18 +01:00
A render-time throw on a routed page (e.g. the New Agent page at /agents/new?adapterType=claude_local) had no boundary, so it unmounted the whole SPA and left a blank page. Because the custom router updates location without remounting, the back button changed the URL but the tree stayed dead until a hard refresh. Wrap the routed <Outlet/> in a RouteErrorBoundary that renders a recoverable error card, keeps the sidebar/nav mounted, and resets its error state whenever the route (pathname+search) changes so navigating away — back button included — recovers without a hard refresh.
@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.