Project

General

Profile

Actions

Patch #25775

closed

Show assignee's icon in addition to author's icon

Added by Go MAEDA over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
UI
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

In current versions of Redmine, author's icon is displayed in the upper left corner of issues if "Use Gravatar user icons" setting is enabled.

I think it would be very useful if we can see assignee's icon in addition to author's icon because who is the person in charge is important information to manage projects.

Currently we can see very small (14px) assignee's icon in "Assignee" field but it is not noticeable. If attached patch (0001-Show-assignee-s-icon-in-addition-to-author-s-icon.patch) is applied, assignee's icon will be much noticeable and we can easily know current assignee.

screenshot


Files

assignee-icon-with-author-icon@2x.png (90.3 KB) assignee-icon-with-author-icon@2x.png screenshot Go MAEDA, 2017-05-06 07:58
0001-Show-assignee-s-icon-in-addition-to-author-s-icon.patch (1.52 KB) 0001-Show-assignee-s-icon-in-addition-to-author-s-icon.patch patch Go MAEDA, 2017-05-06 07:59
25775-test.patch (1.01 KB) 25775-test.patch Patch for test (issue controller and UI) Akiko Takano, 2017-05-08 01:17
0001-Show-assignee-s-icon-in-addition-to-author-s-icon.patch (1.56 KB) 0001-Show-assignee-s-icon-in-addition-to-author-s-icon.patch patch (compatible with redmine_local_avatars plugin) Go MAEDA, 2017-05-08 09:23
25775-ui-test.patch (1.46 KB) 25775-ui-test.patch Akiko Takano, 2017-05-08 13:52

Related issues

Related to Redmine - Feature #19648: Ability to show the Issue Assigne avatar instead of Author avatarClosed

Actions
Related to Redmine - Patch #26689: Add title to author's and assignee's icon ClosedJean-Philippe Lang

Actions
Related to Redmine - Defect #26699: Anonymous user should have their iconClosed

Actions
Actions #1

Updated by Go MAEDA over 7 years ago

  • Related to Feature #19648: Ability to show the Issue Assigne avatar instead of Author avatar added
Actions #2

Updated by Akiko Takano over 7 years ago

i’ve just tried above patch and it works fine. (Including responsive layout).
Since I made simple test for this patch, I hope this would be any help.

BTW, I’m using not Gravatar but local avatar plugin to display avatars, https://github.com/ncoders/redmine_local_avatars.
It seems this plugin does not append / override class setting, such as "gravatar-child" to second avatar icon (for assignee), so that icon for assignee does not appear at the expected position. (Not Lower right, but Upper right)

Of course, this is plugin’s reason, but if you could, please apply the same style to div.gravatar-with-child > img:nth-child(2).

hg diff public/stylesheets/application.css
diff -r f5c7cc60ead2 public/stylesheets/application.css
--- a/public/stylesheets/application.css    Tue Apr 25 17:44:08 2017 +0000
+++ b/public/stylesheets/application.css    Mon May 08 08:14:29 2017 +0900
@@ -1313,6 +1313,18 @@
   margin: 0 6px 0 0;
 }

+div.gravatar-with-child {
+  position: relative;
+}
+
+img.gravatar-child, div.gravatar-with-child > img:nth-child(2) {
+  position: absolute;
+  top: 30px;
+  left: 30px;
+  border-radius: 20%;
+  border: 2px solid rgba(255, 255, 255, 0.9);
+}

Sorry, I failed to attach the patch for UI test. I'll attache it later.

Actions #3

Updated by Go MAEDA over 7 years ago

Akiko-san, thank you for adding tests and pointing out redmine_local_avatars plugin.
I have updated patch. Now it is compatible with the plugin.

Actions #4

Updated by Akiko Takano over 7 years ago

Maeda-san, thank you for picking up my request.
As I wrote above, attach an additional ui test, I’m glad if this would be help for reviewing or release planning.
(I tested with using Chromedriver and PhantomJS)

Sincerely,

Go MAEDA wrote:

Akiko-san, thank you for adding tests and pointing out redmine_local_avatars plugin.
I have updated patch. Now it is compatible with the plugin.

Actions #5

Updated by Go MAEDA over 7 years ago

  • Target version set to 3.4.0

I am sure that this feature is useful for most users. And the feature got many likes on Twitter: https://twitter.com/g_maeda/status/861485901389504512

Let's merge this feature into trunk along with tests by Akiko Takano. Setting target version to 3.4.0.

Actions #6

Updated by Marius BĂLTEANU over 7 years ago

Just a note regarding the tests, IMHO, there are no reasons to have UI tests with PhantomJS (which are slower) for this feature. The same assertions can be made as well in a functional test.

Actions #7

Updated by Akiko Takano over 7 years ago

Marius, thanks for your comment.

The same assertions can be made as well in a functional test.

Sorry, since I do not know what kind of test is required, I uploaded both types of test.
Looking forward to the next release.

Actions #8

Updated by Marius BĂLTEANU over 7 years ago

Akiko Takano wrote:

Sorry, since I do not know what kind of test is required, I uploaded both types of test.
Looking forward to the next release.

Ah, sorry, I didn't see the functional tests from 25775-test.patch. They look good to me.

Actions #9

Updated by Jan from Planio www.plan.io over 7 years ago

I think this feature would be a great UI improvement!

Actions #10

Updated by Vasili Korol over 7 years ago

It would be very nice to have this feature. Sometimes users mistake the author's avatar for the assignee.

Actions #11

Updated by Jean-Philippe Lang over 7 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang

Patch is committed with fixed functional tests. UI tests are not appropriate for this indeed.
I've also removed the duplicate assignee avatar to clean up the display.
Thanks.

Actions #12

Updated by Marius BĂLTEANU over 7 years ago

  • Related to Patch #26689: Add title to author's and assignee's icon added
Actions #13

Updated by Go MAEDA over 7 years ago

  • Related to Defect #26699: Anonymous user should have their icon added
Actions

Also available in: Atom PDF