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

feat: Add user label to mention #10556

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

elzody
Copy link
Contributor

@elzody elzody commented Nov 20, 2024

Change-Id: Id2484d5dee155a7755e0cca55a97d7191ec83985

  • Target version: master

Summary

In Nextcloud, we are working on improving our mention support, and it would be really nice to also be able to pass a display name (label) along with a username (unique identifier) and the profile link. Having this would allow us to determine the user quicker and easier on our side, and I don't see the harm in having it there for other integrations as well, should they want it.

This is a work-in-progress PR, and it's my first contribution to this repository, so please bear with me and provide any constructive feedback you may have :)

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

Copy link

welcome bot commented Nov 20, 2024

Thanks for opening this pull request!

Things that will help get your PR across the finish line:

@juliusknorr juliusknorr requested a review from Rash419 November 21, 2024 07:14
@juliusknorr juliusknorr added the enhancement New feature or request label Nov 21, 2024
This optional extra parameter allows defining a label for a user, much
like a display name, along with the username which should be expected to
be the unique identifier (while the label can be non-unique). It is a
good idea because some integrations might want to supply this, and some
might need a separate, unique identifier with which to easily identify
the user being mentioned (like Nextcloud).

Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
Change-Id: Id2484d5dee155a7755e0cca55a97d7191ec83985
@elzody elzody force-pushed the feat/mention-label branch from 1c803d6 to 06b3fba Compare November 21, 2024 20:50
@elzody elzody marked this pull request as ready for review November 21, 2024 21:00
@elzody elzody changed the title [WIP] feat: add label (display name) to UI_Mention feat: Add user label to mention Nov 21, 2024
Copy link
Contributor

@Rash419 Rash419 left a comment

Choose a reason for hiding this comment

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

Looks good, thank you. I have created SDK MR, once this patch is released in the new version. I will merge the SDK MR so it gets updated

@Rash419 Rash419 self-requested a review November 30, 2024 13:23
Copy link
Contributor

@Rash419 Rash419 left a comment

Choose a reason for hiding this comment

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

I noticed in mobile comment we don't use label when available

comment.autoCompleteMention(item.username, item.profile, replacement)
. Otherwise, looks good : )

Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
Change-Id: I6bb645725e1db84a6d21ee8c99230f3a6905fe3c
@juliusknorr juliusknorr requested a review from Rash419 December 2, 2024 20:09
Copy link
Contributor

@Rash419 Rash419 left a comment

Choose a reason for hiding this comment

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

Thanks : )

@Rash419 Rash419 merged commit 298b01a into CollaboraOnline:master Dec 3, 2024
12 of 13 checks passed
Copy link

welcome bot commented Dec 3, 2024

Thanks a lot for your contribution, and congrats on your first pull request merged! Welcome aboard! 🎉🎉🎉

If you haven't decided on your next task yet, take a look at our easy-hacks. We're looking forward to your next pull request! :)

@elzody elzody deleted the feat/mention-label branch December 3, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants