-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2024-08-23] [$2000] Add support for copy/pasting images on iOS #41239
Comments
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ahmedGaber93 ( |
Triggered auto assignment to @sonialiap ( |
|
Triggered auto assignment to Design team member for new feature review - @dubielzyk-expensify ( |
I don't think we need any design review here |
ProposalPlease re-state the problem that we are trying to solve in this issue.Add images copy/paste in iOS. What is the root cause of that problem?New feature. What changes do you think we should make in order to solve the problem?Add a new option "Paste image" in the + menu of chats, which will show only when there's an image copied in the clipboard. Clicking on this option will open the attachment modal with the image.
Like we have displayFileInModal, we'll add New option in attachment picker:
Screen.Recording.2024-04-30.at.12.38.36.PM.movNote that the above code is not extensive, I had to do more changes locally to make it work. |
Love this ticket. As for the solution, I kinda find it weird to trigger the "paste" permission on In other apps, and even for Expensify Web and MacOS, you can paste a picture into the actual compose bar text input which to me feels more natural than to click the |
This option would only show when we have an image URL in the clipboard.
That is needed because we want to get the clipboard content. |
That might not be feasible in iOS. Maybe we can modify the above shown flow instead? |
🤔 Also, what about Android to maintain cross-platform consistency given @Beamanator's recent discovery here on Rory's OG issue for this:
|
100% agree, I find it super bizarre to override the default Why can't you just paste into the compose box as if you were pasting text, and then that triggers the paste dialog? |
When someone adds an image link in the input box, we can open the attachment modal with the image. But what if the user just wants to send the link itself? Should we show a modal with the option to add the image as an attachment or just keep it as a link? |
Well if a link was on your clipboard, I would think you would just paste the link. But if an image was on your clipboard, then it makes sense to trigger the modal window. |
When I check the clipboard content after copying an image on iOS, it just shows the link. |
@ShridharGoel Thanks for the proposal. I think pasting the image from the URL in the clipboard seem a workaround, because when we copied the image, we click "copy image" not "copy image address", so we may need to handle the image as fileObject or base64 string. Also, your proposal doesn't have how we will detect |
The paste to compose bar is how most apps on iOS works. It works like this on Messages, Telegram, and Signal. So I suggest we do that. Like Shawn said, let's trigger the modal window like we do on web/mac os. |
Yes, that seems reasonable in this case, as long as you fix regressions that do come up. I see you created another PR already, so thank you for that. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
False positive ^ |
OK, I will go ahead and pay this now seeing as we're not going to adjust for regressions. Summarizing payment on this issue:
Upwork job is here: https://www.upwork.com/jobs/~0195bbb40518505764 |
@stephanieelliott payment summary was changed and summarized by @sonialiap here #41239 (comment) to split 25% of C+ bounty to @ishpaul777 for debugging and reviewing a case on a iOS real device |
$2,000 approved for @s77rt based on this first summary. |
Gentle bump @stephanieelliott on #41239 (comment) |
Paid @ishpaul777 , updated payment summary above. @ahmedGaber93 , requested $500 refund, per the split bounty, please confirm via a comment here once you've issued it. Thx |
@mallenexpensify Done. |
Thanks @ahmedGaber93 , confirming refund has been addressed. |
@mallenexpensify This is a new feature and it does require regression test. Regression Test Proposal
|
Thanks Steph and Matt for handling payment while I was OOO! Submitted Regression test to the QA team. I believe this is all done and ready to close |
slack proposal: https://expensify.slack.com/archives/C01GTK53T8Q/p1714239125412939
Feature Request: Add support for pasting images on iOS.
Problem
One of the most common flows for sharing images on iOS is to copy the image somewhere and paste it somewhere else, and NewDot does not support that flow. For example, I wanted to share an image I found on Google in New Expensify. The first thing I did was copy the image to my clipboard, but when I long-pressed on the composer to try and paste that image, the only option available was AutoFill.
This left me with two more less desirable options:
This was a very basic flow that did not work very well at all, and it was a frustrating experience. It's table-stakes for any chat app.
Solution
Implement support for pasting images on iOS.
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @sonialiapThe text was updated successfully, but these errors were encountered: