You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Chat - Focus lost after choosing emoji from EmojPicker #33984
Version Number: 1.4.22-0 Reproducible in staging?: Y Reproducible in production?: N 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 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Please re-state the problem that we are trying to solve in this issue.
Composer isn't focus after selecting an emoji
What is the root cause of that problem?
On selection of emoji we are hiding the emoji picker but do not execute the close method of the PopoverContext which eventually doesn't update the isOpen value, due to that isPopoverOpen remains true here and it won't focus the composer.
@Pujan92 what's offending PR? #33483 was deployed to production
Offending PR is #33483 only bt currently emoji picker by mistake in other PR is opening as Modal(instead of PopoverWithoutOverlay) so we are not able to reproduce at the moment(bcoz ModalonClose is calling close method).
I think it will be reproducible in production once this PR hits there.
I agree with #32970 (comment).
As regression test is already done, revert is safer approach and original issue is not that critical.
I am concerned applying patch will cause another unexpected regression. @thienlnam what do you think?
It doesn't look like your comment mentioned the PR that caused the regression - also since we're just reverting code here we're going to have the problem resolved in that PR
Yeah but I don't see the regression PR linked in your comment anywhere.
Additionally, in these scenarios where we revert a recent PR we don't issue payment for just pointing out where it was caused. If we had implemented your other solution that would be a different situation, but it sounds like we decided to just go with a revert here due to other reasons as well listed here
@DylanDylann as you're not assigned, I don't think you're eligible even if it's not straight revert.
And this GH was not made external so there's no guarantee of payment even if your solution is used.
Similar case: #33228 (comment) (I even helped review PR)
Hey @DylanDylann - we have plenty of opportunities to jump in if you're looking for monetary compensation but as Jack has said, this is mainly a revert - we have not implemented code. If we implement something, I'd keep an eye out on #32970 (comment).
Activity
github-actions commentedon Jan 4, 2024
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
melvin-bot commentedon Jan 4, 2024
Triggered auto assignment to @stitesExpensify (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.lanitochka17 commentedon Jan 4, 2024
Production:
Recording.873.mp4
DylanDylann commentedon Jan 5, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js
Lines 414 to 422 in 095161a
What changes do you think we should make in order to solve the problem?
willContextMenuOpenin here to know if the context menu is opening or not.ComposerFocusManager.willContextMenuOpen = true. Do it by updating:App/src/components/LHNOptionsList/OptionRowLHN.js
Lines 190 to 191 in 2d455bf
to:
onSecondaryInteraction={(e) => { showPopover(e); + ComposerFocusManager.willContextMenuOpen = truewillContextMenuOpenistrue. Do it by updating:App/src/libs/focusComposerWithDelay.ts
Lines 17 to 19 in 2d455bf
to:
What alternative solutions did you explore? (Optional)
Pujan92 commentedon Jan 6, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Composer isn't focus after selecting an emoji
What is the root cause of that problem?
On selection of emoji we are hiding the emoji picker but do not execute the
closemethod of the PopoverContext which eventually doesn't update theisOpenvalue, due to thatisPopoverOpenremains true here and it won't focus the composer.App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js
Lines 414 to 422 in 50f2010
App/src/components/EmojiPicker/EmojiPicker.js
Lines 109 to 120 in 50f2010
What changes do you think we should make in order to solve the problem?
Use Popover context in the EmojiPicker for close method and call it inside
selectEmojifunction.App/src/components/EmojiPicker/EmojiPicker.js
Line 116 in 50f2010
situchan commentedon Jan 6, 2024
@Pujan92 what's offending PR? #33483 was deployed to production
Pujan92 commentedon Jan 6, 2024
Offending PR is #33483 only bt currently emoji picker by mistake in other PR is opening as
Modal(instead ofPopoverWithoutOverlay) so we are not able to reproduce at the moment(bcozModalonCloseis callingclosemethod).I think it will be reproducible in production once this PR hits there.
mvtglobally commentedon Jan 7, 2024
still repro on build 1.4.22-2
Recording.894.mp4
thienlnam commentedon Jan 8, 2024
Situ is handling as C+
situchan commentedon Jan 8, 2024
I agree with #32970 (comment).
As regression test is already done, revert is safer approach and original issue is not that critical.
I am concerned applying patch will cause another unexpected regression.
@thienlnam what do you think?
6 remaining items
melvin-bot commentedon Jan 10, 2024
Triggered auto assignment to @sophiepintoraetz (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.thienlnam commentedon Jan 10, 2024
This blocker was fixed in the revert - adding the bug label so we can get payment issued
sophiepintoraetz commentedon Jan 10, 2024
@thienlnam - can you confirm it's just $500 to @situchan?
thienlnam commentedon Jan 10, 2024
Yes that is correct!
DylanDylann commentedon Jan 10, 2024
@thienlnam I proposed the proposal that point out the RCA and solution to revert the PR here, can you help check
thienlnam commentedon Jan 10, 2024
It doesn't look like your comment mentioned the PR that caused the regression - also since we're just reverting code here we're going to have the problem resolved in that PR
DylanDylann commentedon Jan 10, 2024
@thienlnam My proposal have 2 sections:
This is revert the regression PR
And the rest is the solution that will fix the issue that the regression PR try to fix
thienlnam commentedon Jan 10, 2024
Yeah but I don't see the regression PR linked in your comment anywhere.
Additionally, in these scenarios where we revert a recent PR we don't issue payment for just pointing out where it was caused. If we had implemented your other solution that would be a different situation, but it sounds like we decided to just go with a revert here due to other reasons as well listed here
DylanDylann commentedon Jan 10, 2024
@thienlnam
In the comment you mentioned, the author mentioned my proposal "More info is explained on the #33984 (comment) there."
Can you help check
mkhutornyi commentedon Jan 10, 2024
@DylanDylann as you're not assigned, I don't think you're eligible even if it's not straight revert.
And this GH was not made external so there's no guarantee of payment even if your solution is used.
Similar case: #33228 (comment) (I even helped review PR)
sophiepintoraetz commentedon Jan 10, 2024
Hey @DylanDylann - we have plenty of opportunities to jump in if you're looking for monetary compensation but as Jack has said, this is mainly a revert - we have not implemented code. If we implement something, I'd keep an eye out on #32970 (comment).
@situchan - offer sent!
DylanDylann commentedon Jan 10, 2024
Thanks @sophiepintoraetz , @thienlnam.