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
[HOLD for Payment 2024-09-6][$250] clicking enter on emoji selector for status results in leaving status pane #47272
changed the title [-] clicking enter on emoji selector for status results in leaving status pane[/-][+][$250] clicking enter on emoji selector for status results in leaving status pane[/+]on Aug 13, 2024
changed the title [-][$250] clicking enter on emoji selector for status results in leaving status pane[/-][+][HOLD for Payment 2024-09-6][$250] clicking enter on emoji selector for status results in leaving status pane[/+]on Sep 2, 2024
@rayane-djouah , can you also fill out the BZ checklist plz? thx
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:
[@] The PR that introduced the bug has been identified. Link to the PR:
[@] 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:
[@] 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:
[@] Determine if we should create a regression test for this bug.
[@] 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.
[@bz] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
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: N/A
Determine if we should create a regression test for this bug. Yes
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.
Regression Test Proposal
Go to Settings > Status
Click on the emoji selector
Search for any emoji
When the emoji you want is auto-focused, hit enter
Verify that the emoji is selected and the message input is focused
Activity
melvin-bot commentedon Aug 12, 2024
Triggered auto assignment to @mallenexpensify (
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.Krishna2323 commentedon Aug 12, 2024
Edited by proposal-police: This proposal was edited at 2024-08-12 23:02:25 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
clicking enter on emoji selector for status results in leaving status pane
What is the root cause of that problem?
Form is submitted because of enter press.
App/src/pages/settings/Profile/CustomStatus/StatusPage.tsx
Lines 167 to 176 in adaf5cd
What changes do you think we should make in order to solve the problem?
We should check if the emoji picker is active or not and if it is we will disable press on enter.
What alternative solutions did you explore? (Optional)
We can focus on the message input box when the modal hides.
App/src/pages/settings/Profile/CustomStatus/StatusPage.tsx
Line 189 in adaf5cd
What alternative solutions did you explore? (Optional 2)
We can use
useKeyboardShortcutto capture enter clicks and perform emoji selection.App/src/components/EmojiPicker/EmojiPickerMenu/index.tsx
Lines 145 to 164 in 1eef411
daledah commentedon Aug 13, 2024
Edited by proposal-police: This proposal was edited at 2024-08-13 04:48:25 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Emoji is not selected, and the RHP for status disappears
What is the root cause of that problem?
In
FormProvider:App/src/pages/settings/Profile/CustomStatus/StatusPage.tsx
Line 167 in adaf5cd
the
disablePressOnEnterparam isfalseby default.When we open emoji picker then press on Enter, the
onSubmitfunction is triggered:App/src/pages/settings/Profile/CustomStatus/StatusPage.tsx
Line 173 in adaf5cd
so the RHP is closed.
What changes do you think we should make in order to solve the problem?
When the emoji picker is showing, we shouldn't trigger
updateStatuson Enter:App/src/pages/settings/Profile/CustomStatus/StatusPage.tsx
Line 98 in adaf5cd
by adding an early return logic:
bellow:
App/src/pages/settings/Profile/CustomStatus/StatusPage.tsx
Line 99 in adaf5cd
What alternative solutions did you explore? (Optional)
App/src/pages/settings/Profile/CustomStatus/StatusPage.tsx
Line 189 in adaf5cd
will be:
App/src/components/EmojiPicker/EmojiPickerButtonDropdown.tsx
Line 57 in adaf5cd
will be:
App/src/pages/settings/Profile/CustomStatus/StatusPage.tsx
Line 167 in adaf5cd
will be:
daledah commentedon Aug 13, 2024
Proposal updated
melvin-bot commentedon Aug 13, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01d3caa8f59dbe1758
[-] clicking enter on emoji selector for status results in leaving status pane[/-][+][$250] clicking enter on emoji selector for status results in leaving status pane[/+]melvin-bot commentedon Aug 13, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rayane-djouah (
External)mallenexpensify commentedon Aug 13, 2024
Good catch @dylanexpensify I was able to reproduce. @rayane-djouah , plz review the proposals above.
2024-08-13_15-27-05.mp4
27 remaining items
[-][$250] clicking enter on emoji selector for status results in leaving status pane[/-][+][HOLD for Payment 2024-09-6][$250] clicking enter on emoji selector for status results in leaving status pane[/+]mallenexpensify commentedon Sep 2, 2024
Thanks @rayane-djouah , and for linking the deploy checklist too
@rayane-djouah , you might know the answer here in the related Slack thread.
https://expensify.slack.com/archives/C01GTK53T8Q/p1725320002440979?thread_ts=1725050431.962859&cid=C01GTK53T8Q
melvin-bot commentedon Sep 6, 2024
@carlosmiceli, @mallenexpensify, @rayane-djouah, @Krishna2323 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
mallenexpensify commentedon Sep 7, 2024
Contributor: @Krishna2323 paid $250 via Upwork
Contributor+: @rayane-djouah paid $250 via Upwork, can you please accept the job and reply here once you have?
https://www.upwork.com/jobs/~01d3caa8f59dbe1758
@rayane-djouah , can you also fill out the BZ checklist plz? thx
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:
rayane-d commentedon Sep 8, 2024
Checklist
Regression Test Proposal
Do we agree 👍 or 👎
rayane-d commentedon Sep 8, 2024
@mallenexpensify - Accepted the job and completed the checklist
mallenexpensify commentedon Sep 10, 2024
Thanks @rayane-djouah , I updated the comment above to denote you've been paid.
Test Case is here