gkoberger / BugzillaJS

A userscript that adds additional functionality to bugzilla
https://addons.mozilla.org/en-US/firefox/addon/bugzillajs/
43 stars 18 forks source link

Feature: visually differentiate users from same organisation #123

Open andreasstieger opened 8 years ago

andreasstieger commented 8 years ago

As a user of a Bugzilla instance to which external users have access in various degree, I would like to be able to visually differentiate a bugzilla user organization when using BugzillaJS, in addition to Gravatar. That is to quickly establish which business partner I am dealing with.

To that end, extract the domain part of the user's e-mail address and display that icon. E.g. user@example.com is converted into http://example.com/favicon.ico

Intel BMW IBM DoD Kernel

The image should be scaled to 16x16 by setting the appropriate size parameters. The image should come with alt/title attributes containing the user's e-mail address. The user should be able to enable/disable the option via BugzillaJS settings. This should be shown for comments, next to the Gravatar. This should be an option for bug assignees and other user roles.

Extracting <link rel="icon" is probably out of scope.

mnoorenberghe commented 8 years ago

Interesting idea, how would you want to handle public webmail providers (e.g. Gmail/Hotmail/Yahoo Mail, etc.)? Would you still want the favicon shown?

andreasstieger commented 8 years ago

Hmm, yes. But maybe I bashed forward with an implementation detail (favicon) which may not be necessary.

We could take it back one step:

A user would need to be able to differentiate recognized organizational users (multiple, configurable domains).

[X] Mark users from following e-mail domains as being from your organization:
      [ example.com, example.net ]

For that a single visual difference would suffice.