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-10-27] [WAITING ON #28899][$500] [ANDROID] Chat - Closing phone menu, opens keypad with focus on compose #26763

Closed
1 of 6 tasks
lanitochka17 opened this issue Sep 5, 2023 · 49 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

@lanitochka17
Copy link

lanitochka17 commented Sep 5, 2023

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


Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Tap on a report
  3. Tap on pin
  4. Tap unpin
  5. Tap phone icon and note phone options opened
  6. Tap phone icon again

Expected Result:

When user taps pin and again unpin, no effect on keypad. Similarly , when user taps phone icon, it must open.When user taps phone icon again, it must get closed and keypad must not get opened and focus on compose must not be shown

Actual Result:

When user taps pin and again unpin, no effect on keypad. Similarly, user taps phone icon, it gets open.When user taps phone icon again, the phone option closed and along with it, keypad got opened and focus on compose is shown

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.63-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

Notes/Photos/Videos: Any additional supporting documentation

Bug6188767_phone.mp4

Expensify/Expensify Issue URL:

Issue reported by: @ishpaul777

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d03561e10ecc1b6d
  • Upwork Job ID: 1699319143390973952
  • Last Price Increase: 2023-09-20
  • Automatic offers:
    • ginsuma | Contributor | 26850988
    • ishpaul777 | Reporter | 26850990
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

Triggered auto assignment to @jliexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@ginsuma
Copy link
Contributor

ginsuma commented Sep 5, 2023

Proposal

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

Chat - Closing phone menu, opens keypad with focus on compose

What is the root cause of that problem?

That problem happens on small device widths because we use Modal here.
The main composer will re-focus depend on modal key in Onyx here.

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

In BaseVideoChatButtonAndMenu, we add shouldSetModalVisibility={false} to Popover.

@ishpaul777
Copy link
Contributor

ishpaul777 commented Sep 5, 2023

I reported this while ago but it was not filed @jliexpensify - https://expensify.slack.com/archives/C049HHMV9SM/p1692371426492029

@jliexpensify
Copy link
Contributor

Thanks @ishpaul777 - if this is a bug, then you'll get credit as the Bug Reporter.

@jliexpensify
Copy link
Contributor

@ishpaul777 and @lanitochka17 I cannot reproduce this on Android (v63). Can you please try reproducing and share a video?

@jliexpensify jliexpensify added the Needs Reproduction Reproducible steps needed label Sep 6, 2023
@jliexpensify jliexpensify changed the title Chat - Closing phone menu, opens keypad with focus on compose [NEEDS REPRO] Chat - Closing phone menu, opens keypad with focus on compose Sep 6, 2023
@jliexpensify
Copy link
Contributor

jliexpensify commented Sep 6, 2023

Oh my mistake - I was trying to repro on the app, not Chrome. I can definitely see the issue on Chrome now. Thanks @ishpaul777 !

@jliexpensify jliexpensify added External Added to denote the issue can be worked on by a contributor and removed Needs Reproduction Reproducible steps needed labels Sep 6, 2023
@melvin-bot melvin-bot bot changed the title [NEEDS REPRO] Chat - Closing phone menu, opens keypad with focus on compose [$500] [NEEDS REPRO] Chat - Closing phone menu, opens keypad with focus on compose Sep 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 6, 2023

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

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

melvin-bot bot commented Sep 6, 2023

Current assignee @jliexpensify is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Sep 6, 2023

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

@jliexpensify
Copy link
Contributor

Looks like this might be an Android only issue - a colleague could not repro on iOS.

@jliexpensify jliexpensify changed the title [$500] [NEEDS REPRO] Chat - Closing phone menu, opens keypad with focus on compose [$500] [ANDROID] Chat - Closing phone menu, opens keypad with focus on compose Sep 6, 2023
@melvin-bot melvin-bot bot added the Overdue label Sep 11, 2023
@ArekChr
Copy link
Contributor

ArekChr commented Sep 11, 2023

@ginsuma After this change, Onyx will store the isVisible value to true of the modal, which is not true. It may introduce other regressions

@melvin-bot melvin-bot bot removed the Overdue label Sep 11, 2023
@ginsuma
Copy link
Contributor

ginsuma commented Sep 11, 2023

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

In BaseVideoChatButtonAndMenu, we add shouldSetModalVisibility={false} to Popover.

@ArekChr My suggestion is not to use the modal key.

@ArekChr
Copy link
Contributor

ArekChr commented Sep 12, 2023

@ginsuma I mean this code,

    const hideModal = useCallback(
        (callHideCallback = true) => {
            if (shouldSetModalVisibility) {
                Modal.setModalVisibility(false);
            }
            if (callHideCallback) {
                onModalHide();
            }
            Modal.onModalDidClose();
            if (!fullscreen) {
                ComposerFocusManager.setReadyToFocus();
            }
        },
        [shouldSetModalVisibility, onModalHide, fullscreen],
    );

The issue is that when shouldSetModalVisibility is false, the isModalVisible remains true. If I'm not mistaken, this behaviour is intended for scenarios where modals shouldn't interfere with the composer's ability to blur. This is particularly relevant for modals like EmojiPicker, ReportActionContextMenu, or ReactionList, especially when not dealing with a full-overlay modal. In this scenario, BaseVideoChatButtonAndMenu is a full-overlay modal.

@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2023

📣 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 added the Overdue label Sep 15, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

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:

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

@jliexpensify
Copy link
Contributor

jliexpensify commented Oct 12, 2023

Payment Summary:

Upwork job

@ArekChr bump to complete the checklist please!

@ginsuma
Copy link
Contributor

ginsuma commented Oct 12, 2023

@jliexpensify App changed the UI after the PR merged, so I made a new PR, which is still in review.
#28899

@jliexpensify jliexpensify changed the title [HOLD for payment 2023-10-12] [$500] [ANDROID] Chat - Closing phone menu, opens keypad with focus on compose [WAITING ON #28899][HOLD for payment 2023-10-?] [$500] [ANDROID] Chat - Closing phone menu, opens keypad with focus on compose Oct 12, 2023
@jliexpensify
Copy link
Contributor

Thanks, have adjusted this GH!

@jliexpensify
Copy link
Contributor

No payment date yet

@melvin-bot
Copy link

melvin-bot bot commented Oct 18, 2023

Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:

  • when @ginsuma got assigned: 2023-09-25 06:43:24 Z
  • when the PR got merged: 2023-10-18 17:23:04 UTC
  • days elapsed: 17

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Oct 20, 2023
@melvin-bot melvin-bot bot changed the title [WAITING ON #28899][HOLD for payment 2023-10-?] [$500] [ANDROID] Chat - Closing phone menu, opens keypad with focus on compose [HOLD for payment 2023-10-27] [WAITING ON #28899][HOLD for payment 2023-10-?] [$500] [ANDROID] Chat - Closing phone menu, opens keypad with focus on compose Oct 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 20, 2023

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 20, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.87-12 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 2023-10-27. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Oct 20, 2023

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:

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

@ArekChr
Copy link
Contributor

ArekChr commented Oct 23, 2023

  • Link to the PR: No bug identified.
  • Link to comment: n/a
  • Link to discussion: n/a
  • Determine if we should create a regression test for this bug: We can create regression test.

Regression test proposal:

  1. Open any report.
  2. Check the status of the composer box to ensure it is not currently active. If it is active, click elsewhere on the screen to remove focus from the composer box.
  3. Tap on three-dot icon in upper right corner.
  4. Hide options modal.
  5. Verify once again that the composer box remains unfocused.

Do we agree 👍 or 👎

@jliexpensify
Copy link
Contributor

@pecanoro it looks like this PR was merged in 17 days. Normally, we'd cancel the contract and not issue payment for this length of time, but it looks like there was quite a bit of discussion in the PR. Should we penalise anyone or keep it at $500?

@pecanoro
Copy link
Contributor

Yes, the PR took a bit since there was a bit of back and forth, but we should do the 50% penalty as those are our rules.

@ginsuma
Copy link
Contributor

ginsuma commented Oct 24, 2023

@jliexpensify App changed the UI after the PR merged, so I made a new PR, which is still in review. #28899

@jliexpensify Could you have a second thought about it?

@jliexpensify jliexpensify changed the title [HOLD for payment 2023-10-27] [WAITING ON #28899][HOLD for payment 2023-10-?] [$500] [ANDROID] Chat - Closing phone menu, opens keypad with focus on compose [HOLD for payment 2023-10-27] [WAITING ON #28899][$500] [ANDROID] Chat - Closing phone menu, opens keypad with focus on compose Oct 25, 2023
@jliexpensify
Copy link
Contributor

jliexpensify commented Oct 25, 2023

@ginsuma I think @pecanoro has taken into account #28899 - I just checked the dates and there's ~14 days between you being assigned the PR and it being merged by Rocio.

So essentially, the Contributor and C+ payout would be halved here.

Payment Summary

@ntdiary
Copy link
Contributor

ntdiary commented Oct 25, 2023

Hi, folks, coming from #30178 (comment).

Just a small note: ThreeDotsMenu is also used in MoneyRequestHeader. I have suggested tracking that issue under issue #15992.

test.mp4

@ginsuma
Copy link
Contributor

ginsuma commented Oct 25, 2023

Just a small note: ThreeDotsMenu is also used in MoneyRequestHeader. I have suggested tracking that issue under issue #15992.

Thank you.
To make it consistent, we can add shouldSetModalVisibility={false} to ThreeDotsMenu in MoneyRequestHeader like we did in the report header.
@ntdiary's approach looks promising.

@jliexpensify
Copy link
Contributor

Paid and job closed.

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
None yet
Development

No branches or pull requests

7 participants