Skip to content
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

Open
chiragsalian opened this issue Jun 11, 2022 · 208 comments
Assignees
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item.

Comments

@chiragsalian
Copy link
Contributor

chiragsalian commented Jun 11, 2022

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:

  1. Upload an image in App

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
image
and instead continue showing the local thumbnail or show the final image immediately.

Actual Result:

  1. The local image is being uploaded and we see the local thumbnail,
    image
  2. The local image has finished uploading and now we attempt to render it which first shows up a white thumbnail with loader
    image
  3. The render completes and we see the uploaded image
    image

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platform:

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

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 OwnerCurrent Issue Owner: @deetergp
@chiragsalian chiragsalian added Engineering Weekly KSv2 Planning Changes still in the thought process External Added to denote the issue can be worked on by a contributor labels Jun 11, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jun 11, 2022

Triggered auto assignment to @MitchExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jun 11, 2022
@MitchExpensify
Copy link
Contributor

Upwork Job

@melvin-bot melvin-bot bot removed the Overdue label Jun 13, 2022
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Jun 13, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jun 13, 2022

Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (Exported)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 13, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jun 13, 2022

Triggered auto assignment to @deetergp (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot changed the title Improve NewDot image uploading experience [$250] Improve NewDot image uploading experience Jun 13, 2022
@parasharrajat
Copy link
Member

Good change. I agree.

@JosueEchandiaAsto
Copy link
Contributor

JosueEchandiaAsto commented Jun 17, 2022

Proposal

Opacity 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.mp4

Add a style:

App/src/styles/styles.js

Lines 326 to 328 in 72ed0e5

opacityImageLoading: {
opacity: 0.6,
},

<ThumbnailImage
previewSourceURL={previewSource}
style={[styles.webViewStyles.tagStyles.img, styles.opacityImageLoading]}
isAuthTokenRequired={isAttachment}
imageWidth={imageWidth}
imageHeight={imageHeight}
/>

Result

Simulator.Screen.Recording.-.iPhone.13.-.2022-06-15.at.05.37.50.mp4

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 17, 2022
@parasharrajat
Copy link
Member

@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

New contributors are limited to working on one job at a time, however experienced contributors may work on numerous jobs simultaneously.

@JosueEchandiaAsto
Copy link
Contributor

JosueEchandiaAsto commented Jun 17, 2022

@parasharrajat Both tasks have already been completed and have been merged. Do I need to complete any additional steps in those tasks?

@parasharrajat
Copy link
Member

Oh, I see. I will review your proposal shortly.

@melvin-bot melvin-bot bot added the Overdue label Jun 20, 2022
@parasharrajat
Copy link
Member

parasharrajat commented Jun 20, 2022

@JosueEchandiaAsto Your proposal does not meet the requirements.

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.

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.

@melvin-bot melvin-bot bot removed the Overdue label Jun 20, 2022
@deetergp
Copy link
Contributor

@deetergp are you working on those?

I will look into these later today.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Aug 27, 2024
@deetergp
Copy link
Contributor

I was not able to get into this this week but will jump in it first thing when I'm back on Tuesday.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Aug 30, 2024
Copy link

melvin-bot bot commented Sep 2, 2024

@deetergp, @kidroca, @trjExpensify, @parasharrajat, @marktoman Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@deetergp
Copy link
Contributor

deetergp commented Sep 4, 2024

Still have not had a chance to look into this deeper. Hoping to do so tomorrow.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 4, 2024
Copy link

melvin-bot bot commented Sep 9, 2024

@deetergp, @kidroca, @trjExpensify, @parasharrajat, @marktoman Eep! 4 days overdue now. Issues have feelings too...

@deetergp
Copy link
Contributor

Will try to get to this later today!

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 10, 2024
Copy link

melvin-bot bot commented Sep 13, 2024

@deetergp, @kidroca, @trjExpensify, @parasharrajat, @marktoman Whoops! This issue is 2 days overdue. Let's get this updated quick!

@deetergp
Copy link
Contributor

In response to this comment calling for back-end changes to allow data-attribute-id, I believe I figured out where we are stripping it from AddAttachment & AddTextAndAttachment and how to add it back. @kidroca do you have a WIP PR that I could use to test these back end changes?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 16, 2024
Copy link

melvin-bot bot commented Sep 20, 2024

@deetergp, @kidroca, @trjExpensify, @parasharrajat, @marktoman Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@parasharrajat
Copy link
Member

@deetergp Looks like you like cooking. This link takes to a recipe.

Screenshot 2024-09-21 at 7 44 38 PM

@deetergp
There is a draft from @kidroca #47184 which does not have any changes to attach attachment-id to the HTML tags. But it seems we will add those in Report.getUploadingAttachmentHtml function. Maybe use a dummy value for now to test your changes.

@parasharrajat
Copy link
Member

@kidroca Could you please start implementing your changes as per #9402 (comment)? We can use #47184 if you want to.

@parasharrajat
Copy link
Member

Bump @kidroca

Copy link

melvin-bot bot commented Sep 24, 2024

@deetergp, @kidroca, @trjExpensify, @parasharrajat, @marktoman 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@deetergp
Copy link
Contributor

Rebump @kidroca

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 25, 2024
@parasharrajat
Copy link
Member

@trjExpensify Can we do something to ping @kidroca for pending changes?

Copy link

melvin-bot bot commented Sep 30, 2024

@deetergp, @kidroca, @trjExpensify, @parasharrajat, @marktoman Eep! 4 days overdue now. Issues have feelings too...

@deetergp
Copy link
Contributor

@deetergp Looks like you like cooking. This link takes to a recipe.

Haha, yes I was cooking. Dish turned out to be pretty tasty too!

This is the comment from @kidroca I had intended meant to link to #9402 (comment) since Github has decided to bury it.

@melvin-bot melvin-bot bot removed the Overdue label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item.
Projects
Development

No branches or pull requests