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

[HOLD for payment 2022-03-02] IPAD -Attachment - Extra white line displayed in Preview page #7590

Closed
kbecciv opened this issue Feb 5, 2022 · 21 comments
Assignees
Labels
AutoAssignerTriage Auto assign issues for triage to an available triage team member Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Feb 5, 2022

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. Log in app
  2. Tap on any conversation, click on the + button in the compose box
  3. Click on add attachment
  4. Upload a PDF file
  5. Tap on the PDF preview

Expected Result:

The preview page should not display an extra white line

Actual Result:

Extra white line displayed in Preview page

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • iOS IPAD

Version Number: 1.1.36.0

Reproducible in staging?: Yes

Reproducible in production?: Yes

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

Notes/Photos/Videos: Any additional supporting documentation

Bug5439323_Ipad_0402-video.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause

Slack conversation:

View all open jobs on GitHub

@MelvinBot
Copy link

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

@kakajann
Copy link
Contributor

kakajann commented Feb 7, 2022

Proposal

This diff will solve this issue

diff --git a/src/components/AttachmentModal.js b/src/components/AttachmentModal.js
index 1fc8d10c5..0d0b80417 100755
--- a/src/components/AttachmentModal.js
+++ b/src/components/AttachmentModal.js
@@ -139,7 +139,7 @@ class AttachmentModal extends PureComponent {
             ? addEncryptedAuthTokenToURL(this.state.sourceURL)
             : this.state.sourceURL;

-        const attachmentViewStyles = this.props.isSmallScreenWidth
+        const attachmentViewStyles = this.props.isSmallScreenWidth || this.props.isMediumScreenWidth
             ? [styles.imageModalImageCenterContainer]
             : [styles.imageModalImageCenterContainer, styles.p5];

Here is the result:

Before After
Screen Shot 2022-02-07 at 7 45 44 PM Screen Shot 2022-02-07 at 7 45 51 PM

@yuwenmemon
Copy link
Contributor

@kakajann looks good to me!

@MelvinBot MelvinBot removed the Overdue label Feb 8, 2022
@yuwenmemon yuwenmemon removed their assignment Feb 8, 2022
@yuwenmemon yuwenmemon added the External Added to denote the issue can be worked on by a contributor label Feb 8, 2022
@MelvinBot
Copy link

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

@yuwenmemon yuwenmemon added the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Feb 8, 2022
@MelvinBot
Copy link

Current assignee @puneetlath is eligible for the AutoAssignerTriage assigner, not assigning anyone new.

@yuwenmemon yuwenmemon added Improvement Item broken or needs improvement. Weekly KSv2 and removed Daily KSv2 labels Feb 8, 2022
@puneetlath
Copy link
Contributor

Upwork job is here: https://www.upwork.com/jobs/~01a2f3a842d8be6290

@botify botify removed the Weekly KSv2 label Feb 10, 2022
@MelvinBot MelvinBot added the Weekly KSv2 label Feb 10, 2022
@MelvinBot
Copy link

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

@MelvinBot MelvinBot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 10, 2022
@MelvinBot
Copy link

Current assignee @puneetlath is eligible for the Exported assigner, not assigning anyone new.

@rushatgabhane
Copy link
Member

🎀👀🎀 C+ reviewed

@puneetlath,
@kakajann's proposal should fix this issue.

@puneetlath
Copy link
Contributor

Yep, I agree. Nice and simple.

@kakajann please let me know when you've applied to the Upwork job.

@MelvinBot MelvinBot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 10, 2022
@MelvinBot
Copy link

📣 @kakajann You have been assigned to this job by @puneetlath!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@kakajann
Copy link
Contributor

@puneetlath Applied

@kakajann
Copy link
Contributor

I think I made a mistake when I link this issue on PR. What can I do to retrigger the Pullerbear?

@rushatgabhane
Copy link
Member

@kakajann you didn't link the issue properly.

Replace those two lines with this -
$ https://github.com/Expensify/App/issues/number

@kakajann
Copy link
Contributor

@rushatgabhane, yeah, fixed it but it doesn't retrigger the Pullerbear I guess. Tried pushing empty commit but didn't help.

@rushatgabhane
Copy link
Member

You could close this PR and create a new one

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@puneetlath
Copy link
Contributor

Not overdue. Awaiting production deploy.

@MelvinBot MelvinBot removed the Overdue label Feb 22, 2022
@botify botify added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 23, 2022
@botify botify changed the title IPAD -Attachment - Extra white line displayed in Preview page [HOLD for payment 2022-03-02] IPAD -Attachment - Extra white line displayed in Preview page Feb 23, 2022
@botify
Copy link

botify commented Feb 23, 2022

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.39-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2022-03-02. 🎊

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

@puneetlath
Copy link
Contributor

Paid!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoAssignerTriage Auto assign issues for triage to an available triage team member Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants