[CoLab] Ability to edit/delete a chat message
The purpose of this task is to introduce chat controls to the Admin, Editor and Author discussion channels that support the ability for users to modify posts.
Users issues encountered to date;
- Editors tend to mistakingly post in the author discussion instead of the Editorial discussion channel. Currently, they are unable to delete a post made erroneously.
- When accessing the Manuscripts table or Manuscript page, users are unable to easily identify new posts made.
- Users are unable to reply to posts within context.
- Users are unable to edit existing posts - to correct typos or fix broken links etc.
UI;
- Figma board; elipisis menu and hover state
- Figma board; edit post from modal popup
- Figma board; edited post stamp
Acceptance criteria;
-
Chat posts highlight and display an ellipsis menu on hover for users who have posted a message. -
Admins should be able to see the ellipsis menu>Delete action only for each message posted to a thread (Admin users will need to be assigned a Group Manager role fo a respective group to be able to access all threads) -
Users can hover over a chat post, and select 'Edit' action from the ellipsis menu. Clicking on edit allows the user to edit the post in a modal popup and 'Save' to 're-post' the message. Users can only edit posts they have added to the channel. -
Insert text; 'Edited' for all edited messages -
Users can hover over a chat post, and select 'Delete' action from the ellipsis menu. On delete action, a confirm modal appears and the users have the option to; 'Are you sure you want to delete this message?' 'Confirm' or 'Cancel. Users can only delete posts they have added to the channel. An Admin
can delete any message.