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 2023-12-15] hold for #31134 [$500] mWeb - Request Money - After increasing the font size, the screen does not re-size correctly #32383

Closed
1 of 6 tasks
lanitochka17 opened this issue Dec 1, 2023 · 29 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 Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Dec 1, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.7-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

Pre-requisite: user must be logged in

  1. Open any chat
  2. Initiate a manual money request
  3. On the amount page, increase the font size in-browser

Expected Result:

The screen should re-size correctly, the user should be able to scroll down if needed

Actual Result:

The screen re-sizes but it's not completely visible and the user is not able to scroll down
Even if the user change the font size to the original value, the screen does not re-size as initially

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

Bug6297760_1701457690855.Gtkj0995_1_.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0179c955490129e536
  • Upwork Job ID: 1730705738910212096
  • Last Price Increase: 2023-12-01
Issue OwnerCurrent Issue Owner: @laurenreidexpensify
@lanitochka17 lanitochka17 added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Dec 1, 2023
@melvin-bot melvin-bot bot changed the title mWeb - Request Money - After increasing the font size, the screen does not re-size correctly [$500] mWeb - Request Money - After increasing the font size, the screen does not re-size correctly Dec 1, 2023
Copy link

melvin-bot bot commented Dec 1, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0179c955490129e536

Copy link

melvin-bot bot commented Dec 1, 2023

Triggered auto assignment to @laurenreidexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 1, 2023
Copy link

melvin-bot bot commented Dec 1, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

Copy link

melvin-bot bot commented Dec 1, 2023

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

@barros001
Copy link
Contributor

barros001 commented Dec 2, 2023

Proposal

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

Request Money screen does not respond well to font size increases, keypad will go off the screen and scrolling is not allowed.

What is the root cause of that problem?

This is a regression from #30065

The PR will set the minimum height of the screen to be the initial screen size in an effort to prevent the native keyboard from compressing the screen when navigating back. The issue is that setting a minHeight will allow for the container to expand if the content expands. This will prevent mobile web from scrolling as the ScrollView component will expand together with the content which defeats its purpose. All parent containers have height:100% and are non-scrollable so the content go off screen and we are not able to scroll it.

Another side effect of the content expanding is that the area where the amount is displayed will not shrink to make more room for the keypad making the experience even worse.

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

The goal of the PR that caused the regression was to ensure the keypad wouldn't push the content up. We can accomplish the same goal while preventing the content from expanding the container by using height instead of minHeight.

On these places:

shouldEnableMinHeight,

const minHeight = shouldEnableMinHeight ? initialHeight : undefined;

style={[styles.flex1, {minHeight}]}

/** Whether to use the minHeight. Use true for screens where the window height are changing because of Virtual Keyboard */
shouldEnableMinHeight: PropTypes.bool,

  • We rename shouldEnableMinHeight to shouldEnableInitialHeight
  • We use height instead of minHeight when setting the style on the wrapper container.

We also update the prop name on these two places:

shouldEnableMinHeight={DeviceCapabilities.canUseTouchScreen()}

shouldEnableMinHeight={DeviceCapabilities.canUseTouchScreen()}

RPReplay_Final1701521724.MP4

What alternative solutions did you explore? (Optional)

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

@melvin-bot melvin-bot bot added the Overdue label Dec 4, 2023
@laurenreidexpensify
Copy link
Contributor

@luacmartins @fedirjh - is this a regression from #30065?

@melvin-bot melvin-bot bot removed the Overdue label Dec 4, 2023
@fedirjh
Copy link
Contributor

fedirjh commented Dec 4, 2023

@laurenreidexpensify Yes, I think this should be put on hold for #31134, I believe fixing the other bug will cover this bug as well.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Dec 5, 2023
@laurenreidexpensify laurenreidexpensify changed the title [$500] mWeb - Request Money - After increasing the font size, the screen does not re-size correctly hold for #31134 [$500] mWeb - Request Money - After increasing the font size, the screen does not re-size correctly Dec 5, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Dec 8, 2023
@melvin-bot melvin-bot bot changed the title hold for #31134 [$500] mWeb - Request Money - After increasing the font size, the screen does not re-size correctly [HOLD for payment 2023-12-15] hold for #31134 [$500] mWeb - Request Money - After increasing the font size, the screen does not re-size correctly Dec 8, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Dec 8, 2023
Copy link

melvin-bot bot commented Dec 8, 2023

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

Copy link

melvin-bot bot commented Dec 8, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.9-5 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 2023-12-15. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

  • @c3024 requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Dec 8, 2023

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:

  • [@c3024] The PR that introduced the bug has been identified. Link to the PR:
  • [@c3024] 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:
  • [@c3024] 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:
  • [@c3024] Determine if we should create a regression test for this bug.
  • [@c3024] 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.
  • [@laurenreidexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

Copy link

melvin-bot bot commented Dec 15, 2023

### Payment Summary
[Upwork Job](https://www.upwork.com/jobs/~0179c955490129e536)
- <Role>: @c3024 paid $(<amount>) via Upwork (<Replace with offer link>)

#### BugZero Checklist (@laurenreidexpensify)
- [ ] I have verified the correct assignees and roles are listed above
- [ ] I have verified that there are no duplicate or incorrect contracts on Upwork (https://www.upwork.com/ab/applicants/1730705738910212096/hired)
- [ ] I have paid out the Upwork contracts or cancelled the ones that are incorrect
- [ ] I have verified the payment summary above is correct

Copy link

melvin-bot bot commented Dec 18, 2023

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

@melvin-bot melvin-bot bot added the Overdue label Dec 18, 2023
@laurenreidexpensify
Copy link
Contributor

@fedirjh can you confirm - we fixed this in #31134 right so this can be closed?

@melvin-bot melvin-bot bot removed the Overdue label Dec 18, 2023
@fedirjh
Copy link
Contributor

fedirjh commented Dec 18, 2023

@laurenreidexpensify It was fixed with #32460 , this can be closed.

@c3024
Copy link
Contributor

c3024 commented Dec 18, 2023

I reviewed that PR. I think this is the only issue that is still open and payment for the review can be processed here.

@laurenreidexpensify
Copy link
Contributor

@luacmartins can you confirm ^^

@luacmartins
Copy link
Contributor

Yes, we fixed this issue with #32460 and @c3024 reviewed that PR.

@melvin-bot melvin-bot bot added the Overdue label Dec 22, 2023
Copy link

melvin-bot bot commented Dec 26, 2023

@luacmartins, @laurenreidexpensify, @c3024 Huh... This is 4 days overdue. Who can take care of this?

Copy link

melvin-bot bot commented Dec 28, 2023

@luacmartins, @laurenreidexpensify, @c3024 Still overdue 6 days?! Let's take care of this!

@laurenreidexpensify
Copy link
Contributor

@c3024 it doesn't look like you've been compensated in the other associated issues for #32460, so please apply in Upwork https://www.upwork.com/jobs/~0179c955490129e536 for review payment for this thanks

@c3024
Copy link
Contributor

c3024 commented Dec 29, 2023

Applied for the job. Thanks.

@melvin-bot melvin-bot bot added the Overdue label Jan 1, 2024
Copy link

melvin-bot bot commented Jan 1, 2024

@luacmartins, @laurenreidexpensify, @c3024 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented Jan 1, 2024

@luacmartins, @laurenreidexpensify, @c3024 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@laurenreidexpensify
Copy link
Contributor

Apols @c3024 that upwork job is now closed, can you apply here instead - Job added to Upwork: upwork.com/jobs/~0187189d12226d3dda Thanks

@laurenreidexpensify
Copy link
Contributor

(not overdue)

@melvin-bot melvin-bot bot removed the Overdue label Jan 2, 2024
@c3024
Copy link
Contributor

c3024 commented Jan 2, 2024

Applied, thanks.

@laurenreidexpensify
Copy link
Contributor

Offer sent in Upwork 👍

@c3024
Copy link
Contributor

c3024 commented Jan 2, 2024

Accepted

@laurenreidexpensify
Copy link
Contributor

Payment Summary

C+ Review @c3024 - paid in Upwork $500

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 Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

6 participants