Sort emojis by popularity Change-Id: I4378da305902c694d4c2b14830d98e21f716f372
diff --git a/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea.js b/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea.js index 43b4a16..261ddda 100644 --- a/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea.js +++ b/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea.js
@@ -20,32 +20,32 @@ const MAX_ITEMS_DROPDOWN = 10; const ALL_SUGGESTIONS = [ + {value: '😊', match: 'smile :)'}, + {value: '👍', match: 'thumbs up'}, + {value: '😄', match: 'laugh :D'}, + {value: '🎉', match: 'party'}, + {value: '😞', match: 'sad :('}, + {value: '😂', match: 'tears :\')'}, + {value: '🙏', match: 'pray'}, + {value: '😐', match: 'neutral :|'}, + {value: '😮', match: 'shock :O'}, + {value: '👎', match: 'thumbs down'}, + {value: '😎', match: 'cool |;)'}, + {value: '😕', match: 'confused'}, + {value: '👌', match: 'ok'}, + {value: '🔥', match: 'fire'}, + {value: '👊', match: 'fistbump'}, {value: '💯', match: '100'}, {value: '💔', match: 'broken heart'}, {value: '🍺', match: 'beer'}, {value: '✔', match: 'check'}, - {value: '😎', match: 'cool |;)'}, - {value: '😕', match: 'confused'}, + {value: '😋', match: 'tongue'}, {value: '😭', match: 'crying :\'('}, - {value: '🔥', match: 'fire'}, - {value: '👊', match: 'fistbump'}, {value: '🐨', match: 'koala'}, - {value: '😄', match: 'laugh :D'}, {value: '🤓', match: 'glasses'}, {value: '😆', match: 'grin'}, - {value: '😐', match: 'neutral :|'}, - {value: '👌', match: 'ok'}, - {value: '🎉', match: 'party'}, {value: '💩', match: 'poop'}, - {value: '🙏', match: 'pray'}, - {value: '😞', match: 'sad :('}, - {value: '😮', match: 'shock :O'}, - {value: '😊', match: 'smile :)'}, {value: '😢', match: 'tear'}, - {value: '😂', match: 'tears :\')'}, - {value: '😋', match: 'tongue'}, - {value: '👍', match: 'thumbs up'}, - {value: '👎', match: 'thumbs down'}, {value: '😒', match: 'unamused'}, {value: '😉', match: 'wink ;)'}, {value: '🍷', match: 'wine'},
diff --git a/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea_test.html b/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea_test.html index d9078b6..4c59f50 100644 --- a/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea_test.html +++ b/polygerrit-ui/app/elements/shared/gr-textarea/gr-textarea_test.html
@@ -179,9 +179,10 @@ element._determineSuggestions(emojiText); assert.isTrue(formatSpy.called); assert.isTrue(formatSpy.lastCall.calledWithExactly( - [{dataValue: '😢', value: '😢', match: 'tear', text: '😢 tear'}, - {dataValue: '😂', value: '😂', match: 'tears :\')', - text: '😂 tears :\')'}])); + [{dataValue: '😂', value: '😂', match: 'tears :\')', + text: '😂 tears :\')'}, + {dataValue: '😢', value: '😢', match: 'tear', text: '😢 tear'}, + ])); }); test('_formatSuggestions', () => {