Project

General

Profile

Actions

Feature #39528

open

Change mention link color for users without access to view issues

Added by Mizuki ISHIKAWA over 2 years ago. Updated 21 days ago.

Status:
New
Priority:
Normal
Category:
Text formatting
Target version:
Resolution:

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

feature-39528.patch (1.48 KB) feature-39528.patch Mizuki ISHIKAWA, 2023-11-08 08:15
screenshot.png (60.2 KB) screenshot.png Mizuki ISHIKAWA, 2023-11-08 08:15
feature-39528.patch (1.49 KB) feature-39528.patch Mizuki ISHIKAWA, 2023-11-08 09:44

Related issues

Related to Redmine - Feature #39529: Add tooltips for clarifying non-notifiable user mentionsNewMarius BĂLTEANUActions
Related to Redmine - Feature #13919: Mention user on issues and wiki pages using @user with autocompleteClosedMarius BĂLTEANUActions
Related to Redmine - Feature #4179: Link to user in wiki syntaxClosedJean-Philippe Lang2009-11-08Actions
Actions #1

Updated by Mizuki ISHIKAWA over 2 years ago

After applying the attached patch, the background colour of the mentions link changes according to access rights as follows.

Actions #2

Updated by Mizuki ISHIKAWA over 2 years ago

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)

Actions #3

Updated by Go MAEDA about 2 years ago

  • Target version set to Candidate for next major release
Actions #4

Updated by Go MAEDA over 1 year ago

  • Related to Feature #39529: Add tooltips for clarifying non-notifiable user mentions added
Actions #5

Updated by Marius BĂLTEANU over 1 year ago

  • Assignee set to Marius BĂLTEANU
Actions #6

Updated by Marius BĂLTEANU 12 months ago

  • Related to Feature #13919: Mention user on issues and wiki pages using @user with autocomplete added
Actions #7

Updated by Marius BĂLTEANU 23 days ago

  • Target version changed from Candidate for next major release to 7.0.0
Actions #8

Updated by Marius BĂLTEANU 21 days 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

Actions #9

Updated by Marius BĂLTEANU 15 days ago

Actions

Also available in: Atom PDF