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

Attachment preview is cut if the file name is long - @Santhosh-Sellavel #5755

Closed
isagoico opened this issue Oct 11, 2021 · 18 comments
Closed
Assignees
Labels
Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@isagoico
Copy link

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


Action Performed:

  1. Navigate to a conversation
  2. Upload a file with a long name that will not show a preview (like a zip or a mp4)

Expected Result:

The attachment preview should not extend beyond the screen.

Actual Result:

Attachment preview is cut if the file name is long and the download button is not visible.

Workaround:

Upload files with shorter names.

Platform:

Where is this issue occurring?

  • iOS
  • Android

Version Number: 1.1.7-0

Reproducible in staging?: yes
Reproducible in production?: yes

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:

Issue reported by: @Santhosh-Sellavel
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1633726212054300?thread_ts=1633726118.053700&cid=C01GTK53T8Q

View all open jobs on GitHub

@MelvinBot
Copy link

Triggered auto assignment to @chiragsalian (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@Santhosh-Sellavel
Copy link
Collaborator

Proposal

  1. Add style style={styles.mw100} in here.

  2. Add style styles.flexShrink1 in here.

    <Text style={[styles.textStrong]}>{props.file && props.file.name}</Text>

Post Fix:
Screenshot 2021-10-12 at 1 43 30 AM

@chiragsalian chiragsalian added the External Added to denote the issue can be worked on by a contributor label Oct 12, 2021
@MelvinBot
Copy link

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

@chiragsalian chiragsalian added Weekly KSv2 and removed Daily KSv2 labels Oct 12, 2021
@chiragsalian
Copy link
Contributor

chiragsalian commented Oct 12, 2021

Demoting to weekly since there is N6 hold on this. @Santhosh-Sellavel your proposal looks good to me. Once puneet posts the issue on Upwork feel free to post your plan there and we'll hire you for the task.

@puneetlath
Copy link
Contributor

@Santhosh-Sellavel created the job and invited you!

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Oct 15, 2021

Applied for the job! Will get started and submit PR soon!

@Santhosh-Sellavel
Copy link
Collaborator

cc: @chiragsalian @puneetlath

A heads up here.
When I reported this issue, the filename is not quite long here. Have a look at the attachment in the issue description.
And this issue preview cut-off in chat view which occurred only in native mobile devices.

Here @isagoico described the issue as when filename long preview cuts, so it tested out with a really long filename.
Still, issues that occurred only in native mobile apps, web/desktop still work fine.

But surprisingly while adding an attachment with a really long name break UI in Send Attachment modal and the issue occurs in web/desktop also. This looks like a separate issue to me. If possible I'll try to address this issue also here or will raise it separately to get the issue fixed.

Please post your thoughts in this thanks!

Send Attachment modal UI Break Issue

Screenshot 2021-10-21 at 4 15 21 AM

@chiragsalian
Copy link
Contributor

I was OOO for a couple of days so i'm only just getting to this.

But surprisingly while adding an attachment with a really long name break UI in Send Attachment modal and the issue occurs in web/desktop also. This looks like a separate issue to me. If possible I'll try to address this issue also here or will raise it separately to get the issue fixed.

Yeah, that super long file name feels like another issue so feel free to raise it separately since we might want to pull in designs opinion for it and to decide if its ROI is worth it.

Anyway once your current PR is ready for review can you let me know.

@Santhosh-Sellavel
Copy link
Collaborator

@isagoico Can you help me setup this -> #5755 (comment) as an seperate issue.

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Oct 29, 2021

@chiragsalian PR is here #5969

Did you check these out?

@chiragsalian
Copy link
Contributor

Ah i missed that you said its ready for review in the PR. I'll assign it to me so that its on my plate for review. Thanks for the bump.

@isagoico
Copy link
Author

isagoico commented Nov 1, 2021

Created an issue for this here

#6157

@Santhosh-Sellavel
Copy link
Collaborator

Wondering why the payment date is not updated in the title yet, PR is deployed to production 7 days ago refer #5969 (comment)

@puneetlath
Copy link
Contributor

Sorry about that @Santhosh-Sellavel. I'm not sure why that's happening. I'll have the team look into it.

In the meantime, I've gone ahead and paid the contract out.

@Santhosh-Sellavel
Copy link
Collaborator

@puneetlath You've ended the wrong contract!

@mountiny
Copy link
Contributor

The problem here was that Exported label was not added, which is a requirement for the comment to work.

@puneetlath
Copy link
Contributor

Ah got it! Thanks for the explanation @mountiny.

@Christinadobrzyn
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants