Page 1 of 1
User list available for comment mentions
Posted: Tue Jun 21, 2022 12:07 pm
by NicoAMP
Hello,
When a writer add a comment via review side panel in Oxygen Web Author, he can mention a user in his comment.
Is it possible to configure a list of available users to automatically suggest this list when @ is typed in comment text area?
If not, maybe someone already implement this kind of feature and can help me to start.
Thanks a lot for any help.
Regards,
Nicolas
Re: User list available for comment mentions
Posted: Tue Jun 21, 2022 6:32 pm
by mihaela
Hello,
For the moment there is not possible to provide a list of available users for mentions but I have added a feature request for this in our internal issues tracker. We wil update this thread when it will be available.
Best Regards,
Mihaela
Re: User list available for comment mentions
Posted: Fri Jul 01, 2022 10:10 am
by NicoAMP
Thanks Mihaela for your answer.
Regards,
Nicolas
Re: User list available for comment mentions
Posted: Tue May 27, 2025 10:44 pm
by dreifsnider
Hi Mihaela,
Was this ever implemented? My team is also investigating how we can automatically show a list of users when a user types "@" in a comment box.
We'd also like to auto-match on a user name based on what name is typed, similar to Google Docs.
For what it's worth, we're using GitHub and we're hoping we can present a list of user names captured from our GitHub instance.
Thanks,
Daniel
Re: User list available for comment mentions
Posted: Tue May 27, 2025 10:47 pm
by dreifsnider
I forgot to add that we are also interested if it would be possible to add this functionality using the API or Oxygen SDK.
We have a Java Developer who is able to extend existing functionality so we're curious if this would be possible.
Thank you!
Daniel
Re: User list available for comment mentions
Posted: Thu May 29, 2025 10:48 am
by Bogdan Dumitru
Hi Nicolas,
We have an internal issue tracker for adding API support for user mentions in review comments, and we're currently considering addressing it in version 28. The idea is to introduce a JavaScript API class or method that applications can use to fetch a list of usernames, which could then be used to show suggestions when typing "@".
However, if you'd prefer not to wait for version 28, you could implement a plugin that replaces the built-in "Add Comment" and "Edit Comment" dialogs with your own custom version. This would give you full control and allow you to implement mention suggestions as users type "@".
Let us know if you're interested in exploring this approach—we’d be happy to help you get started with replacing the default dialog.
Re: User list available for comment mentions
Posted: Thu May 29, 2025 8:22 pm
by alepach56
Hi Bogdan,
We would be interested in exploring the approach that you mentioned, but we do have a few questions. How should we proceed with replacing the built in "Add Comment" and "Edit Comment" dialogs with our own custom version? Are you indicating all the comment functionality would need to be replaced, or just part of the dialog that processes the comment being typed?
Thank you,
Alejandro
Re: User list available for comment mentions
Posted: Fri May 30, 2025 6:46 pm
by Bogdan Dumitru
Hello,
I'm suggesting to replace just the dialog that is presented to the user, not the whole commenting functionality.
One way to replace the dialog is to add a JavaScript that overrides the
sync.actions.review.AddCommentAction.prototype.retrieveCommentFromUser = function() {
let initialComment = this.getInitialComment();
// TODO show a dialog using workspace.createDialog() and return a promise that resolves to an object with 3 properties "content", "okChosen" and "escPressed":
// @property {String} comment The concurrent update.
// @property {boolean} okChosen true if the user chose the ok action.
// @property {boolean} escPressed true if the ESC key was pressed when the dialog was opened.
};
and for edit you have to override the same function but from the sync.actions.review.EditCommentAction class.
What do you think about this temporary solution?