Skip to content

feat: add image paste support#203

Merged
cupcakearmy merged 5 commits into
cupcakearmy:mainfrom
smeinecke:feat/image-paste
Jun 7, 2026
Merged

feat: add image paste support#203
cupcakearmy merged 5 commits into
cupcakearmy:mainfrom
smeinecke:feat/image-paste

Conversation

@smeinecke
Copy link
Copy Markdown
Contributor

@smeinecke smeinecke commented May 12, 2026

Summary

  • Add image paste functionality via the standard DataTransfer clipboard API
  • Pasted images appear as a preview on the create page before submission
  • On the download page, images are displayed inline as a preview in addition to the download button
  • Add Playwright E2E test covering paste, preview, and checksum verification
  • Fix Rust 2024 never-type-fallback compatibility in store.rs

Test plan

  • npx playwright test --project=chrome test/web/file/paste.spec.ts
  • Manual: copy an image, paste on the create page, submit, verify preview on download page

smeinecke added 2 commits June 1, 2026 02:35
Add image paste functionality allowing users to paste images directly
from the clipboard as files. Uses the standard DataTransfer API
(clipboardData.items) for cross-browser compatibility.

On the download page, images are now displayed as previews in addition
to the download option.

Also fix Rust 2024 never-type-fallback compatibility by adding turbofish
type annotations to redis crate calls.
Remove trailing whitespace throughout the Create.svelte component and add missing alt attribute to pasted image previews for better accessibility.
@cupcakearmy cupcakearmy merged commit c3e475c into cupcakearmy:main Jun 7, 2026
1 check passed
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.

2 participants