@mentions plugin for Wax editor (for use on vendors queries tab)
Context
The main purpose of the Vendor queries tab (original dev in #216 (closed)) is for NCBI Sys Admins and PDF2XML Vendors to discuss queries about xml tagging. These uses need to @mention each other to receive email notifications.
Dev
The vendor issues tab uses the Wax editor which doesn't yet support @mentions. See the related issue in Wax repo (wax/wax-prosemirror#32 (closed))
QA steps
- Create users with the roles of 'Sys Admins', 'Org Admins', 'PDF2XML Vendor'
- Create PDF chapter processed book
- Upload book component, go to book component page
- On issues tab create a new issue.
- Type @ on the comments for the issue, you will see a drop down of roles first and then all the usernames of users which have one of the roles from step 1. (if there are users with this roles)
- If you mention a group like 'Sys admins' all the users on the app which are sysadmins (and have notifications on for the organization) will get an email. If you mention Org Admins all the users which have the role in this org will get the email.
- If you mention an individual user they will get a separate email.
- Create PDF Wholebook and repeat steps from 3-7