-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix: sorted suggestion emoji #51220
Merged
Merged
fix: sorted suggestion emoji #51220
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
e774111
fix: sorted suggestion emoji
nkdengineer a2adfcd
Merge branch 'main' into fix/50079
nkdengineer 596f16f
fix test
nkdengineer 313d716
chore
nkdengineer 8e6b360
fix test
nkdengineer 7cacc00
fix lint
nkdengineer 542cb41
Merge branch 'main' into fix/50079
nkdengineer c0a7a2f
create a function to remove dup code
nkdengineer 14e4caf
Merge branch 'main' into fix/50079
nkdengineer ebcdade
Merge branch 'main' into fix/50079
nkdengineer 3120da7
Merge branch 'main' into fix/50079
nkdengineer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we move this back up? We moved it down for this issue: #48748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@srikarparsi After we sort the suggestion emoji, the position of the emojis in the test is changed here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, when I test it manually, the wrong emoji comes up first, does this occur for you as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@srikarparsi I think that's expected since we're prioritizing sorting by emoji name here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I don't think that's expected. Based on this issue, I believe we want
:thumb
to show the thumbs up emoji first instead of the hand_with_index_finger emoji in the picture.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My vote would be either to do nothing, or update the sorting algorithm now to include keywords since "thumbsup" is already in that array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name in slack is
:+1:
😄 Even if you type:thumbsup:
, when you highlight it, it will always say+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm okay, updating the sorting algorithm to include keywords wouldn't work for this example right? Because
melting_face
🫠 has keywords that start withdis
even though the name doesn't.I am leaning towards changing the names of +1 and -1 to thumbsup and thumbsdown and including a comment explaining to change the name back once we incorporate frequency into our sorting algorithm. Does that sound okay with you?
If not, I am also fine with doing nothing for now for this edge case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah let's do nothing. Keeping the same names as unicode seems more important than this one edge case IMO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Soundss good, going to merge this one then