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 2023-10-30] [HOLD for payment 2023-10-27] [$250] Chat - First row emojis are skipped #30083
👋 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.
That is, updateFirstNonHeaderIndex function is called with the entire emojis every time highlight index is changed. So the value of firstNonHeaderIndex.current becomes 8
This is the root cause
What changes do you think we should make in order to solve the problem?
updateFirstNonHeaderIndex function should be called with the entire emojis only on mount and when search input is empty.
We do this when search input is empty here
That is, updateFirstNonHeaderIndex function is called with the entire emojis every time highlight index is changed. So the value of firstNonHeaderIndex.current becomes 8
This is the root cause
What changes do you think we should make in order to solve the problem?
updateFirstNonHeaderIndex function should be called with the entire emojis only on mount and when search input is empty.
We do this when search input is empty here
Activity
OSBotify commentedon Oct 20, 2023
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
StagingDeployCashdeploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:melvin-bot commentedon Oct 20, 2023
Triggered auto assignment to @AndrewGable (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.dummy-1111 commentedon Oct 20, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Can't highlight first row emojis by arrow keys when searching emojis in Emoji Picker
What is the root cause of that problem?
When moving highlight by arrow keys, we check the bound by the following code
App/src/components/EmojiPicker/EmojiPickerMenu/index.js
Line 257 in 18acd82
App/src/components/EmojiPicker/EmojiPickerMenu/index.js
Line 271 in 18acd82
When searching emojis,
firstNonHeaderIndex.currentshould be 0 because there are no spaces or headers.But this value is updated by
App/src/components/EmojiPicker/EmojiPickerMenu/index.js
Lines 364 to 379 in 18acd82
App/src/components/EmojiPicker/EmojiPickerMenu/index.js
Line 374 in 18acd82
That is,
updateFirstNonHeaderIndexfunction is called with the entire emojis every time highlight index is changed. So the value offirstNonHeaderIndex.currentbecomes 8This is the root cause
What changes do you think we should make in order to solve the problem?
updateFirstNonHeaderIndexfunction should be called with the entire emojis only on mount and when search input is empty.We do this when search input is empty here
App/src/components/EmojiPicker/EmojiPickerMenu/index.js
Line 180 in 18acd82
Remove this line and call the function on mount
This works as expected
What alternative solutions did you explore? (Optional)
kbecciv commentedon Oct 20, 2023
Proposal by:@s-alves10
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697753213411739
Proposal
Please re-state the problem that we are trying to solve in this issue.
Can't highlight first row emojis by arrow keys when searching emojis in Emoji Picker
What is the root cause of that problem?
When moving highlight by arrow keys, we check the bound by the following code
App/src/components/EmojiPicker/EmojiPickerMenu/index.js
Line 257 in 18acd82
App/src/components/EmojiPicker/EmojiPickerMenu/index.js
Line 271 in 18acd82
When searching emojis,
firstNonHeaderIndex.currentshould be 0 because there are no spaces or headers.But this value is updated by
App/src/components/EmojiPicker/EmojiPickerMenu/index.js
Lines 364 to 379 in 18acd82
App/src/components/EmojiPicker/EmojiPickerMenu/index.js
Line 374 in 18acd82
That is,
updateFirstNonHeaderIndexfunction is called with the entire emojis every time highlight index is changed. So the value offirstNonHeaderIndex.currentbecomes 8This is the root cause
What changes do you think we should make in order to solve the problem?
updateFirstNonHeaderIndexfunction should be called with the entire emojis only on mount and when search input is empty.We do this when search input is empty here
App/src/components/EmojiPicker/EmojiPickerMenu/index.js
Line 180 in 18acd82
Remove this line and call the function on mount
This works as expected
What alternative solutions did you explore? (Optional)
[-]Chat - First row emojis are skipped[/-][+][$500] Chat - First row emojis are skipped[/+]melvin-bot commentedon Oct 20, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01ed51d25e4548ec9f
melvin-bot commentedon Oct 20, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh (
External)[-][$500] Chat - First row emojis are skipped[/-][+][$250] Chat - First row emojis are skipped[/+]29 remaining items
melvin-bot commentedon Oct 30, 2023
@AndrewGable, @fedirjh, @s-alves10 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon Oct 31, 2023
Triggered auto assignment to @joekaufmanexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Oct 31, 2023
AndrewGable commentedon Oct 31, 2023
@joekaufmanexpensify - Can you pay out? Thanks
joekaufmanexpensify commentedon Nov 1, 2023
Sure!
joekaufmanexpensify commentedon Nov 1, 2023
This PR qualified for a speed bonus, this means we need to make the following payments:
joekaufmanexpensify commentedon Nov 1, 2023
@s-alves10 $425 sent and contract ended!
joekaufmanexpensify commentedon Nov 1, 2023
@fedirjh $375 sent and contract ended!
joekaufmanexpensify commentedon Nov 1, 2023
Upwork job closed.
joekaufmanexpensify commentedon Nov 1, 2023
Closing as this is all set. Thanks everyone!