Skip to content

feat: add mention users for TipTap - #3060

Merged
tammi-23 merged 6 commits into
mainfrom
issues/3012
Sep 7, 2026
Merged

tammi-23 merged 6 commits into
mainfrom
issues/3012

Conversation

@tammi-23

Copy link
Copy Markdown
Contributor

This will add #3012

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we want to highlight the mentioned users with a special color, like on tiptap.dev?

Image

Comment thread packages/web-pkg/src/composables/mentions/useMentionUsers.ts Outdated
Comment thread packages/web-app-text-editor/src/App.vue Outdated
Comment thread packages/web-pkg/src/composables/mentions/useMentionUsers.ts
Comment thread packages/web-pkg/src/components/AppTemplates/AppWrapper.vue Outdated
@AlexAndBear

Copy link
Copy Markdown
Member

Do we want to highlight the mentioned users with a special color, like on tiptap.dev?

Image

Yes 馃檶

@fschade

fschade commented Aug 13, 2026

Copy link
Copy Markdown
Member

@tammi-23, FYI: opencloud-eu/libre-graph-api#64

SRY

The mention notification moved from `POST /collaboration/notify` to
`POST /v1.0/users/{user-id}/teamwork/sendActivityNotification`. That
endpoint takes a single recipient, so every mentioned user gets its own
request and only the recipients that failed are kept for the next retry.

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A few issue I noticed:

  1. The own name is missing the highlight. For alan it looks like this after getting notified:
Image
  1. When you type @, select a user, remove the line again and then save, the user still gets a notification.

  2. Should we limit the functionality to ocnote and md? I don't think you want to mention users e.g. in a code document. The same inside code blocks, I think we should disable it as well for that.

Comment thread packages/web-pkg/src/editor/components/MentionMenu.vue Outdated
Comment thread packages/web-pkg/src/editor/types.ts Outdated
Comment thread packages/web-pkg/src/editor/extensions/mentions.ts Outdated
Comment thread packages/web-app-text-editor/src/App.vue Outdated
@tammi-23
tammi-23 requested a review from JammingBen September 4, 2026 09:11

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good! 馃殌

@tammi-23
tammi-23 merged commit 71036d8 into main Sep 7, 2026
31 checks passed
@tammi-23
tammi-23 deleted the issues/3012 branch September 7, 2026 14:42
@openclouders openclouders mentioned this pull request Sep 7, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants