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 |
|
|
||
| it('correct suggests emojis accounting for keywords', () => { | ||
| const thumbEmojisEn: Emoji[] = [ | ||
| { |
There was a problem hiding this comment.
Why did we move this back up? We moved it down for this issue: #48748
There was a problem hiding this comment.
@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.
@srikarparsi I think that's expected since we're prioritizing sorting by emoji name here.
There was a problem hiding this comment.
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.
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.
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.
Soundss good, going to merge this one then
srikarparsi
left a comment
There was a problem hiding this comment.
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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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