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

#2427 - Add 'reply' menu for a proposal notification message. #2491

Merged

Conversation

SebinSong
Copy link
Collaborator

@SebinSong SebinSong commented Jan 2, 2025

closes #2427

I have worked on this issue for MessageInteractive.vue component, which is used for various proposal-related notifications in the chat .

[Screenshot - Menu added]


[Screenshot - When the 'reply' menu is clicked]


[Screenshot - replied message]

@SebinSong SebinSong self-assigned this Jan 2, 2025
Copy link

cypress bot commented Jan 2, 2025

group-income    Run #3698

Run Properties:  status check passed Passed #3698  •  git commit eacda17fcf ℹ️: Merge 02f498f6c3e1d95a2ce4e7351ff1408930008b9d into 94fc55de3a2c60173f0353f5c445...
Project group-income
Branch Review sebin/task/#2427-add-reply-option-to-automated-message
Run status status check passed Passed #3698
Run duration 10m 41s
Commit git commit eacda17fcf ℹ️: Merge 02f498f6c3e1d95a2ce4e7351ff1408930008b9d into 94fc55de3a2c60173f0353f5c445...
Committer Sebin Song
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 10
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 112
View all changes introduced in this branch ↗︎

const proposal = message.proposal
const getNameFromMemberID = (memberID) => {
const profile = this.globalProfile(memberID)
return profile ? `${CHATROOM_MEMBER_MENTION_SPECIAL_CHAR}${memberID}` : L('Unknown user')
Copy link
Member

Choose a reason for hiding this comment

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

Why is this check needed? I believe ${CHATROOM_MEMBER_MENTION_SPECIAL_CHAR}${memberID} should be used unconditionally.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.
(I thought the user profile data of a member who has left group would be gone and no longer captured in ourContactProfilesById getter. But it seems that's not the case which is a good thing.)

@SebinSong
Copy link
Collaborator Author

SebinSong commented Jan 13, 2025

@taoeffect Just updated the PR again.

BTW, it's a minor suggestion but while working on the update, I noticed the avatar image of a member who left the group is just a grey background.

That looks fine but what's your thoughts on showing this question mark icon on top of it too?

If you think it's a good idea, pls create an issue and assign me to it.

@taoeffect
Copy link
Member

If you think it's a good idea, pls create an issue and assign me to it.

I think it's a fine idea, but I feel neutral to it. If you feel strongly that you'd like to see this, feel free to create the issue and self-assign.

Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

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

Nice work @SebinSong!

@taoeffect taoeffect merged commit 09ae6f2 into master Jan 15, 2025
4 checks passed
@taoeffect taoeffect deleted the sebin/task/#2427-add-reply-option-to-automated-message branch January 15, 2025 20:47
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.

Add "Reply" option for automated messages
3 participants