Skip to content
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: remove reply message option from context menu #15478

Merged

Conversation

arjita-mitra
Copy link
Contributor


PR Submission Checklist for internal contributors

  • The PR Title

    • remove reply message option from context menu
  • The PR Description

    • Send or receive a message
    • Open message options
    • Actual: In the message options is a options to reply to this message
    • Expected: Since the reply option is already in the floating action menu it should be removed from the message options in the context menu

References
  1. https://wearezeta.atlassian.net/browse/WPB-2881

@arjita-mitra arjita-mitra merged commit 88a0a0f into feature/SQSERVICES-1864 Jul 19, 2023
@arjita-mitra arjita-mitra deleted the improvements/reaction-cross-platform branch July 19, 2023 08:43
@arjita-mitra arjita-mitra restored the improvements/reaction-cross-platform branch July 19, 2023 08:47
arjita-mitra added a commit that referenced this pull request Aug 21, 2023
* feat: create floating menu for message actions(SQSERVICES-1910)

* feat: manage message actions menu focus, hover, active states(SQSERVICES-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

* test: message action menu tests

* feat: emoji picker integration(SQSERVICES-1734)

* better positioning of emoji picker

* feat: handle outside area clicked for reaction/action menu items
overlay css
test case updated
code cleanup
context menu overlay and reset states(SQSERVICES-1734)

* feat: configure feature flag to enable/disable reaction

* feat: add ability to react on messages(SQSERVICES-1734) (#14839)

* 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 (#14933)

* feat: Add tooltip to reaction buttons

* use isEnterKey

* onTooltipReactionCountClick

* onShowReactionDetails

* onClickReactionDetails

* remove MessageFooterLike

* feat: add new design for message timestamp, read receipt and integrate 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]>

* runfix: Reaction views menu on 1 to 1

* runfix: Adjust margin of reaction tooltip

* chore: remove img cdn

* chore: merge commit with dev

* fix: test errors

* fix: lock file update

* fix: add skiplibcheck temporarily

* test: add withTheme

* fix: test cases

* feat: message reactions design review feedback changes(SQSERVICES-2057, 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: improve focus and hover behaviour of reactions menu (#15227)

* 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]>

* fix: use emoji image inside reaction details right panel, some style 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) (#15321)

* 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

* fix: reset active menu button when no menu is open and clicked on wrapper (#15346)

* chore: cleanup packages

* fix: remove reply message option from context menu (#15478)

* fix: Capitalise the first letter of the first word in the emoji name 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

* feat: emoji pills should become active/inactive when user selects/unselect 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

* fix: make all emoji pills active that user ever reacted to[WPB-3291] (#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

* feat: emoji pills should be sorted by number of reactions in desc order (#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

* feat: retain user selected skin colour after user reacts with the selected 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

---------

Co-authored-by: Amir Ghezelbash <[email protected]>
Co-authored-by: Przemysław Jóźwik <[email protected]>
Co-authored-by: Thomas Belin <[email protected]>
Co-authored-by: V-Gira <[email protected]>
Co-authored-by: Timothy Le Bon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants