Skip to content

Conversation

@juliusknorr
Copy link
Member

  • Register default extensions first
  • Mentions: Also search for user id in the current active sessions

📝 Summary

The mentions plugin was not catching the keyboard events when being triggered in a list/todo item, so I moved the registration of optional plugins for the editor after the default ones, which seems to fix the issue (as found in ueberdosis/tiptap#3339)

In addition the autocomplete endpoint for mentions now also filters by user id when iterating over the active user sessions.

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests
  • Documentation (README or documentation) has been updated or is not required

@juliusknorr juliusknorr added bug Something isn't working 3. to review labels Nov 22, 2022
@juliusknorr
Copy link
Member Author

/backport to stable25

@cypress
Copy link

cypress bot commented Nov 22, 2022



Test summary

107 0 0 0Flakiness 4


Run details

Project Text
Status Passed
Commit 13c7f7a ℹ️
Started Nov 22, 2022 1:49 PM
Ended Nov 22, 2022 1:57 PM
Duration 07:31 💡
OS Linux Ubuntu -
Browser Electron 106

View run in Cypress Dashboard ➡️


Flakiness

workspace.spec.js Flakiness
1 Workspace > formats text
sections.spec.js Flakiness
1 Content Sections > Heading anchors > Anchor scrolls into view
links.spec.js Flakiness
1 test link marks > link preview > shows a link preview
FrontMatter.spec.js Flakiness
1 Front matter support > Reopen front matter

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

Copy link
Member

@marcelklehr marcelklehr 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

@marcelklehr
Copy link
Member

/compile

@marcelklehr
Copy link
Member

/compile

Copy link
Member

@mejo- mejo- 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 to me :)

@marcelklehr marcelklehr merged commit 038eff9 into master Nov 22, 2022
@delete-merged-branch delete-merged-branch bot deleted the bugfix/mention branch November 22, 2022 14:02
@backportbot-nextcloud
Copy link

The backport to stable25 failed. Please do this backport manually.

@mejo-
Copy link
Member

mejo- commented Nov 22, 2022

/backport bef86e9,daa717d39232998c83c25c2b19bf8b27c98e15e3 to stable25

@nickvergessen
Copy link
Member

Thanks a lot :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mentioning users does not work by user id and not in lists

6 participants