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: issue of mentioning the user in the file description #677

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

devanshkansagra
Copy link
Contributor

@devanshkansagra devanshkansagra commented Dec 1, 2024

Fixed the issue of rendering mentions in file description

Acceptance Criteria fulfillment

  • Ensure that mentioning a user or all or here renders properly even when mentioning with @ in the file description

Fixes #622
Closes: #648

Video/Screenshots

Screencast.from.16-12-24.02.00.35.PM.IST.webm

PR Test Details

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-677 after approval. Contributors are requested to replace <pr_number> with the actual PR number.

@devanshkansagra
Copy link
Contributor Author

Hey @SinghaAnirban005, I was previously working on the Markdown issue and I got some relations of that issue and this issue, so I instantly got approach and I raised the pr. But don't worry you can review this pr and suggest me any changes required. Also I have one issue correlated to this issue. You remember I have asked you about whether the userinfo is displayed or not when clicking on the mention. I observed that, it is also not working in chatinput also if you mention a user. so you can raise the issue and create a pr for that

@SinghaAnirban005
Copy link
Contributor

@devanshkansagra Your changes look good, Just wanted to ask whether on mentioning other users , the highlight colour changes to greyish ?? Also once your changes are approved I will start working on the issue where the user info is not displayed

@devanshkansagra
Copy link
Contributor Author

devanshkansagra commented Dec 2, 2024

yepp it changes, Basically I used the Markdowns in the AttachmentPreview and accordingly it will work as how the mentioning in chatinput work

@devanshkansagra devanshkansagra changed the title Fix the issue of mentioning the user in the file description fix: issue of mentioning the user in the file description Dec 5, 2024
@devanshkansagra
Copy link
Contributor Author

devanshkansagra commented Dec 8, 2024

Hey @Spiral-Memory, can you approve this pr to test and review this pr?

@Spiral-Memory
Copy link
Collaborator

Hi @devanshkansagra,

In the video, I noticed that opening the username preview disturbs the orientation of the modal. Additionally, the preview only covers the length of the username. Could you adjust it to cover the full length, similar to the message box?

Instead of increasing the modal height, could we try to make the preview overlap with the above containers so that it doesn’t affect the modal size?

@devanshkansagra
Copy link
Contributor Author

Ok Noted..

@devanshkansagra
Copy link
Contributor Author

Hey @Spiral-Memory , I have noticed some inconsistency regarding mentioning in a user in a quoted file message, I will append that fix commit in this pr as it is related to this issue

@devanshkansagra
Copy link
Contributor Author

In the quoted messages, the mentions are displayed as a plain text because, inside a quote message there is no message object, instead there are inner attachments, also this is the same behaviour in rocketchat main. so I kept as it is

@devanshkansagra
Copy link
Contributor Author

Hey @Spiral-Memory, can you review this also, I have made the appropriate changes you suggested

@devanshkansagra
Copy link
Contributor Author

yea but that was also a new pr for that workflow and also that security alert was not interfering in that workflow, then how it is possible?

@devanshkansagra
Copy link
Contributor Author

Okay no worries

@Spiral-Memory
Copy link
Collaborator

Spiral-Memory commented Dec 22, 2024

Before :

image

After:

image

Pls make a fix for that

@RocketChat RocketChat deleted a comment from devanshkansagra Dec 22, 2024
@RocketChat RocketChat deleted a comment from devanshkansagra Dec 22, 2024
@devanshkansagra
Copy link
Contributor Author

image
did you mean this thing?

@Spiral-Memory
Copy link
Collaborator

Check my message, how one text is above another.

@devanshkansagra
Copy link
Contributor Author

oh okay that is just one line padding fix, I will add that commit

@Spiral-Memory
Copy link
Collaborator

Ok, add the fix
I'll merge

@devanshkansagra
Copy link
Contributor Author

Hey @Spiral-Memory, I have fix this minor issue, you can approve to check and review the code, if everything look good then merge it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants