mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-26 02:00:52 +01:00
Chat-style task composers now keep unsent body text per task, matching the default composer. Adds a shared ui/src/lib/composer-draft.ts (loadDraft / saveDraft / clearDraft + DRAFT_DEBOUNCE_MS) and wires an optional draftKey through TaskChatThread into TaskChatComposer: restore on mount/key change, debounced save on change, explicit clear on successful send (so a send-then-navigate within the debounce window can't resurrect the sent message), and preserved draft on failed send. Body text only — no attachments/mode/assignee, no server sync. The legacy helper copies in CommentThread/IssueChatThread are intentionally left in place. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@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.