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-11-01] [$500] mWeb-Compose-Tapping emoji picker, for a million second, the message section is selected and shown #28698

Closed
1 of 6 tasks
izarutskaya opened this issue Oct 3, 2023 · 25 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 External Added to denote the issue can be worked on by a contributor

Comments

@izarutskaya
Copy link

izarutskaya commented Oct 3, 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 emoji picker in compose box

Expected Result:

When tapping on emoji picker, for a million second also, the message section must not be selected and shown. only emoji box must be displayed.

Actual Result:

When tapping on emoji picker, for a million second, the message section is selected and shown and then only emoji box is displayed

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 76-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

Bug6222872_1696316543405.selected_box.mp4

Bug6222872_1696316673479!selected_section

Expensify/Expensify Issue URL:

Issue reported by: Applause-Internal Team

Slack conversation: @

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01968cbb3d0a1ef947
  • Upwork Job ID: 1709683408501026816
  • Last Price Increase: 2023-10-11
  • Automatic offers:
    • ntdiary | Reviewer | 27283894
    • tienifr | Contributor | 27283896
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 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

@johncschuster johncschuster added the External Added to denote the issue can be worked on by a contributor label Oct 4, 2023
@melvin-bot melvin-bot bot changed the title mWeb-Compose-Tapping emoji picker, for a million second, the message section is selected and shown [$500] mWeb-Compose-Tapping emoji picker, for a million second, the message section is selected and shown Oct 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 4, 2023

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

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

melvin-bot bot commented Oct 4, 2023

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

@tienifr
Copy link
Contributor

tienifr commented Oct 5, 2023

Proposal

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

When tapping on emoji picker, for a million second, the message section is selected and shown and then only emoji box is displayed

What is the root cause of that problem?

We're using debounce for the window dimensions in withWindowDimensions here. This leads to the windowHeight of withWindowDimensions being updated 300ms after the window dimensions change (for performance reasons). This windowHeight is being used in EmojiPicker. Meanwhile in PopoverWithMeasuredContent, we're using windowHeight from useWindowDimensions, which is updated immediately without the debounce. This means the popover dimensions and styles in EmojiPicker is updated 300ms late, causing message section to show briefly in the background.

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

We need to use windowHeight (and other applicable props) from useWindowDimensions in EmojiPicker as well to be consistent with the PopoverWithMeasuredContent. Also we're planning to move away from HOC withWindowDimensions as per this comment as well so this makes sense.

We can optionally use the useWindowDimensions in the EmojiPickerMenu as well, but that one is currently still a class component. For now we can pass the windowHeight from EmojiPicker to EmojiPickerMenu (until the EmojiPickerMenu becomes a functional component, when we can use the hook).

What alternative solutions did you explore? (Optional)

We can apply a 300ms delay to showing the emoji picker to wait for the keyboard to close and also the window dimensions debounce to take effect.

@melvin-bot melvin-bot bot added the Overdue label Oct 5, 2023
@johncschuster
Copy link
Contributor

This isn't overdue. It was just triaged to @ntdiary

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 9, 2023

@johncschuster, @ntdiary Whoops! This issue is 2 days overdue. Let's get this updated quick!

@ntdiary
Copy link
Contributor

ntdiary commented Oct 10, 2023

@tienifr, so we just need to use the useWindowDimensions hook in EmojiPicker? The modal can already cover the underlying messages, although the animation is still a bit jerky.

demo.mp4

@melvin-bot melvin-bot bot removed the Overdue label Oct 10, 2023
@tienifr
Copy link
Contributor

tienifr commented Oct 11, 2023

@tienifr, so we just need to use the useWindowDimensions hook in EmojiPicker? The modal can already cover the underlying messages, although the animation is still a bit jerky.

Yes. If we use the height from useWindowDimensions in EmojiPickerMenu as well then the jerky animation will be gone.

We could pass it from EmojiPicker for now and add a code comment explaining we should move to use useWindowDimensions inside EmojiPickerMenu once that one is converted to functional component.

@melvin-bot
Copy link

melvin-bot bot commented Oct 11, 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 Oct 13, 2023
@johncschuster
Copy link
Contributor

@ntdiary, can you check out @tienifr's response above? Do you feel the proposal is sufficient, or should we keep looking?

@melvin-bot melvin-bot bot removed the Overdue label Oct 13, 2023
@ntdiary
Copy link
Contributor

ntdiary commented Oct 15, 2023

@ntdiary, can you check out @tienifr's response above? Do you feel the proposal is sufficient, or should we keep looking?

Hi, @johncschuster, it looks like the modal animation is still a bit lagging, I think we can wait a few more days to see if there are any better solutions.

@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2023

@johncschuster @ntdiary this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Oct 17, 2023
@ntdiary
Copy link
Contributor

ntdiary commented Oct 17, 2023

Not overdue. We can move forward with @tienifr's proposal.

The animation lag is related to the whole app rendering and cannot be directly fixed here, however, there is a small reference point (not yet fully verified if it will cause some errors):
It looks like there are over a hundred dimension listeners in our app currently, they may be executed in one long task. If we can break them up into multiple smaller tasks, it might be better.
image
image

🎀 👀 🎀 C+ reviewed

@melvin-bot melvin-bot bot added the Overdue label Oct 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 19, 2023

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

Offer link
Upwork job

@melvin-bot
Copy link

melvin-bot bot commented Oct 19, 2023

📣 @tienifr 🎉 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 📖

@johncschuster
Copy link
Contributor

Not overdue.

@melvin-bot melvin-bot bot removed the Overdue label Oct 19, 2023
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Oct 20, 2023
@johncschuster johncschuster added Daily KSv2 and removed Daily KSv2 labels Oct 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

🎯 ⚡️ Woah @ntdiary / @tienifr, great job pushing this forwards! ⚡️

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉

  • when @tienifr got assigned: 2023-10-19 19:41:38 Z
  • when the PR got merged: 2023-10-23 19:51:10 UTC

On to the next one 🚀

@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 25, 2023
@melvin-bot melvin-bot bot changed the title [$500] mWeb-Compose-Tapping emoji picker, for a million second, the message section is selected and shown [HOLD for payment 2023-11-01] [$500] mWeb-Compose-Tapping emoji picker, for a million second, the message section is selected and shown Oct 25, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 25, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 25, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.90-2 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-11-01. 🎊

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 25, 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:

  • [@ntdiary] The PR that introduced the bug has been identified. Link to the PR:
  • [@ntdiary] 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:
  • [@ntdiary] 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:
  • [@ntdiary] Determine if we should create a regression test for this bug.
  • [@ntdiary] 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.
  • [@johncschuster] 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 Nov 1, 2023
@ntdiary
Copy link
Contributor

ntdiary commented Nov 3, 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:

  • [@ntdiary] The PR that introduced the bug has been identified. Link to the PR: Fix image loads on resize window #26543
  • [@ntdiary] 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: https://github.com/Expensify/App/pull/26543/files#r1381406517
  • [@ntdiary] 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 need
  • [@ntdiary] Determine if we should create a regression test for this bug. No need
  • [@ntdiary] 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. No need
  • [@johncschuster] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

No need for regression test, I think leaving the comment in the original PR is sufficient. Also, in our review checklist, we have stated that when changing a generic component, we should try to test the impacted components. : )

@melvin-bot melvin-bot bot added the Overdue label Nov 6, 2023
Copy link

melvin-bot bot commented Nov 6, 2023

@johncschuster, @marcochavezf, @ntdiary, @tienifr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@johncschuster
Copy link
Contributor

Payment has been issued! 🎉

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

No branches or pull requests

5 participants