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-10-04][PAY][$250] Empty space below the "Next" button when we open the page, and the button does not keep its position above the keyboard #48468

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

Comments

@m-natarajan
Copy link

m-natarajan commented Sep 3, 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: 9.0.28-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: @rayane-djouah
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1725318514200989

Action Performed:

  1. Open the app and log in
  2. Navigate to settings > Switch to Expensify Classic
  3. Select any reason and proceed to the next screen

Expected Result:

The next button should be correctly positioned above the keyboard

Actual Result:

Empty space below the "Next" button when we open the page, and the button does not keep its position above the keyboard

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

363339995-8a2d711e-ef96-416e-a8f2-e5af1059c8d6.mp4
RPReplay_Final1725367824.MP4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021832067388388096796
  • Upwork Job ID: 1832067388388096796
  • Last Price Increase: 2024-09-06
  • Automatic offers:
    • DylanDylann | Reviewer | 103992082
Issue OwnerCurrent Issue Owner: @puneetlath
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 3, 2024
Copy link

melvin-bot bot commented Sep 3, 2024

Triggered auto assignment to @kevinksullivan (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.

@FitseTLT
Copy link
Contributor

FitseTLT commented Sep 3, 2024

Edited by proposal-police: This proposal was edited at 2024-09-03 13:13:24 UTC.

Proposal

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

Empty space below the "Next" button when we open the page, and the button does not keep its position above the keyboard

What is the root cause of that problem?

We haven't set shouldEnableMaxHeight on the screen wrapper here

<ScreenWrapper testID={ExitSurveyResponsePage.displayName}>

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

enable max height on the screen wrapper in exit survey response page

            shouldEnableMaxHeight

We can also make same fixes in other exit survey page (or other pages) with the same problem

What alternative solutions did you explore? (Optional)

@bernhardoj
Copy link
Contributor

Proposal

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

There are lot of empty spaces below the button in exit survey response page.

What is the root cause of that problem?

When the keyboard is shown, we don't resize the page height. We have a shouldEnableMaxHeight prop to do it, but we aren't using it for the exit survey page.

const maxHeight = shouldEnableMaxHeight ? windowHeight : undefined;

return (
<ScreenWrapper testID={ExitSurveyResponsePage.displayName}>

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

Enable the max height by passing the shouldEnableMaxHeight prop to the page ScreenWrapper.

return (
<ScreenWrapper testID={ExitSurveyResponsePage.displayName}>

We can apply the same solution to any page that has the same issue.

@suneox
Copy link
Contributor

suneox commented Sep 3, 2024

This issue seems related to the virtual viewport on mWeb, which I resolved several months ago.

@rayane-djouah
Copy link
Contributor

@kevinksullivan - Can I get assigned as C+ since I reported the bug?

@melvin-bot melvin-bot bot added the Overdue label Sep 5, 2024
@kevinksullivan kevinksullivan added the External Added to denote the issue can be worked on by a contributor label Sep 6, 2024
Copy link

melvin-bot bot commented Sep 6, 2024

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

@melvin-bot melvin-bot bot changed the title Empty space below the "Next" button when we open the page, and the button does not keep its position above the keyboard [$250] Empty space below the "Next" button when we open the page, and the button does not keep its position above the keyboard Sep 6, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 6, 2024
Copy link

melvin-bot bot commented Sep 6, 2024

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

Copy link

melvin-bot bot commented Sep 9, 2024

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

@melvin-bot melvin-bot bot added the Overdue label Sep 9, 2024
@DylanDylann
Copy link
Contributor

On my list today

@melvin-bot melvin-bot bot removed the Overdue label Sep 10, 2024
@DylanDylann
Copy link
Contributor

@bernhardoj Is there any difference between your proposal and @FitseTLT's proposal?

@DylanDylann
Copy link
Contributor

@FitseTLT

We can also make same fixes in other exit survey page (or other pages) with the same problem

@bernhardoj

We can apply the same solution to any page that has the same issue.

Which page has the same issue?

@DylanDylann
Copy link
Contributor

@FitseTLT Please follow the rule

7. Refrain from leaving additional comments until someone from the Contributor-Plus team and / or someone from Expensify provides feedback on your proposal (do not create a pull request yet).
- Do not leave more than one proposal.
- Do not make extensive changes to your current proposal until after it has been reviewed.
- If you want to make an entirely new proposal or update an existing proposal, please go back and edit your original proposal, then post a new comment to the issue in this format to alert everyone that it has been updated:
```
## Proposal
[Updated](link to proposal)
```

@FitseTLT
Copy link
Contributor

@FitseTLT Please follow the rule

7. Refrain from leaving additional comments until someone from the Contributor-Plus team and / or someone from Expensify provides feedback on your proposal (do not create a pull request yet).
- Do not leave more than one proposal.
- Do not make extensive changes to your current proposal until after it has been reviewed.
- If you want to make an entirely new proposal or update an existing proposal, please go back and edit your original proposal, then post a new comment to the issue in this format to alert everyone that it has been updated:
```
## Proposal
[Updated](link to proposal)
```

@DylanDylann I only made a minor change and a minor note to check for similar problems and fix in PR phase that's why I didn't notify for update

@bernhardoj
Copy link
Contributor

@bernhardoj Is there any difference between your proposal and @FitseTLT's proposal?

None, proposals are posted almost at the same time (1ms difference)
https://api.github.com/repos/Expensify/App/issues/comments/2326480424
https://api.github.com/repos/Expensify/App/issues/comments/2326480465

Which page has the same issue?

I write this in case there is other cases found when working on the PR, but I just found that it happens in the console page too.

We can apply the same solution to any page that has the same issue.

console.mp4

@DylanDylann
Copy link
Contributor

DylanDylann commented Sep 10, 2024

Thanks, everyone. The solution is straightforward. Although @FitseTLT goes first, the difference is only one second. I still lean toward @bernhardoj's proposal because he provides more detailed information and presents it more clearly than @FitseTLT's original proposal. One more thing, @bernhardoj also point out the same bug on the console page.

Anyway, I will leave the final decision to the internal engineer

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Sep 10, 2024

Triggered auto assignment to @roryabraham, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@FitseTLT
Copy link
Contributor

@FitseTLT

We can also make same fixes in other exit survey page (or other pages) with the same problem

@DylanDylann I just wrote this to indicate we can fix similar problems in other pages in PR phase, for instance, with a short researching I found similar problem in Report Participants page but we will find more cases in PR phase

2024-09-10.18-15-50.mp4

I have proposed the same solution first @DylanDylann there is no reason to select the second proposal.

@roryabraham please consider reviewing the decision above I have stated the same solution first and equally indicated more cases to be dealt with (as ReportParticipantsPage) but the reviewer is chosing the second proposal. Thx

@roryabraham
Copy link
Contributor

thanks everyone, just seeing this but it's late for me. I'll review tomorrow

@FitseTLT
Copy link
Contributor

I don't see the same problem in Report Participants page as you mentioned

@DylanDylann The problem occurs when there is a text input in the page and to achieve that you need to have > 8 participants as indicated in my video.

@melvin-bot melvin-bot bot added the Overdue label Sep 16, 2024
Copy link

melvin-bot bot commented Sep 16, 2024

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

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

melvin-bot bot commented Sep 16, 2024

📣 @DylanDylann 🎉 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

@melvin-bot melvin-bot bot removed the Overdue label Sep 16, 2024
@roryabraham
Copy link
Contributor

I agree with @DylanDylann's evaluation (though, none of the proposals really explain the root cause, only that it's a known thing and we have a prop to fix it. Both RCAs are just repeating the solution).

Copy link

melvin-bot bot commented Sep 17, 2024

@puneetlath @kevinksullivan @roryabraham @bernhardoj @DylanDylann this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@DylanDylann
Copy link
Contributor

DylanDylann commented Sep 18, 2024

@bernhardoj Waiting for PR

@puneetlath
Copy link
Contributor

@bernhardoj do you have an ETA?

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 18, 2024
@bernhardoj
Copy link
Contributor

Sorry, I was sick. PR is now ready

cc: @DylanDylann

@roryabraham
Copy link
Contributor

PR was deployed to prod 2024-09-27, so it's ready to pay.

@roryabraham roryabraham added Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review labels Oct 4, 2024
@roryabraham roryabraham changed the title [$250] Empty space below the "Next" button when we open the page, and the button does not keep its position above the keyboard [PAY][$250] Empty space below the "Next" button when we open the page, and the button does not keep its position above the keyboard Oct 4, 2024
@puneetlath
Copy link
Contributor

@DylanDylann can you complete the checklist?

@puneetlath puneetlath changed the title [PAY][$250] Empty space below the "Next" button when we open the page, and the button does not keep its position above the keyboard [HOLD for payment 2024-10-04][PAY][$250] Empty space below the "Next" button when we open the page, and the button does not keep its position above the keyboard Oct 6, 2024
@DylanDylann
Copy link
Contributor

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:

[@DylanDylann] The PR that introduced the bug has been identified. Link to the PR: NA
[@DylanDylann] 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: NA
[@DylanDylann] 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: NA
[@DylanDylann] Determine if we should create a regression test for this bug. Yes
[@DylanDylann] 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.

Regression Test Proposal

  1. Open Settings > Switch to Expensify Classic
  2. Select any reason and proceed to the next screen
  3. Focus on the input field and verify the button is positioned above the keyboard
  4. Now, open Settings > Troubleshoot
  5. Enable Client side logging
  6. Press View debug console
  7. Focus on the input field and verify the button is positioned above the keyboard

Do we agree 👍 or 👎

@puneetlath
Copy link
Contributor

Great, thanks.

Payment summary:

Thanks everyone!

@bernhardoj
Copy link
Contributor

Requested in ND.

@JmillsExpensify
Copy link

$250 approved for @bernhardoj

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. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
No open projects
Development

No branches or pull requests

10 participants