-
Notifications
You must be signed in to change notification settings - Fork 291
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
feat: reactions on Messages(sqservices -1734) #14771
Conversation
…CES-1910) - toggle message actions menu active state - refactor message actions component and group reaction butons togehter - add dark/light theme support - css for action menu
overlay css test case updated code cleanup context menu overlay and reset states(SQSERVICES-1734)
…ture/SQSERVICES-1864
src/script/components/MessagesList/Message/ContentMessage/ContentMessage.tsx
Show resolved
Hide resolved
src/script/components/MessagesList/Message/ContentMessage/MessageActions/MessageReactions.tsx
Outdated
Show resolved
Hide resolved
src/script/components/MessagesList/Message/ContentMessage/MessageActions/MessageReactions.tsx
Outdated
Show resolved
Hide resolved
…ture/SQSERVICES-1864
* feat: add ability to react on messages * feat: create util for transformReactionObj replace thums up and heart emoji with image image css create list reactions component * feat: Add emoji title utils (#14827) * feat: convert emoji to unicode * feat: integrate react functioanlity with reactions button make reactions button reactions buttons css create reaction emoji image component * test: unit test message reactions * refactor: move message reactions related components under message reactions directory * refactor: improve transformReactionObj function call transformReactionObj from reactions list * refactor: update test cases * refactor: remove test case * refactor: remove unused code fix: review comment * chore: update yarn lock * chore: update yarn lock * feat: Add ability to see messsage reactions (SQSERVICES-1876) (#14825) * feat: Add ability to see messsage reactions (SQSERVICES-1876) * getEmojiTitleFromEmojiUnicode * feat: create util for transformReactionObj replace thums up and heart emoji with image image css create list reactions component * feat: Add emoji title utils (#14827) * feat: convert emoji to unicode * styles * use first name * use reduce * use map * use map for emoji dictionary * remove extra ? * remove duplicated code * Update src/script/util/EmojiUtil.ts Co-authored-by: Przemysław Jóźwik <[email protected]> * Update src/script/util/EmojiUtil.ts Co-authored-by: Przemysław Jóźwik <[email protected]> * correct rendering * yarn lock changes * migrate styles * dark mode handle * change styles file name --------- Co-authored-by: arjita-mitra <[email protected]> Co-authored-by: Przemysław Jóźwik <[email protected]> * fix: new and older client should be in sync when a user reacts on a message * test: add unit testing for reaction add/remove from a message * Update src/script/components/MessagesList/Message/MessageWrapper.tsx Co-authored-by: Thomas Belin <[email protected]> --------- Co-authored-by: Amir Ghezelbash <[email protected]> Co-authored-by: Przemysław Jóźwik <[email protected]> Co-authored-by: Thomas Belin <[email protected]>
* feat: Add tooltip to reaction buttons * use isEnterKey * onTooltipReactionCountClick * onShowReactionDetails * onClickReactionDetails * remove MessageFooterLike
…e floating action menu inside image details modal (#14917) * feat: refactor updateUserReactions method * test: updateUserReactions method tests * feat: read receipt and timestamp new design reaction buttons style changes * feat: customise dark and light theme colour of emoji picker update placeholder remove feature flag * fix: simplify code * adjust position of message action menu to ensure responsivness * feat: integrate message actions menu with detailsviewmodal * implement new design of read receipts * adjust style of 1 on 1 read receipts * refactor reaction list padding to button margin to prevent extra line padding * remove onClickReceive and replace by onClickDetails for contect menu action * remove read status from ping message * fix: hover, focus background colour of emoji picker * fix: use css specificity to avoid important rule * feat: integrate message floating action menu inside image details view modal * test: update test cases * fix: all typescript error fix and remove unused code * feat: trap focus inside image modal * feat: don't focus on reaction list buttons unless the message is focused * feat: close emoji picker on emoji selection * fix: message timestamp should appear after all the icons, ex: guest * fix: place comma inline * fix: move comment into correct place * fix: rename method, make image detail modal id const * fix: code review comments, update aria label --------- Co-authored-by: V-Gira <[email protected]>
…ture/SQSERVICES-1864
…wire-webapp into feature/SQSERVICES-1864
Codecov Report
@@ Coverage Diff @@
## dev #14771 +/- ##
==========================================
+ Coverage 43.43% 43.66% +0.22%
==========================================
Files 654 667 +13
Lines 22285 22606 +321
Branches 5096 5144 +48
==========================================
+ Hits 9680 9870 +190
- Misses 11366 11485 +119
- Partials 1239 1251 +12 |
…7, SQSERVICES-2058) (#15200) * fix: reaction improvements increase reaction badge font size, reaction count colour update based on active/inactive, no system message background highlight * feat: self deleting msg reactions(SQSERVICES-2057) * Update src/script/components/MessagesList/Message/ContentMessage/MessageActions/MessageReactions/MessageReactions.styles.ts Co-authored-by: Przemysław Jóźwik <[email protected]> * fix: code review changes * fix: use HTMLButtonElement to reduce props passed * fix: add missing onKeyPress attribute --------- Co-authored-by: Przemysław Jóźwik <[email protected]>
* fix: reaction improvements increase reaction badge font size, reaction count colour update based on active/inactive, no system message background highlight * feat: self deleting msg reactions(SQSERVICES-2057) * Update src/script/components/MessagesList/Message/ContentMessage/MessageActions/MessageReactions/MessageReactions.styles.ts Co-authored-by: Przemysław Jóźwik <[email protected]> * fix: code review changes * fix: use HTMLButtonElement to reduce props passed * fix: add missing onKeyPress attribute * feat: improve keyboard accessibility remove unused code close message action menu on tab of last interactive element of a message prevent emoji picker up/down arrow key to naviage between messages in background after emoji selection/esc key then retain the focus on the emoji button * fix: improve comments * fix: remove array.from --------- Co-authored-by: Przemysław Jóźwik <[email protected]>
…updates, add reaction count (#15228) * fix: reaction improvements increase reaction badge font size, reaction count colour update based on active/inactive, no system message background highlight * feat: self deleting msg reactions(SQSERVICES-2057) * Update src/script/components/MessagesList/Message/ContentMessage/MessageActions/MessageReactions/MessageReactions.styles.ts Co-authored-by: Przemysław Jóźwik <[email protected]> * fix: code review changes * fix: use HTMLButtonElement to reduce props passed * fix: add missing onKeyPress attribute * feat: improve keyboard accessibility remove unused code close message action menu on tab of last interactive element of a message prevent emoji picker up/down arrow key to naviage between messages in background after emoji selection/esc key then retain the focus on the emoji button * fix: improve comments * fix: remove array.from * fix: replace span with emoji image for message reaction details panel add reaction count style change * fix: update style name --------- Co-authored-by: Przemysław Jóźwik <[email protected]>
* fix: reaction QA feedback(WPB-1199) - fix reaction action menu hover/focus state issues - line break for reactions to avoid overflow * fix: adjust action menu position on font size change wrap emoji pills to multi line horizontal scroll shouldn't appear for long messages either * fix: remove focus from reaction tooltip * fix: add test id * fix: [Web] Reactions: Message actions still accessible when I got removed from the conversation * fix: context menu escape key press, multiple tooltip displayed together, stop propogating reaction action menu events * fix: refactor code * fix: remove unused event * fix: remove extra div, move event handlers up to make tootlip links clickable * chore: bump ui-kit
…displayed on the right-side panel in the message details. (#15479) * fix: remove reply message option from context menu * fix: Capitalise the first letter of the first word in the emoji name displayed on the right-side panel in the message details. * fix: reuse exisitng methods
…elect an emoji[WPB-3291] (#15503) * fix: remove reply message option from context menu * fix: Capitalise the first letter of the first word in the emoji name displayed on the right-side panel in the message details. * fix: reuse exisitng methods * fix: set emoji pill active/inactive when user select/unselect a reaction * fix: code review suggestions
…15509) * fix: remove reply message option from context menu * fix: Capitalise the first letter of the first word in the emoji name displayed on the right-side panel in the message details. * fix: reuse exisitng methods * fix: set emoji pill active/inactive when user select/unselect a reaction * fix: code review suggestions * fix: make all emoji pills active that user ever reacted * fix: spread the prop
…er (#15530) * fix: remove reply message option from context menu * fix: Capitalise the first letter of the first word in the emoji name displayed on the right-side panel in the message details. * fix: reuse exisitng methods * fix: set emoji pill active/inactive when user select/unselect a reaction * fix: code review suggestions * fix: make all emoji pills active that user ever reacted * fix: spread the prop * feat: sort emoji pills by reaction user count(WPB-3292) * fix: add function description
…ected skin colour (#15531) * fix: remove reply message option from context menu * fix: Capitalise the first letter of the first word in the emoji name displayed on the right-side panel in the message details. * fix: reuse exisitng methods * fix: set emoji pill active/inactive when user select/unselect a reaction * fix: code review suggestions * fix: make all emoji pills active that user ever reacted * fix: spread the prop * feat: sort emoji pills by reaction user count(WPB-3292) * fix: add function description * fix: retain user selected skin colour(WPB-3564) * fix: add new line
…ture/SQSERVICES-1864
yalc.lock
Outdated
@@ -0,0 +1,10 @@ | |||
{ |
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.
This file shoundn't be commited, please remove
PR Submission Checklist for internal contributors
The PR Title
The PR Description
References