Skip to content

[$250] [Image] Implement the ability to copy images to the clipboard #4629

Closed

Description

@roryabraham

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Coming from #3313

Action Performed:

Right-click or long-press on an image in a chat.

Expected Result:

  1. A context menu appears, displaying a single option: Copy image to clipboard
  2. Clicking on this option should copy the image to the clipboard, where it can be pasted somewhere else.

Note: the solution implemented must be an offline-first solution. Meaning the user should be able to copy the image to their clipboard, whether or not they have internet connection.

Actual Result:

  1. The normal context menu appears.
  2. Clicking on Copy to clipboard copies the HTML image tag to the clipboard, not the binary image itself.

Workaround:

Screenshot the image? Also you can click on it and download it.

Platform:

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.0.85-3
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:

Upwork job: https://www.upwork.com/jobs/~012fd9a807faaf42aa
View all open jobs on Upwork

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b3973ec74ce159e9
  • Upwork Job ID: 1782953316490067968
  • Last Price Increase: 2024-05-01

Activity

  1. added
    External
    Daily
    on Aug 12, 2021
  2. roryabraham commented on Aug 12, 2021

    @roryabraham
    ContributorAuthor

    Okay, there was a fair deal of discussion over in #3313 and other issues, but the task at hand here is to:

    1. (internal) Create an Expensify/ fork of https://github.com/react-native-clipboard/clipboard
    2. Create a separate fork of https://github.com/react-native-clipboard/clipboard for local testing.
    3. Provide a complete implementation of this issue in your separate fork.
    4. Point this project and your fork for local testing.
    5. Add a new context menu type for images, display it when images are right-clicked or long-pressed. This PR might serve as a useful guide.
    6. Once that's working, submit a PR from your fork of react-native-clipboard to the Expensify/react-native-clipboard fork.
    7. Also submit a PR from your fork of react-native-clipboard to the upstream project.
    8. Create a PR in this repo with your implementation from step 5 above, but point the project at the Expensify/react-native-clipboard fork instead of your personal one. (should be on HOLD until the PR from step 6 is merged.
    9. Lastly, if/when your PR from step 7 is merged by the project maintainers, create another PR to point this repo at the upstream repo: https://github.com/react-native-clipboard/clipboard
  3. roryabraham commented on Aug 16, 2021

    @roryabraham
    ContributorAuthor

    No Upwork job created for this yet.

  4. puneetlath commented on Aug 16, 2021

    @puneetlath
  5. added
    Help Wanted
    on Aug 16, 2021
  6. Drewfergusson commented on Aug 17, 2021

    @Drewfergusson
    Contributor

    @puneetlath things have gotten quite a bit busier for me lately so I'm going to have to pass.

  7. MelvinBot commented on Aug 19, 2021

    @MelvinBot
    Contributor

    @puneetlath, @roryabraham Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  8. roryabraham commented on Aug 20, 2021

    @roryabraham
    ContributorAuthor

    No new proposals here

  9. 230 remaining items

  10. added
    Daily
    and removed
    Weekly
    on Apr 24, 2024
  11. trjExpensify commented on Apr 27, 2024

    @trjExpensify
    Contributor

    Awaiting proposals.

  12. trjExpensify commented on Apr 30, 2024

    @trjExpensify
    Contributor

    @roryabraham are you going to close this in favour of #41239 or something? 😕

  13. Beamanator commented on Apr 30, 2024

    @Beamanator
    Contributor

    I'm fine with moving this to that new issue as long as we align on the desired outcome 👍

  14. melvin-bot commented on May 1, 2024

    @melvin-bot

    📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

  15. melvin-bot commented on May 3, 2024

    @melvin-bot

    @Beamanator, @trjExpensify, @c3024 Whoops! This issue is 2 days overdue. Let's get this updated quick!

  16. Beamanator commented on May 5, 2024

    @Beamanator
    Contributor

    There's a decent amount of activity in #41239 so I'm going to close this one for that one

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

Metadata

Metadata

Labels

DailyEngineeringExternalHelp WantedNewFeature

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions