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

refactor: make MessageContextMenu a functional component #16390

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

iurimatias
Copy link
Member

What does the PR do

Removes logic and global calls from MessageContextMenu and simplifies some of it

Affected areas

Anything with messages

Impact on end user

Functionality should remain the same

How to test

Right click on a message and test menu options, such as emoji reactions, copy message, reply to message

Risk

message context menu items not working as expected in some particular context

@status-im-auto
Copy link
Member

status-im-auto commented Sep 24, 2024

Jenkins Builds

Click to see older builds (6)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 800db64 #1 2024-09-24 14:21:49 ~7 min tests/nim 📄log
✔️ 800db64 #1 2024-09-24 14:23:28 ~8 min macos/aarch64 🍎dmg
✔️ 800db64 #1 2024-09-24 14:26:26 ~11 min tests/ui 📄log
✔️ 800db64 #1 2024-09-24 14:29:43 ~15 min macos/x86_64 🍎dmg
✔️ 800db64 #1 2024-09-24 14:31:52 ~17 min linux-nix/x86_64 📦tgz
✔️ 800db64 #1 2024-09-24 14:33:47 ~19 min linux/x86_64 📦tgz
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 182cef3 #2 2024-09-24 16:23:06 ~6 min macos/aarch64 🍎dmg
✔️ 182cef3 #2 2024-09-24 16:23:37 ~6 min tests/nim 📄log
✔️ 3654c06 #3 2024-09-24 16:31:06 ~6 min macos/aarch64 🍎dmg
✔️ 3654c06 #3 2024-09-24 16:31:19 ~6 min tests/nim 📄log
3654c06 #3 2024-09-24 16:36:25 ~11 min tests/ui 📄log
✔️ 3654c06 #3 2024-09-24 16:36:38 ~12 min macos/x86_64 🍎dmg
✔️ 3654c06 #3 2024-09-24 16:40:17 ~15 min linux-nix/x86_64 📦tgz
✔️ 3654c06 #3 2024-09-24 16:42:11 ~17 min linux/x86_64 📦tgz
✔️ 3654c06 #4 2024-09-24 19:31:06 ~5 min tests/ui 📄log

@status-im-auto
Copy link
Member

refactor: make MessageContextMenu a functional component

refactor: make MessageContextMenu a functional component

remove root store

simplify signals in message context menu

abstract copyToClipboard as a signal

simplify code

fix menu not closing on emoji reaction
@iurimatias iurimatias force-pushed the chore/refactor_message_context2 branch from 800db64 to 182cef3 Compare September 24, 2024 16:16
@status-im-auto
Copy link
Member

Copy link
Member

@caybro caybro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@glitchminer glitchminer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Unable to unselect reactions
    image

  • Line appearing through emoji reactions
    image

  • Emoji reactions clipped when no longer a contact or pending request
    image

@iurimatias
Copy link
Member Author

@glitchminer this emojis thing is a regression in master itself (or at least was yesterday) cc: @anastasiyaig

@glitchminer glitchminer self-requested a review September 25, 2024 21:23
Copy link
Contributor

@glitchminer glitchminer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this emojis thing is a regression in master itself (or at least was yesterday)

OK, I'm seeing that as well now.

@iurimatias iurimatias merged commit debae1e into master Sep 25, 2024
9 checks passed
@iurimatias iurimatias deleted the chore/refactor_message_context2 branch September 25, 2024 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants