-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$1000] mweb/Safari - Workspace - Invite button in invite message page hides behind keyboard #33548
Comments
Job added to Upwork: https://www.upwork.com/jobs/~014e381cef3b4dde0b |
Triggered auto assignment to @anmurali ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The "Invite" button hides behind the keyboard. What is the root cause of that problem?The system keyboard visibility is not handled properly on the What changes do you think we should make in order to solve the problem?We should add the App/src/pages/workspace/WorkspaceInviteMessagePage.js Lines 131 to 134 in b74be72
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Invite button in invite message page (Workspace) should appear on top keyboard, not hide behind keyboard. What is the root cause of that problem?=> WorkspaceInviteMessagePage.js shouldEnableMaxHeight is not set to true in ScreenWrapper's component. What changes do you think we should make in order to solve the problem?=> WorkspaceInviteMessagePage.js Just add shouldEnableMaxHeight as true to ScreenWrapper's prop. What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.The Invite button is hidden behind the keyboard. In order to show the invite button while keyboard is open, user has to scroll down the page What is the root cause of that problem?We have 2 problems here:
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)NA We can subscribe ResultScreen.Recording.2023-12-25.at.17.59.18.mov |
@anmurali Unassigning this one due to low bandwidth please assign a new C+ here, thanks! |
I can take over |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@anmurali Huh... This is 4 days overdue. Who can take care of this? |
@anmurali 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
📣 @situchan 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@situchan assigned to you. Can you review the proposals and pick one? |
All proposed to enable |
Discussing the proposal, not overdue. |
I have a demo structure for this concern before apply into code, we need change a current form structure and virtual viewport when focusing trim.A681236E-F791-49E0-828B-F3BCE1FBE4C6.MOV |
@madmax330, @anmurali, @situchan Eep! 4 days overdue now. Issues have feelings too... |
@shawnborton @situchan thoughts on the above? |
Hmm this might be on purpose though since the invite message could potentially be quite long? Basically I think we did that to prevent having a moving/growing text input potentially grow to be below the fixed submit button. So I'm actually not sure if this is a bug, it might be intended behavior and thus we could close it out. |
Curious if @Expensify/design has an opinion though. I think we don't have a bulletproof approach for these kinds of bottom-of-the-view buttons. I had long advocated for a system where if there is enough vertical space, the button stays in view docked to the bottom of the screen. But if the content above the button became long, it would push the button down and out of view. I think we did implement this kind of thing correctly on some of the profile details pages (like your display name), but not sure if that works well everywhere else. |
@shawnborton I'm not sure I have much to add here—bottom-docked and then anchored to the top of keyboard feels pretty standard for buttons like this, but I'm honestly having a little trouble following this thread. |
All good! I guess my thinking is that when we anchor a big button to the top of the keyboard, we don't really give the user too much space to scroll in their viewport. Then if we add a scrollable/growing element in that remaining small space - in this case, it's a textarea that grows with a long invite message - I feel like we kinda set the user up for a tricky UI to interact with. That being said, you could argue that keeping the button fixed to the keyboard makes it so that you don't have to worry about awkward scroll issues to be able to submit. |
Ahh I see what you're saying! Now I understand and agree with your comment here:
If we implemented behavior like that, couldn't we also update the keyboard "go" button (I don't know what it's called, I'll point it out in a screenshot) to reflect whatever action is in the big green button (that would in this case be out of view)? |
Yes! Big fan of that. |
@madmax330, @anmurali, @situchan Eep! 4 days overdue now. Issues have feelings too... |
What's the next step here? |
@situchan @paultsimura I am unable to replicate the bug mentioned here with the latest main version. I believe adding Kapture.2024-03-27.at.09.21.57.mp4 |
On my proposal also explain why before this PR merge Based on the latest structure we should update So i would like to update proposal based on the latest code structure ProposalPlease re-state the problem that we are trying to solve in this issue.mweb/Safari - Workspace - Invite button in invite message page hides behind keyboard What is the root cause of that problem?WorkspaceInviteMessagePage doesn't set What changes do you think we should make in order to solve the problem?Add <ScreenWrapper
includeSafeAreaPaddingBottom={false}
testID={WorkspaceInviteMessagePage.displayName}
+ shouldEnableMaxHeight
> Update style of FormProvider at this line to <FormProvider
style={[styles.flexGrow1, styles.ph5]}
+ submitButtonStyles={{marginTop: 0}}
What alternative solutions did you explore? (Optional)If we want the bottom always snap to bottom and change the scroll behavior look like this comment (only scroll on middle content, skip header and footer) we will change the FormWrapper structure |
@suneox thanks for the proposal but I wonder if this issue should just be closed as "do nothing" based on feedback from @Expensify/design. @madmax330 what do you suggest? |
Yeah I think we should just close |
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.16-4
Reproducible in staging?: Y
Reproducible in production?: Y
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
The Invite button will move above the keyboard
Actual Result:
The Invite button is hidden behind the keyboard. In order to show the invite button while keyboard is open, user has to scroll down the page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6324978_1703346993790.RPReplay_Final1703346401.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: