Skip to content

Leo image paste from clipboard support #30540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

bbondy
Copy link
Member

@bbondy bbondy commented Aug 7, 2025

Resolves brave/brave-browser#46468

For easiest review, please review 1 commit at a time.

QA plan:

  • Make sure drag and drop doesn't regress
  • Make sure pasting an image that's in your clipboard gets added as a file attachment
  • Make sure pasting only text in your clipboard just pastes the text in the input box

bbondy added 4 commits August 7, 2025 15:24
Extract the file conversion utility function from drag_overlay to a
reusable utility module for use across multiple components.
Rename the function to be more generic as it will be used for both
drag-and-drop and clipboard paste operations.
Add support for pasting images from clipboard in the input box.
Images are filtered and processed using the same attachImages
function used for drag and drop.
@bbondy bbondy self-assigned this Aug 7, 2025
@github-actions github-actions bot added the CI/storybook-url Deploy storybook and provide a unique URL for each build label Aug 7, 2025
@brave-builds
Copy link
Collaborator

A Storybook has been deployed to preview UI for the latest push

Copy link
Contributor

@fallaciousreasoning fallaciousreasoning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - looks like there's a merge conflict unfortunately :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/storybook-url Deploy storybook and provide a unique URL for each build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support image pasting in Leo (Browser AI)
3 participants