Comment not highlighted when opening wiki page from todo mention link
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Comments are currently not highlighted when a user visits a wiki page through a To-Do list entry created by a user mention. A behavior like that exists in other mentionables like issues and merge requests.
The links in todos have an anchor link with a note id, e.g. <url>#note_1234 which can be used to identify the comment where the user mention happened.
Implementation guide
-
Check the components in
app/assets/javascripts/work_items/components/notesto find out how highlighting is performed in work items (these are used for MRs, issues, epics etc. They are similar, but use different components than wiki comments) -
Replicate the behavior as closely as possible within
app/assets/javascripts/wikis/wiki_notes -
add unit tests for the new behavior to the changed components spec files at
spec/frontend/wikis/notes