mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-01 15:35:12 +01:00
After a successful revision restore, RoutineDetail's editor draft was not re-hydrated because routine.id is unchanged and isEditDirty became true relative to the freshly- restored routine, blocking the existing useEffect rehydration. Add an onRestored callback wired from RoutineHistoryTab so the parent can synchronously sync the cached routine, reset the edit draft, and bump the hydration ref the moment the restore POST returns — preventing the phantom "Unsaved routine edits" banner. 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.