Feature #39528
closedChange mention link color for users without access to view issues
Description
I propose a feature enhancement for better visibility regarding user permissions and mention notifications. Currently, when a user who does not have the permission to view a particular issue is mentioned, they do not receive a mention notification email. However, this is not visually apparent since the mention link looks identical to others, potentially leading to confusion over whether a notification was sent.
To improve clarity, I suggest altering the background color of mention links for users who cannot view the issue. This visual cue would instantly inform others that the mentioned individual may not be notified due to permission restrictions.
Files
Related issues
Updated by Mizuki ISHIKAWA almost 3 years ago
- File feature-39528.patch feature-39528.patch added
- File screenshot.png screenshot.png added
After applying the attached patch, the background colour of the mentions link changes according to access rights as follows.
Updated by Mizuki ISHIKAWA almost 3 years ago
- File feature-39528.patch feature-39528.patch added
Minor bugs fixed.
And I created an additional issue because I thought it was likely that just changing the colour in this issue would not convey the intention. (#39529)
Updated by Go MAEDA over 2 years ago
- Target version set to Candidate for next major release
Updated by Go MAEDA about 2 years ago
- Related to Feature #39529: Add tooltips for clarifying non-notifiable user mentions added
Updated by Marius BĂLTEANU over 1 year ago
- Related to Feature #13919: Mention user on issues and wiki pages using @user with autocomplete added
Updated by Marius BĂLTEANU 7 months ago
- Target version changed from Candidate for next major release to 7.0.0
Updated by Marius BĂLTEANU 7 months ago
I've moved the user mention code into its own method link_to_mention.
Currently, we have four different visual states for user links:
1. @jsmith: User cannot view the mentioned user (Plain text).
2. @John Smith (blue background): User can view the mentioned user.
3. John Smith (no background): User is linked using user:jsmith syntax.
4. @John Smith (#F3EDD1 or other background): User can view the mentioned user, but the mentioned user cannot view the object (Proposed in this issue).
What if we simplify this and show the user with no background by default? We could then change the condition to apply the --oc-blue-0 background only when the mentioned user has access to see the object. This would provide a clear visual distinction without adding a fourth color/state.
Before finalizing this, I’ll run performance tests. Last year, Jean-Philippe mentioned that the mention feature was slowing down redmine.org, which led to changing many links from @login to user:#id. I want to see how each change related to this feature impact the performance
Updated by Marius BĂLTEANU 7 months ago
- Related to Feature #4179: Link to user in wiki syntax added
Updated by Marius BĂLTEANU 2 months ago
- Target version changed from 7.0.0 to 7.1.0
Updated by Marius BĂLTEANU 10 days ago
- File clipboard-202608310923-ojvns.png clipboard-202608310923-ojvns.png added
- Status changed from New to Resolved
- Resolution set to Fixed
user-current: applied when the mentioned user is the current logged-in user.user-mentionable: applied when the mentioned user has permission to view the target object.
Mentions of users without access to the object fall back to the standard user link style without the mention highlight.

Updated by Marius BĂLTEANU 10 days ago
States Overview¶
| State / Condition | CSS Classes | Color / Style | Description |
|---|---|---|---|
| Mentionable User (has view permission) | user-mention user-mentionable |
Light-blue background (--oc-blue-0) |
Highlighted mention style. User is notified. |
| Current User Mentioned | user-mention user-current user-mentionable |
Orange background (--oc-orange-1) |
Distinct highlight for the logged-in user (ensures contrast on both white notes and yellow issue boxes). |
| Non-mentionable User (no view permission) | user-mention |
Default link (no background) | Plain link style. User is not notified. |
Standard User Link (via user:login) |
user |
Default link (no background) | Standard user profile link without mention styling. |
Updated by Marius BĂLTEANU 3 days ago
- Related to Patch #44423: Improve performance when formatting user mentions added