プロジェクト

全般

プロフィール

Vote #78448

完了

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

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
119
issue_org_id:
25775
author_id:
332
assigned_to_id:
1
comments:
13
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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 (attachment: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.

!{border: 1px solid #ccc;}.assignee-icon-with-author-icon@2x.png!


journals

--------------------------------------------------------------------------------
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).
<pre><code class="diff">
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);
+}

</code></pre>

Sorry, I failed to attach the patch for UI test. I'll attache it later.
--------------------------------------------------------------------------------
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.

--------------------------------------------------------------------------------
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.

--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
I think this feature would be a great UI improvement!
--------------------------------------------------------------------------------
It would be very nice to have this feature. Sometimes users mistake the author's avatar for the assignee.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,19648,Ability to show the Issue Assigne avatar instead of Author avatar
relates,Closed,26689,Add title to author's and assignee's icon
relates,Closed,26699,Anonymous user should have their icon

Admin Redmine さんが約4年前に更新

  • カテゴリUI_10 にセット
  • 対象バージョン3.4.0_119 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0