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-03-02] [$3000] mWeb/safari - Create Group button is hidden by keyboard when selecting participants #11463

Closed
kbecciv opened this issue Sep 30, 2022 · 177 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 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@kbecciv
Copy link

kbecciv commented Sep 30, 2022

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


Issue found when executing PR #11309

Action Performed:

  1. Login with any account
  2. Tap on FAB icon
  3. Select New Group
  4. Type any email, or select any existing option
  5. Verify that the green "Create group" button is not hidden by the keyboard instead of anchored above it

Expected Result:

Create group button is not hidden

Special note: Reiterating for emphasis for the clarity of future contributors! We're only looking for proposals that will address upstream fixes to KeyboardAvoidingView. Thank you!

Actual Result:

Create Group button is hidden when tap on selected user

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Mobile Web/safari

Version Number: 1.2.10.0

Reproducible in staging?: Yes

Reproducible in production?: Yes

Email or phone of affected tester (no customers): any

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Bug5755234_pr_11309.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

@melvin-bot
Copy link

melvin-bot bot commented Sep 30, 2022

Triggered auto assignment to @alex-mechler (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@alex-mechler alex-mechler removed their assignment Sep 30, 2022
@alex-mechler alex-mechler added the External Added to denote the issue can be worked on by a contributor label Sep 30, 2022
@melvin-bot
Copy link

melvin-bot bot commented Sep 30, 2022

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 30, 2022

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 30, 2022
@melvin-bot
Copy link

melvin-bot bot commented Sep 30, 2022

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

@melvin-bot melvin-bot bot changed the title mWeb/safari - Creste Group- Create Group button is hidden when tap on selected user [$250] mWeb/safari - Creste Group- Create Group button is hidden when tap on selected user Sep 30, 2022
@melvin-bot melvin-bot bot added the Overdue label Oct 3, 2022
@laurenreidexpensify
Copy link
Contributor

Not overdue, reviewing this morning

@melvin-bot melvin-bot bot removed the Overdue label Oct 3, 2022
@laurenreidexpensify laurenreidexpensify changed the title [$250] mWeb/safari - Creste Group- Create Group button is hidden when tap on selected user [$250] mWeb/safari - Create Group button is hidden when tap on selected user Oct 3, 2022
@laurenreidexpensify

This comment was marked as outdated.

@flodnv flodnv added Weekly KSv2 and removed Daily KSv2 labels Oct 4, 2022
@melvin-bot melvin-bot bot added the Overdue label Oct 12, 2022
@wildan-m
Copy link
Contributor

In the video, the create group button is hidden when no participant is selected and then shown after one of the participants is selected.

Is that expected behavior?

Should we always show the "Create Group" button even when there is no selected participant?

@mananjadhav
Copy link
Collaborator

@flodnv @laurenreidexpensify Can you please confirm @wildan-m's comment above? Base on the code it does look like we're hiding the Button when we create the group. You can reproduce this even if you don't select the input text. Just scroll the list as soon as you click on the Create Group option.

const shouldShowFooter = (this.props.shouldShowConfirmButton || this.props.footerContent)
            && !(this.props.canSelectMultipleOptions && _.isEmpty(this.props.selectedOptions));

Second line of the condition in the above snippet.

@melvin-bot melvin-bot bot removed the Overdue label Oct 16, 2022
@flodnv
Copy link
Contributor

flodnv commented Oct 17, 2022

the create group button is hidden when no participant is selected and then shown after one of the participants is selected.

Is that expected behavior?

I don't know, but I would say yes...?

Should we always show the "Create Group" button even when there is no selected participant?

Why would we do that? Why would we show the Create Group button before you select anyone to add to the group? What would you expect to happen if you click on it? 😕

@wildan-m
Copy link
Contributor

I think this issue is not valid then. The tester might forgot the expected behavior, or I misinterpreted the issue?

@flodnv
Copy link
Contributor

flodnv commented Oct 17, 2022

Oh, great point actually! @kbecciv why would you expect Create group button is not hidden?

@kbecciv
Copy link
Author

kbecciv commented Oct 17, 2022

@flodnv I'm expecting all environments worked the same, this is only my opinion.

Screen_Recording_20221017-104953_New.Expensify.1.mp4

@trjExpensify
Copy link
Contributor

Also I'm going to be OOO next week, so @trjExpensify can you circle back on this one then and issue payment?

Yep, assigning myself.

@trjExpensify trjExpensify self-assigned this Feb 24, 2023
@melvin-bot melvin-bot bot added the Overdue label Feb 27, 2023
@flodnv flodnv changed the title [HOLD for payment 2023-03-02] [$2000] mWeb/safari - Create Group button is hidden by keyboard when selecting participants [HOLD for payment 2023-03-02] [$3000] mWeb/safari - Create Group button is hidden by keyboard when selecting participants Feb 27, 2023
@MelvinBot
Copy link

⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

@flodnv
Copy link
Contributor

flodnv commented Feb 27, 2023

@flodnv given that we had a regression in play, are we effectively at C/C+ payment of $1,000?

We had already agreed to a $3,000 payment: #11463 (comment). Title updated for clarity.

Given this was a very difficult task and a very difficult regression that nobody could've caught, I'd recommend only a third penalty (or a further increase in the original payout, which is the same result), so let's say the payout will be $2,000. Are you happy with that @rawalyogendra @mananjadhav ?

@melvin-bot melvin-bot bot removed the Overdue label Feb 27, 2023
@redstar504
Copy link
Contributor

redstar504 commented Feb 28, 2023

It looks like #15543 might have something to do with this as well.

@melvin-bot melvin-bot bot added the Overdue label Mar 1, 2023
@trjExpensify
Copy link
Contributor

Awaiting feed back on #11463 (comment)

@melvin-bot melvin-bot bot removed the Overdue label Mar 1, 2023
@mananjadhav
Copy link
Collaborator

Yes I think this would work. Thanks for the consideration @flodnv

@flodnv
Copy link
Contributor

flodnv commented Mar 2, 2023

@rawalyogendra could you please check out #15543 ? 😬

@melvin-bot melvin-bot bot added the Overdue label Mar 6, 2023
@trjExpensify
Copy link
Contributor

Seems like we're still waiting here on @rawalyogendra input.

@melvin-bot melvin-bot bot removed the Overdue label Mar 6, 2023
@rawalyogendra
Copy link
Contributor

Hey Everyone,

I've been working on this issue for the past few days, but unfortunately, I couldn't find a fix for it. The problem lies in the fact that the VisualViewport resize event is only triggered after the On-Screen Keyboard(OSK) animation is completed.

Root Cause
Screen.Recording.2023-03-08.at.11.41.45.PM.mov

If we decide to revert the original PR and subsequent regression fixes, we should still retain some of the changes, such as

<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, interactive-widget=resizes-content">

This change will maintain the old behavior on our mWeb(Android) platform, which was recently changed (you can read about it here: https://developer.chrome.com/blog/viewport-resize-behavior/). This new change in Chrome caused similar OSK-related issues on our mWeb(Android) platform too.

App/web/index.html

Lines 52 to 60 in fb20144

@keyframes blink_input_opacity_to_prevent_scrolling_when_focus {
0% { opacity: 0; }
100% { opacity: 1; }
}
input:focus-visible, input:focus[data-focusvisible-polyfill],
select:focus-visible, select:focus[data-focusvisible-polyfill] {
box-shadow: none;
animation: blink_input_opacity_to_prevent_scrolling_when_focus 0.01s;
}

This change will fix the issue of mWeb(iOS) scrolling a webpage when there's a text input at the bottom of the page, which was pushing the page title outside the viewport.

Before
Screen.Recording.2023-03-08.at.11.46.39.PM.mov
After
Screen.Recording.2023-03-08.at.11.47.55.PM.mov

In my opinion, we should open up this issue to other contributors and let them have a say on how we proceed. I'm okay with whatever decision you guys make.

Also, just wanted to let you all know that I'm available for any questions or help in fixing this issue. Feel free to reach out.

Thank you all for your immense patience. To be honest, diving deep into the rabbit hole of Safari bugs has been a fun adventure for a web developer like me!

@JmillsExpensify
Copy link

Ok coming back into this issue. Thanks @trjExpensify for carrying this forward while I was away.

@JmillsExpensify
Copy link

So @flodnv and I were chatting on this one. I want to commend @rawalyogendra for his work in this issue. Further, I agree with @flodnv's comment above regarding payout.

I think we kind of have two paths ahead of us, and really in both paths, I think the next steps should be the same. We should close this issue. If we want to open up a new issue and keep this going, that's fine. @flodnv noted that we could re-open #15543. Alternatively, we can also say, this is a Safari thing and not on us, so we just decide to not fix the underlying issue. Whatever the case, I think @rawalyogendra has shown good faith through this journey and we should pay him out for the work done thus far.

@mananjadhav
Copy link
Collaborator

I agree with reopening #15543 to others and try to see if it can be resolved. Current changes have anyway resolved a couple of issues and we should retain them.

@flodnv
Copy link
Contributor

flodnv commented Mar 13, 2023

It seems like we all agree so let's move forward like this @JmillsExpensify. Many thanks again to @rawalyogendra for the hard work and to @mananjadhav for the support 🙇

@JmillsExpensify
Copy link

Re-opened #15543 so we can continue the convo there. All contributors have been paid out so I'm officially closing this one out! Great work everyone. ❤️

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 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests