You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment March 4th][HOLD for payment 2024-02-15] [$500] Search - "Invite a friend" banner do not move up when input field is focused in search page #35182
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2
Version Number: 1.4.32-2 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: Issue found when executing PR#33925
Action Performed:
Navigate to staging.new.expensify.com & log in
Tap search icon
Click on input field to get focused
Expected Result:
"Invite a friend, get $250" banner should move up (above the keypad) once the input field is focused
Actual Result:
"Invite a friend" banner do not move up when input field is focused in search page. The banner still pinned below, hidden behind the keypad
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Search - "Invite a friend" banner do not move up when input field is focused in search page[/-][+][$500] Search - "Invite a friend" banner do not move up when input field is focused in search page[/+]on Jan 25, 2024
Please re-state the problem that we are trying to solve in this issue.
"Invite a friend" banner do not move up when input field is focused in search page
What is the root cause of that problem?
We forget to pass shouldEnableMaxHeight prop in ScreenWrapper in the SearchPage page and hence the banner does not move up when input field is focused.
What alternative solutions did you explore? (Optional)
Referring to comment, if we want to disable to functionality of pushing the banner up when there is onscreen keyboard then we just have to remove the shouldEnableMaxHeight prop in MoneyRequestParticipantsPagepage and NewChatPage page.
Once the keyboard appears there is barely any space left to see the user details/reports. Perhaps not pushing the banner up when there is onscreen keyboard is intended.
Once the keyboard appears there is barely any space left to see the user details/reports. Perhaps not pushing the banner up when there is onscreen keyboard is intended.
hello @c3024, If this is the case then I have added a alternate proposal to not push the banner up when there is onscreen keyboard :) my proposal can work both ways, looking forward for comments from the design team.
changed the title [-][HOLD for payment 2024-02-15] [$500] Search - "Invite a friend" banner do not move up when input field is focused in search page[/-][+][HOLD for payment March 4th][HOLD for payment 2024-02-15] [$500] Search - "Invite a friend" banner do not move up when input field is focused in search page[/+]on Feb 28, 2024
Looks like the automation isn't working - I've updated the title.
When you have a chance @c3024 can you complete the checklist?
The PR that introduced the bug has been identified. Link to the PR:
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:
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:
Determine if we should create a regression test for this bug.
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
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: No discussion was started. This is an edge case and not something that is serious so such discussion does not appear useful.
Determine if we should create a regression test for this bug: No. This is about the referral program banner which foes behind the on screen keyboard on mWeb. This is not a serious enough bug to warrant a regression test.
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: NA
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2
Activity
[-]Search - "Invite a friend" banner do not move up when input field is focused in search page[/-][+][$500] Search - "Invite a friend" banner do not move up when input field is focused in search page[/+]melvin-bot commentedon Jan 25, 2024
Job added to Upwork: https://www.upwork.com/jobs/~011428dae6c887429f
melvin-bot commentedon Jan 25, 2024
Triggered auto assignment to @slafortune (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jan 25, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 (
External)neonbhai commentedon Jan 25, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
"Invite a friend" banner do not move up when input field is focused in search page
What is the root cause of that problem?
The
ReferralCTAis not nested in any parentKeyboardAvoidingViewWhat changes do you think we should make in order to solve the problem?
We should pass
shouldEnableKeyboardAvoidingViewasfalsehere:App/src/pages/SearchPage.js
Lines 172 to 177 in 83a7535
and wrap the children with
KeyboardAvoidingViewlike we do hereAlternatively:
For a deeper fix, the
ReferralCTAhere and the parent view here can be wrapped in a keyboard avoiding viewneonbhai commentedon Jan 25, 2024
Proposal
Updated
aeioual commentedon Jan 25, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
"Invite a friend" banner do not move up when input field is focused in search page
What is the root cause of that problem?
We forget to pass
shouldEnableMaxHeightprop inScreenWrapperin theSearchPagepage and hence the banner does not move up when input field is focused.App/src/pages/SearchPage.js
Lines 172 to 177 in 8cc80e6
What changes do you think we should make in order to solve the problem?
We simply need to pass the prop
shouldEnableMaxHeightin ScreenWrapper and we we will get the desired functionality.We already do the same implementation in
NewChatpageApp/src/pages/NewChatPage.js
Lines 241 to 246 in 0d0b0a8
Result:
RPReplay_Final1706220901.MP4
What alternative solutions did you explore? (Optional)
Referring to comment, if we want to disable to functionality of pushing the banner up when there is onscreen keyboard then we just have to remove the
shouldEnableMaxHeightprop inMoneyRequestParticipantsPagepage andNewChatPagepage.App/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsPage.js
Lines 128 to 130 in 7962905
App/src/pages/NewChatPage.js
Lines 241 to 248 in 0d0b0a8
c3024 commentedon Jan 26, 2024
Once the keyboard appears there is barely any space left to see the user details/reports. Perhaps not pushing the banner up when there is onscreen keyboard is intended.
cc: @Expensify/design @slafortune
aeioual commentedon Jan 26, 2024
hello @c3024, If this is the case then I have added a alternate proposal to not push the banner up when there is onscreen keyboard :) my proposal can work both ways, looking forward for comments from the design team.
Proposal
38 remaining items
melvin-bot commentedon Feb 19, 2024
@slafortune, @stitesExpensify, @c3024, @Amarparab2024 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
slafortune commentedon Feb 19, 2024
@c3024 will you be able to complete the checklist in the next day or two?
c3024 commentedon Feb 20, 2024
Unfortunately 😞 , the file
SearchPage.jsin which we fixed this has been deleted from the repo. It has been replaced withSearchPage/index.js.The changes made in this PR are not reflected in this
index.jsfile so the bug still exists.searchPageBanner.mp4
Could you raise a PR adding this prop in
SearchPage/index.js? Thanks. @Amarparab2024cc: @slafortune @stitesExpensify
aeioual commentedon Feb 20, 2024
aeioual commentedon Feb 20, 2024
PR is up @c3024 :)
[-][HOLD for payment 2024-02-15] [$500] Search - "Invite a friend" banner do not move up when input field is focused in search page[/-][+][HOLD for payment March 4th][HOLD for payment 2024-02-15] [$500] Search - "Invite a friend" banner do not move up when input field is focused in search page[/+]slafortune commentedon Feb 28, 2024
Looks like the automation isn't working - I've updated the title.
When you have a chance @c3024 can you complete the checklist?
The PR that introduced the bug has been identified. Link to the PR:
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:
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:
Determine if we should create a regression test for this bug.
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
c3024 commentedon Mar 1, 2024
slafortune commentedon Mar 6, 2024
Paid 👍