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 2024-05-22] [$250] Login - mweb - Login screen gets off center after selecting saved credentials #40559

Closed
1 of 6 tasks
kavimuru opened this issue Apr 19, 2024 · 33 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented Apr 19, 2024

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


Version Number: 1.4.63-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail: n/a
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:

Action Performed:

precondition: user has at least 3 saved credentials

  1. Go to https://staging.new.expensify.com/

  2. Tap the email field

  3. Dismiss saved password modal

  4. Tap the email field again

  5. Swipe the credentials and select the password icon

  6. Scroll down and select the 3rd saved credential

Expected Result:

The login screen is fully visible

Actual Result:

The login screen gets off center and moves to the left

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6454281_1713475501494.video_2024-04-18_17-23-00.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01767f654b3e4ea3af
  • Upwork Job ID: 1781356871059267584
  • Last Price Increase: 2024-05-03
  • Automatic offers:
    • fedirjh | Reviewer | 0
    • samilabud | Contributor | 0
Issue OwnerCurrent Issue Owner: @puneetlath
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 19, 2024
Copy link

melvin-bot bot commented Apr 19, 2024

Triggered auto assignment to @puneetlath (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@kavimuru
Copy link
Author

@puneetlath FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@kavimuru
Copy link
Author

This bug might be related to #vip-vsb

@puneetlath puneetlath added the External Added to denote the issue can be worked on by a contributor label Apr 19, 2024
@melvin-bot melvin-bot bot changed the title Login - mweb - Login screen gets off center after selecting saved credentials [$250] Login - mweb - Login screen gets off center after selecting saved credentials Apr 19, 2024
Copy link

melvin-bot bot commented Apr 19, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01767f654b3e4ea3af

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 19, 2024
Copy link

melvin-bot bot commented Apr 19, 2024

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

@melvin-bot melvin-bot bot added the Overdue label Apr 22, 2024
Copy link

melvin-bot bot commented Apr 22, 2024

@puneetlath, @fedirjh Whoops! This issue is 2 days overdue. Let's get this updated quick!

@charles-liang
Copy link
Contributor

@kavimuru can you provide your android and chrome version? I tried to replicate it, but it didn't occur.
I run in

Chrome 113
Android 14

截屏2024-04-23 16 54 10

@puneetlath
Copy link
Contributor

Are you able to repro @fedirjh?

@melvin-bot melvin-bot bot removed the Overdue label Apr 23, 2024
@fedirjh
Copy link
Contributor

fedirjh commented Apr 23, 2024

Are you able to repro @fedirjh?

@puneetlath I can reproduce with these steps:

  1. Go to https://staging.new.expensify.com/
  2. Tap the email field
  3. Enter a very long email
  4. Double-tap the email to select it

@kavimuru Can you test with these steps and see if you can reproduce the same issue?

@charles-liang
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Login - mweb - Login screen gets off center after selecting saved credentials

What is the root cause of that problem?

When the SVG uses absolute positioning and is either large in size or positioned such that part of it extends outside the viewport, this might lead to the appearance of scrollbars because the browser needs to provide a way for users to access and view the overflowed part.

If switch to fixed positioning, the SVG will be positioned relative to the viewport and will be independent of the rest of the document's layout or scroll. Therefore, the SVG's size or position will not affect the document's scroll behavior.

<View style={[styles.pAbsolute, styles.w100, StyleUtils.getHeight(backgroundImageHeight), StyleUtils.getBackgroundColorStyle(theme.highlightBG)]}>

What changes do you th

ink we should make in order to solve the problem?

change style from absolute to fixed

Before:

截屏2024-04-24 15 27 08

After:

截屏2024-04-24 15 27 19

What alternative solutions did you explore? (Optional)

N/A

@samilabud
Copy link
Contributor

samilabud commented Apr 25, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Login - mweb - Login screen gets off center when selecting all text content with dblclick

What is the root cause of that problem?

We are using an overflowHidden to wrap the SignInPageContent (The overflow: hidden CSS property on a parent component can clip any content that overflows its boundaries. This can affect how child components (like a TextInput) are displayed, especially when they extend beyond the parent's visible area due to text selection handles), when we select all the input content there is a moment where the magnfier (in android) try to adjust to the space available and we get the error / weird behavior.

What changes do you think we should make in order to solve the problem?

We can remove the overflowHidden for the rest of navigators/devices and let it in Safari when mobile (due the bug there is because the magnifier behavior) in the View component inside SignInPageLayout:
<View style={[ styles.flex1, styles.flexColumn, **Browser.isMobileSafari() ? styles.overflowHidden : {},** StyleUtils.getMinimumHeight(backgroundImageHeight), StyleUtils.getSignInBgStyles(theme), ]} >

Before changes:

Before.changes.mov

After changes with previous bug fix tested:

After.changes.-.mobile.safari.and.mobile.chrome.mp4

Copy link

melvin-bot bot commented Apr 26, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Apr 26, 2024
@fedirjh
Copy link
Contributor

fedirjh commented Apr 29, 2024

@charles-liang Your root cause analysis is not clear to me. It does not explain why this issue occurs when the input text is long.

@melvin-bot melvin-bot bot removed the Overdue label Apr 29, 2024
@fedirjh
Copy link
Contributor

fedirjh commented Apr 29, 2024

@samilabud It seems overflowHidden style was implemented in this PR #25457 to fix another issue (#24328). Is it safe to remove this style? Won’t the old bug reappear?

@samilabud
Copy link
Contributor

@samilabud It seems overflowHidden style was implemented in this PR #25457 to fix another issue (#24328). Is it safe to remove this style? Won’t the old bug reappear?

Hi @fedirjh, you were right, I have updated my proposal, I have included new video with evidence, here below what was happening with my previous proposal (was working for mobile chrome only):

With.previous.proposal.-.mobile.safari.and.mobile.chrome.mp4

@charles-liang
Copy link
Contributor

charles-liang commented Apr 29, 2024

@fedirjh

@charles-liang Your root cause analysis is not clear to me. It does not explain why this issue occurs when the input text is long.

I understand that removing overflow: hidden might cause other issues, which is why I didn’t propose it.
Since position: absolute can expand the page and make this section scrollable, it’s only because overflow: hidden hides the scrollbar that users can't scroll, but it doesn’t prevent scrolling programmatically.
On Android mobile web, when a toolbar pops up, the system will position the menu to the right of the last character of the text if the right side can scroll, which would cause the page to scroll. If it can't scroll, it will shift to the left. That's why this issue only appears on Android’s mobile web.

The longtext does not need to be very long; it only needs to exceed the length of the input box by a few characters, depending on the width of the whitespace to the right of the input box.

On the other hand, position: fixed doesn’t expand the page and prevents scrolling.

If this makes it clearer for you, I will update my proposal.

@melvin-bot melvin-bot bot added the Overdue label May 1, 2024
@puneetlath
Copy link
Contributor

@fedirjh how's this going?

@melvin-bot melvin-bot bot removed the Overdue label May 1, 2024
@fedirjh
Copy link
Contributor

fedirjh commented May 6, 2024

@charles-liang Thanks for the update. However, I am leaning toward @samilabud solution. I believe that removing the style causing the issue (overflowHidden) and applying it selectively to mWeb Safari would be the most effective approach.

@fedirjh
Copy link
Contributor

fedirjh commented May 6, 2024

Let's proceed with @samilabud's Proposal.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented May 6, 2024

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

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels May 6, 2024
@samilabud
Copy link
Contributor

Thanks @fedirjh, I have created the PR, just waiting for the upwork offer.

Anything else I'm at your service!

@puneetlath
Copy link
Contributor

Sorry, just for my understanding, does Safari treat overflow:hidden different than Chrome?

@samilabud
Copy link
Contributor

Sorry, just for my understanding, does Safari treat overflow:hidden different than Chrome?

Not really, the problem with Safari is that it has a magnifying glass that affects the CSS and in this case makes the content move as if it had a scroll (even with the overflow hidden).

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label May 10, 2024
Copy link

melvin-bot bot commented May 10, 2024

📣 @fedirjh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented May 10, 2024

📣 @samilabud 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer 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 📖

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels May 15, 2024
@melvin-bot melvin-bot bot changed the title [$250] Login - mweb - Login screen gets off center after selecting saved credentials [HOLD for payment 2024-05-22] [$250] Login - mweb - Login screen gets off center after selecting saved credentials May 15, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 15, 2024
Copy link

melvin-bot bot commented May 15, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented May 15, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.73-7 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 2024-05-22. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented May 15, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@fedirjh] The PR that introduced the bug has been identified. Link to the PR:
  • [@fedirjh] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@fedirjh] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@fedirjh] Determine if we should create a regression test for this bug.
  • [@fedirjh] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@puneetlath] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@fedirjh
Copy link
Contributor

fedirjh commented May 19, 2024

BugZero Checklist:

Regression Test Proposal

1. Go to https://staging.new.expensify.com/ on mobile web
2. Tap the email field
3. Enter a very long email
4. Double-tap the email to select it or long press to use the magnifier
5. Try to scroll (swipe) to the left or right
6. Verify content is static and can't be moved to the sides
  • Do we agree 👍 or 👎

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels May 21, 2024
@puneetlath
Copy link
Contributor

Regression test update here: https://github.com/Expensify/Expensify/issues/398940

Everyone has been paid. Thanks y'all!

@melvin-bot melvin-bot bot removed the Overdue label May 23, 2024
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 Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Archived in project
Development

No branches or pull requests

5 participants