Patch #25775
closedShow assignee's icon in addition to author's icon
0%
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.
Files
Related issues
Updated by Go MAEDA over 7 years ago
- Related to Feature #19648: Ability to show the Issue Assigne avatar instead of Author avatar added
Updated by Akiko Takano over 7 years ago
- File 25775-test.patch 25775-test.patch added
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.
Updated by Go MAEDA over 7 years ago
- File 0001-Show-assignee-s-icon-in-addition-to-author-s-icon.patch 0001-Show-assignee-s-icon-in-addition-to-author-s-icon.patch added
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.
Updated by Akiko Takano over 7 years ago
- File 25775-ui-test.patch 25775-ui-test.patch added
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.
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.
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.
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.
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.
Updated by Jan from Planio www.plan.io over 7 years ago
I think this feature would be a great UI improvement!
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.
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.
Updated by Marius BĂLTEANU over 7 years ago
- Related to Patch #26689: Add title to author's and assignee's icon added
Updated by Go MAEDA over 7 years ago
- Related to Defect #26699: Anonymous user should have their icon added