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

[Awaiting checklist] [$250] mWeb/Chrome - Workspace - Invite button hidden behind keypad #50073

Open
1 of 6 tasks
lanitochka17 opened this issue Oct 2, 2024 · 27 comments
Open
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 2, 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.43-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Launch both mweb and Android
  2. Go to workspace -- invite members
  3. Go offline and note no internet connection above
  4. Select a member and tap next

Expected Result:

In mweb and Android, in offline inviting members, invite button should display in same way

Actual Result:

In mweb, invite button hidden behind keypad but in Android above keypad

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

Bug6622134_1727876595223.Screenrecorder-2024-10-02-19-02-53-462_compress_1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021841522414660630574
  • Upwork Job ID: 1841522414660630574
  • Last Price Increase: 2024-10-09
  • Automatic offers:
    • Nodebrute | Contributor | 104343060
Issue OwnerCurrent Issue Owner: @eh2077
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 2, 2024
Copy link

melvin-bot bot commented Oct 2, 2024

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

@lanitochka17
Copy link
Author

@twisterdotcom FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@Nodebrute
Copy link
Contributor

Nodebrute commented Oct 2, 2024

Edited by proposal-police: This proposal was edited at 2024-10-02 15:35:19 UTC.

Proposal

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

Invite button hidden behind keypad

What is the root cause of that problem?

We are not adding shouldEnableMaxHeight

<ScreenWrapper
includeSafeAreaPaddingBottom={false}
testID={WorkspaceInviteMessagePage.displayName}
>

because of which it is not using it's 100 height%

Whether to use the maxHeight (true) or use the 100% of the height (false)

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

We should add shouldEnableMaxHeight

<ScreenWrapper
includeSafeAreaPaddingBottom={false}
testID={WorkspaceInviteMessagePage.displayName}
>

Screenshot 2024-10-02 at 8 33 30 PM
We should check for other places too where we have this issue. Other minor styling can be adjusted in the PR.

We have another issue here when we navigate from InviteMembersPage we can see that header is missing and there's a white space under the privacy. This is the only form page where we have this issue. To fix that we can use here

    const viewportOffsetTop = useViewportOffsetTop()

And then we can pass it as styles in screenWrapper here. We are also doing the same here

                style={{marginTop:viewportOffsetTop}}

Before

Screen.Recording.2024-10-02.at.11.37.17.PM.mov

After

Screen.Recording.2024-10-02.at.11.35.45.PM.mov

What alternative solutions did you explore? (Optional)

Or we can pass shouldEnableMaxHeight={DeviceCapabilities.canUseTouchScreen()}

<ScreenWrapper
includeSafeAreaPaddingBottom={false}
testID={WorkspaceInviteMessagePage.displayName}
>

Optional: To fix extra padding under the form we can pass shouldEnableKeyboardAvoidingView={false} here

<ScreenWrapper
includeSafeAreaPaddingBottom={false}
testID={WorkspaceInviteMessagePage.displayName}
>

@Nodebrute
Copy link
Contributor

Proposal Updated
Added alternate solution

@twisterdotcom
Copy link
Contributor

This isn't a problem I can recreate. I'd wager this is just due to the keyboard being used.

https://drive.google.com/file/d/1GPzlPbzYtM-eOsDgVXEyXGn3Io1YkOMF/view?usp=sharing

@Nodebrute
Copy link
Contributor

Nodebrute commented Oct 2, 2024

@twisterdotcom I am able to repro this on latest main and it's very visible

Ios:mweb safari

Screen.Recording.2024-10-02.at.9.39.18.PM.mov

@twisterdotcom
Copy link
Contributor

Ahh @Nodebrute are you on iOS there? I didn't test that, it wasn't included in the report. Let me double check then.

@twisterdotcom twisterdotcom reopened this Oct 2, 2024
@twisterdotcom
Copy link
Contributor

trim.E4224B6E-3D85-4A84-89B7-5BAEA7462262.MOV

@twisterdotcom
Copy link
Contributor

Okay agreed. This has nothing to do with being offline/online either though. It just occurs regardless. Not sure what all the bottom padding is for either when you scroll with the keyboard in view. Can we fix that too @Nodebrute?

@twisterdotcom twisterdotcom added the External Added to denote the issue can be worked on by a contributor label Oct 2, 2024
Copy link

melvin-bot bot commented Oct 2, 2024

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

@melvin-bot melvin-bot bot changed the title mWeb/Chrome - Workspace - Invite button hidden behind keypad [$250] mWeb/Chrome - Workspace - Invite button hidden behind keypad Oct 2, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 2, 2024
Copy link

melvin-bot bot commented Oct 2, 2024

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

@Krishna2323
Copy link
Contributor

Krishna2323 commented Oct 2, 2024

Edited by proposal-police: This proposal was edited at 2023-10-08T14:32:00Z.

Proposal


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

mWeb/Chrome - Workspace - Invite button hidden behind keypad

What is the root cause of that problem?

  • We aren't passing the shouldEnableMaxHeight prop.
    <ScreenWrapper
    includeSafeAreaPaddingBottom={false}
    testID={WorkspaceInviteMessagePage.displayName}
    >
  • The privacy link is render as footerContent which is rendered below the submit button.
    footerContent={
    <PressableWithoutFeedback
    onPress={openPrivacyURL}
    role={CONST.ROLE.LINK}
    accessibilityLabel={translate('common.privacy')}
    href={CONST.PRIVACY_URL}
    style={[styles.mv2, styles.alignSelfStart]}
    >
    <View style={[styles.flexRow]}>
    <Text style={[styles.mr1, styles.label, styles.link]}>{translate('common.privacy')}</Text>
    </View>
    </PressableWithoutFeedback>
    }

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


  • We should pass shouldEnableMaxHeight prop.
  • Then we should remove the footerContent prop and render the component passed to footerContent below the input.
  • Or we can render the privacy link after this view element.
  • Minor style changes can be done during the PR phase.

What alternative solutions did you explore? (Optional)

Result

@Nodebrute
Copy link
Contributor

Proposal Updated
Added fix for missing header and bottom space

@melvin-bot melvin-bot bot added the Overdue label Oct 5, 2024
@Krishna2323
Copy link
Contributor

Proposal Updtated

  • Minor update to alternative solution.

@Nodebrute
Copy link
Contributor

Proposal updated
added a reference

@eh2077
Copy link
Contributor

eh2077 commented Oct 7, 2024

Reviewing proposals

@melvin-bot melvin-bot bot removed the Overdue label Oct 7, 2024
@eh2077
Copy link
Contributor

eh2077 commented Oct 8, 2024

@Krishna2323 Thanks for your proposal!

The privacy link is render as footerContent which is rendered below the submit button.

Does this cause the Invite button hidden issue? Or it's another issue found when investigating the issue?

@Nodebrute
Copy link
Contributor

@eh2077 The privacy link is unrelated to the hidden invite button issue. I removed the link as a test, but the problem with the invite button still persists.

@eh2077
Copy link
Contributor

eh2077 commented Oct 9, 2024

I think we should go with @Nodebrute 's proposal as they're the first to point out the root cause and suggested a fix.

Setting shouldEnableMaxHeight property for ScreenWrapper fixes the issue.

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Oct 9, 2024

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

Copy link

melvin-bot bot commented Oct 9, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

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

melvin-bot bot commented Oct 9, 2024

📣 @Nodebrute 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@Nodebrute Nodebrute mentioned this issue Oct 10, 2024
50 tasks
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Oct 11, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 23, 2024
@melvin-bot melvin-bot bot changed the title [$250] mWeb/Chrome - Workspace - Invite button hidden behind keypad [HOLD for payment 2024-10-30] [$250] mWeb/Chrome - Workspace - Invite button hidden behind keypad Oct 23, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 23, 2024
Copy link

melvin-bot bot commented Oct 23, 2024

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

Copy link

melvin-bot bot commented Oct 23, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.52-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 2024-10-30. 🎊

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

Copy link

melvin-bot bot commented Oct 23, 2024

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:

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Oct 29, 2024
@twisterdotcom
Copy link
Contributor

Payment Summary:

@twisterdotcom twisterdotcom removed the Awaiting Payment Auto-added when associated PR is deployed to production label Oct 30, 2024
@twisterdotcom twisterdotcom changed the title [HOLD for payment 2024-10-30] [$250] mWeb/Chrome - Workspace - Invite button hidden behind keypad [Awaiting checklist] [$250] mWeb/Chrome - Workspace - Invite button hidden behind keypad Oct 30, 2024
Copy link

melvin-bot bot commented Oct 30, 2024

@twisterdotcom @aldo-expensify @Nodebrute @eh2077 this issue is now 4 weeks old, please consider:

  • Finding a contributor to fix the bug
  • Closing the issue if BZ has been unable to add the issue to a VIP or Wave project
  • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants