Repository navigation
feat(backlog): @mentions in task comments - #36
Merged
Merged
Conversation
Typing @ in the comment box suggests people who can see the task. Mentions are stored as user ids and shown as highlighted names. The mentioned user gets an in-app notification (one, even if also watching) and starts watching the task when watchers are on. Optional Mention chat event per project channel and an inactive Mentioned e-mail template. Mentioning yourself, a non-member or someone who can't see the task does nothing. Closes #14
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What and why
Closes #14.
To pull someone into a task, people copied the link into chat by hand. Now you type
@in the comment box and pick them.@[userId]in the plain-text comment and rendered as highlighted names on display, so they follow renames. Names replace tokens wherever comment text leaves the panel: notifications, chat, and comments pushed to GitHub/GitLab issues.The "who can see this task" query now lives in one
ITaskViewerServiceused by both watchers and mentions.Upgrade notes
sql-scripts/02_defaults.sql(Docker does this) for the inactive Mentioned e-mail template, and03_locale.sqlfor 3 new labels.How it was tested
dotnet build src/Taskist.slnanddotnet test src/Taskist.slnpass: 455 tests, 13 new inMentionTextTests.Checklist
dotnet build src/Taskist.slnanddotnet test src/Taskist.slnpasssql-scripts/03_locale.sqlsql-scripts/02_defaults.sql(no menu or permission; the new e-mail template is seeded there)ViewBag/ViewData, no comments in.csfilesMentionCandidatesrequires the Backlog permission andCanViewTaskAsync