-
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
[MEDIUM] [Image][$1000] Improve NewDot image uploading experience, add large file support #9402
Comments
Triggered auto assignment to @MitchExpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @deetergp ( |
Good change. I agree. |
ProposalOpacity can be added to the preview image, but loading later. It would be better to keep it, because it is the loading that all the images have when a url is received and it is being loaded. This spinner while loading the image is better to keep it. Sin.titulo.mp4Add a style: Lines 326 to 328 in 72ed0e5
App/src/components/HTMLEngineProvider/HTMLRenderers/ImageRenderer.js Lines 52 to 58 in 72ed0e5
ResultSimulator.Screen.Recording.-.iPhone.13.-.2022-06-15.at.05.37.50.mp4 |
@JosueEchandiaAsto Thanks for the proposal. But as you are a new contributor and have already been assigned two 2 tasks, you will have to wait before applying to new tasks. Contribution policy: https://github.com/Expensify/App/blob/main/CONTRIBUTING.md#payment-for-contributions
|
@parasharrajat Both tasks have already been completed and have been merged. Do I need to complete any additional steps in those tasks? |
Oh, I see. I will review your proposal shortly. |
@JosueEchandiaAsto Your proposal does not meet the requirements.
Why should we keep the loader? Idea is to show the same thumbnail when the image is loading even after the server URL is received. When the image is fully loaded from the URL show the final image. |
Still no news from @kidroca. You still out there? |
Still no word from @kidroca. Do we need to open this back up to other contributors? |
Do we have a clear picture of what we need done in the front-end PR for that? In the meantime, I've reached out. 👍 |
Hi team, I apologize for my extended absence and lack of communication. I'm back now and reviewing the current state of the ticket. I'll provide an update within 24 hours, after I've caught up with the latest changes |
Status UpdateI've synchronized my PR with latest changes from
We could do the following:
Or instead of My original understanding was that "AddAttachment" API worked with the html markup generated on the client, so the original proposal was to add Lines 4234 to 4248 in 30d508b
But inspecting the Network call I see no markup is being sent, or at least the |
Hey gang, I'm back from OOO and will try to get to this today. |
@deetergp What do you think about this #9402 (comment)? do we need these changes on backend? |
Do we need multiple attachments for this implementation? If not, then I would say that we just add another parameter to the API for attachment-id and then on backend we can map that with the file coming from file array. IMO, AddAttachment API only supports sending one file at a time so we link the attachment-id with the file being sent. Another way
|
We don't currently support multiple attachments and I don't know of any immediate plans to do so though it seems likely we will want to at some point. But for now, I think @parasharrajat makes a good point, let's just send the single attachment-id along the file in |
I don't think we can send anything other than files in @kidroca Can you please make these changes and let us know if you need anything differently. Let's get this merged asap. |
Just so I am crystal clear on what we need on the back end here: The end result we are looking for here is that that we will add |
@kidroca Can you please chime in here and explain what you need? |
Correct. IMO, what we need is that when backend generates the HTML for image in Report action, we have to add the attachment id as attribute |
Yes
Yes, both these lists should have the same order when sent I originally thought that we send file metadata as JSON, but it seems we only send binary data for the file, so any metadata like the attachment id should be added under a separate key Since we currently support only a single attachment let's add a key like Or if we like to keep it super simple we can just add the key |
Actually we need to add this to all attachments not just |
Let's keep it simple for now. I have a back end PR updated and out for review. |
The PR to add this is now on staging. |
Let's roll @kidroca |
Great stuff, that's now on prod! @kidroca can you give us an idea of when you can progress the front-end PR? Thanks! |
Bump @kidroca |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The image should be grayed (opacity 0.6 i.e., chatItemUnsentMessage) until its uploaded and once its uploaded it should not show the white thumbnail with loader
and instead continue showing the local thumbnail or show the final image immediately.
Actual Result:
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platform:
Version Number: 1.1.76
Reproducible in staging?: Y
Reproducible in production?: Y
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1654262165566879
View all open jobs on GitHub
cc @michaelhaxhiu, @cead22, @kidroca.
Issue Owner
Current Issue Owner: @deetergpThe text was updated successfully, but these errors were encountered: