Skip to content

feat(ui): image paste from clipboard in editor (#425)#77

Open
advancedresearcharray wants to merge 4 commits into
mainfrom
feat/issue-425-image-paste-hands-on-v2
Open

feat(ui): image paste from clipboard in editor (#425)#77
advancedresearcharray wants to merge 4 commits into
mainfrom
feat/issue-425-image-paste-hands-on-v2

Conversation

@advancedresearcharray

Copy link
Copy Markdown
Owner

Summary

  • Add clipboard paste and drag-and-drop image upload for KiwiEditor in both visual (BlockNote) and source (CodeMirror) modes
  • Images upload via POST /api/kiwi/assets with standardized paste-YYYYMMDD-HHMMSS.ext filenames and insert as relative markdown image refs
  • Source mode shows an uploading placeholder, blocks save while uploads are in-flight, surfaces error toasts on failure, and shows a dashed drop overlay during OS image drag

Closes kiwifs#425

Test plan

  • cd ui && npm test -- --run src/lib/editorImagePaste.test.ts src/lib/editorImagePasteExtension.test.ts — 16 passed
  • cd ui && npm test -- --run — 205 passed (35 files)

Made with Cursor

Array Fleet and others added 3 commits July 3, 2026 10:42
Add clipboard paste and drag-and-drop image upload for both BlockNote
visual mode and CodeMirror source mode, with uploading placeholders,
error toasts, save gating during uploads, and regression tests.

Closes kiwifs#425

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…d PR

Hands-on re-ran UI tests (205 passed), pushed branch to fork, opened PR #77.

Signed-off-by: Array Fleet <fleet@advancedresearcharray.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
@advancedresearcharray

Copy link
Copy Markdown
Owner Author

Verification complete on `feat/issue-425-image-paste-hands-on-v2`:

  • `cd ui && npm test -- --run src/lib/editorImagePaste.test.ts src/lib/editorImagePasteExtension.test.ts` — 16 passed (2 files)
  • `cd ui && npm test -- --run` — 205 passed (35 files)

Covers clipboard paste, drag-and-drop, uploading placeholders, save gating, and error toasts for issue kiwifs#425.

Re-ran image-paste unit and full UI tests (205 passed), confirmed
feature commit df5b023 and PR #77 delivery.

Signed-off-by: Array Fleet <fleet@advancedresearcharray.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
@advancedresearcharray

Copy link
Copy Markdown
Owner Author

🎉 The changes for this feature have been thoroughly tested and are ready for merge. Please review and approve!

Local verification (hands-on takeover):

  • Targeted tests: 16 passed (editorImagePaste, editorImagePasteExtension)
  • Full UI suite: 205 passed (35 files)
  • CI: green on latest push (a042c1a)

Closes kiwifs#425

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ui): image paste from clipboard in editor

1 participant