-
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
fix: sorted suggestion emoji #51220
Conversation
@nkdengineer Could you please update the Tests section at Step 3 to reflect this confirmation, instead of display by sorted alphabetically? |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-10-22.at.22.15.54.mp4Android: mWeb ChromeScreen.Recording.2024-10-22.at.22.15.00.mp4iOS: NativeScreen.Recording.2024-10-22.at.22.13.24.mp4iOS: mWeb SafariScreen.Recording.2024-10-22.at.22.11.46.mp4MacOS: Chrome / SafariScreen.Recording.2024-10-22.at.22.10.14.mp4MacOS: DesktopScreen.Recording.2024-10-22.at.22.14.14.mp4Warning: Warning: |
Bump @nkdengineer for update Test section at comment |
This comment was marked as outdated.
This comment was marked as outdated.
@suneox i updated, please check again |
@@ -154,6 +154,11 @@ describe('EmojiTest', () => { | |||
|
|||
it('correct suggests emojis accounting for keywords', () => { | |||
const thumbEmojisEn: Emoji[] = [ | |||
{ |
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.
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.
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.
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 with dis
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
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.
Just one comment
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.
going to merge this one. :thu
is going to generate 🫰 first on the list but I believe we prefer that over changing the unicode name.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/srikarparsi in version: 9.0.65-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.0.65-5 🚀
|
Details
Fixed Issues
$ #50079
PROPOSAL: #50079 (comment)
Tests
Offline tests
same as above
QA Steps
same as above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov