Skip to content

Enable pasting images and text from clipboard in story creator#7785

Open
apurv3170 wants to merge 1 commit intosignalapp:mainfrom
apurv3170:features/clipboard-paste-story
Open

Enable pasting images and text from clipboard in story creator#7785
apurv3170 wants to merge 1 commit intosignalapp:mainfrom
apurv3170:features/clipboard-paste-story

Conversation

@apurv3170
Copy link
Copy Markdown

Contributor checklist:

  • My contribution is not related to translations.
  • My commits are in nice logical chunks with good commit messages
  • My changes are rebased on the latest main branch
  • A pnpm run ready run passes successfully (more about tests here)
  • My changes are ready to be shipped to users

Description

Adds the ability to paste images and text directly into the Story Creator using Ctrl+V, without needing to save files to disk first.

What changed:

  • In StoriesTab paste event listener that opens Story Creator directly on Ctrl+V / Cmd+V
  • In AddStoryData added initialText to the Text variant for pre-filling pasted text
  • In StoryCreator and TextStoryCreator wired initialText through the component chain

Key details:

  • Images take priority if clipboard contains both image and text
  • Reuses existing onAddStory handler so the full story flow works automatically
Implementation Screenshots
Present Recording 2026-03-13 190425
After Recording 2026-03-13 193127

Testing:

Manually tested on Windows 11 (OS build 26200.8037):

  • Copied a screenshot → navigated to Stories tab → pressed Ctrl+V → Media Story Creator opened with image
  • Copied text → navigated to Stories tab → pressed Ctrl+V → Text Story Creator opened with text pre-filled
  • Verified existing "Add story" button still works normally for both media and text stories

All tests passed successfully.

References:

@apurv3170 apurv3170 marked this pull request as ready for review March 31, 2026 03:20
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.

1 participant