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-09-23] [$250] Web - Login - When the page size is reduced, the information on the banner is cut off #10410

Closed
kbecciv opened this issue Aug 16, 2022 · 55 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Improvement Item broken or needs improvement.

Comments

@kbecciv
Copy link

kbecciv commented Aug 16, 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. Go to Login page NewDot
  2. Decrease the screen width

Expected Result:

When the page size is reduced, the information on the banner is cut off.
Clipped only beige banner.

Actual Result:

Describe what actually happened

Workaround:

Unknown

Platform:

Where is this issue occurring?

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

Version Number: 1.1.88.13

Reproducible in staging?: Yes

Reproducible in production?: Yes

Email or phone of affected tester (no customers): any

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

Notes/Photos/Videos: Any additional supporting documentation

Bug5691712_Recording__1065.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

@melvin-bot
Copy link

melvin-bot bot commented Aug 16, 2022

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

@kakajann
Copy link
Contributor

kakajann commented Aug 18, 2022

Proposal

This line:

resizeMode={props.isMediumScreenWidth ? 'contain' : 'cover'}

should be:

resizeMode="contain"

Result

Before

before.mov

After

after.mov

@thesahindia
Copy link
Member

@Beamanator, we can close this one as we already have an internal issue for this.

@melvin-bot melvin-bot bot added the Overdue label Aug 19, 2022
@Beamanator
Copy link
Contributor

@thesahindia good find!

@ctkochan22 any reason you'd prefer making this issue internal? If this is just a styling thing let's make it external, but if there's other considerations please let me know :D

@melvin-bot melvin-bot bot removed the Overdue label Aug 22, 2022
@ctkochan22 ctkochan22 added the External Added to denote the issue can be worked on by a contributor label Aug 23, 2022
@melvin-bot
Copy link

melvin-bot bot commented Aug 23, 2022

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

@ctkochan22
Copy link
Contributor

Lets handle this issue here.

@ctkochan22 ctkochan22 self-assigned this Aug 24, 2022
@ctkochan22
Copy link
Contributor

ctkochan22 commented Aug 24, 2022

I don't think just switching it to contain works. We use "cover" so that when the area is larger than the image, it scales up accordingly. If we just applied "contain" it would not do so.

@shawnborton I introduced this bug originally here: #7771 (sorry). I think the issue is that the graphic/text for the CPA image is closer to the margin than the usual background images.
image

I think the issue is that isMediumScreenWidth turns true after we cut off the CPA banner.

Solutions include,

  1. having a stricter cut-off for the login page. Specifically for the CPA banner.
  2. editing the image itself to give it more berth
  3. Maybe give the CPA image margin on the right

@ctkochan22 ctkochan22 added Weekly KSv2 and removed Daily KSv2 labels Aug 24, 2022
@arielgreen
Copy link
Contributor

Unassigning myself since we're fixing internally.

@arielgreen arielgreen removed their assignment Aug 24, 2022
@shawnborton
Copy link
Contributor

What happens if we switch contain to cover in the isMediumScreenWidth scenario?

I would be down to just do nothing here.

@ctkochan22
Copy link
Contributor

ctkochan22 commented Aug 25, 2022

So "cover" will scale it up, the larger the window gets it'll scale up. While "contain" will always make sure the image is shown by scaling down.

Here is a video: https://recordit.co/kWeNVNLzUo

It seems a few people keep reporting it because their desktop's are smaller? So its often show close or cut off:
image

@ctkochan22
Copy link
Contributor

So if we just set it as "contain", it wont' scale up per se. So stretched out , it'll look like this:
image
image

Instead of:
image
image

@Beamanator Beamanator assigned Beamanator and unassigned Beamanator Aug 25, 2022
@shawnborton
Copy link
Contributor

But what about keeping it as contain just at the IsMedium width? Maybe that will just force the whole thing to be shown at that very particular width?

@ctkochan22
Copy link
Contributor

But what about keeping it as contain just at the IsMedium width?

I think we are already doing that,

resizeMode={props.isMediumScreenWidth ? 'contain' : 'cover'}

At least if I'm understanding you correctly. So if isMedium width is true, use "contain". But for anything greater, use "cover"

@shawnborton
Copy link
Contributor

Maybe I am suggesting the opposite then. What happens when we just use cover for isMedium?

@kakajann
Copy link
Contributor

kakajann commented Aug 26, 2022

contain is also responsive. you can check it in my proposal video

@shawnborton
Copy link
Contributor

Okay so that might do the trick then at the isMedium size - can you also share what it looks like for the CPA card image?

@mananjadhav
Copy link
Collaborator

@dylanexpensify A bit confused here, is C+ required here? and PR is not merged yet it says Payment sent.

Quick note, I went through the history, I'll review the PR today in a few hours(if it still needs a review).

@dylanexpensify
Copy link
Contributor

@mananjadhav ah this is my fault, I thought we needed to create/assign the job and pay it out, but I see we needed to wait for review and merge. Please proceed as normal with review when you can! cc @ctkochan22

@dylanexpensify dylanexpensify reopened this Sep 6, 2022
@mananjadhav
Copy link
Collaborator

Thanks for clarifying. I'll get to it in sometime.

@kakajann kakajann mentioned this issue Sep 7, 2022
93 tasks
@melvin-bot melvin-bot bot added the Overdue label Sep 15, 2022
@dylanexpensify
Copy link
Contributor

Any update @mananjadhav?

@melvin-bot melvin-bot bot removed the Overdue label Sep 15, 2022
@mananjadhav
Copy link
Collaborator

@dylanexpensify PR is merged and deployed to staging 2 days back

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Sep 16, 2022
@melvin-bot melvin-bot bot changed the title [$250] Web - Login - When the page size is reduced, the information on the banner is cut off [HOLD for payment 2022-09-23] [$250] Web - Login - When the page size is reduced, the information on the banner is cut off Sep 16, 2022
@melvin-bot
Copy link

melvin-bot bot commented Sep 16, 2022

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.0-8 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-09-23. 🎊

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 22, 2022
@dylanexpensify
Copy link
Contributor

reassigning for payment as I'm OOO tomorrow!

@dylanexpensify dylanexpensify removed their assignment Sep 22, 2022
@dylanexpensify dylanexpensify added External Added to denote the issue can be worked on by a contributor and removed External Added to denote the issue can be worked on by a contributor labels Sep 22, 2022
@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2022

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2022

Current assignee @mananjadhav is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2022

Current assignee @ctkochan22 is eligible for the External assigner, not assigning anyone new.

@puneetlath
Copy link
Contributor

Hm, it looks like @kakajann was already paid for this job.

@mananjadhav sent you a hiring offer for C+.

@mananjadhav
Copy link
Collaborator

Accepted @puneetlath

@puneetlath
Copy link
Contributor

All paid!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Improvement Item broken or needs improvement.
Projects
None yet
Development

No branches or pull requests