Last modified: 2013-09-23 22:04:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T48585, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46585 - Wikipedia icon is shown for other sites
Wikipedia icon is shown for other sites
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Echo (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Ryan Kaldari
:
: 47650 50638 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-26 21:39 UTC by Matthew Flaschen
Modified: 2013-09-23 22:04 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matthew Flaschen 2013-03-26 21:39:07 UTC
The Wikipedia icon is shown when you sign up for other sites (e.g. MediaWiki.org).  This is because the 'w' icon (modules/icons/W.png) is hard-coded to Wikipedia.

A simple approach to fixing this is to use the favicon, but there are other ways to do it.
Comment 1 bsitu 2013-04-13 00:38:59 UTC
Probably we should just use a better icon for signup, I don't see how a W icon is related to signup, there is also a placeholder icon for default.
Comment 2 Ryan Kaldari 2013-04-15 17:40:43 UTC
CCing the designer.
Comment 3 Vibha Bamba 2013-04-15 18:39:06 UTC
Im not sure what the context of the bug is.
Can you please explain which primary instance you are referring to/ add a screenshot or something?
Comment 4 Ryan Kaldari 2013-04-15 19:05:13 UTC
For example, when someone creates a new account on MediaWiki.org, they get a Welcome notification. The Welcome notification, like all system notifications, shows a "W" icon next to it. The "W" icon isn't appropriate in the context of MediaWiki.org since MediaWiki.org has it's own logo that doesn't involve any Ws. I was thinking that we could implement 2 possible solutions:

1. Just use a generic 'info' icon for all system messages on all wikis and get rid of the 'W' icon.

2. Use a generic 'info' icon for all system messages by default, but override this with a 'W' icon on English Wikipedia and possibly provide overrides for other wikis as well.

3. Figure out a way to use each wiki's logo as the icon for system messages.

Vibha: Which of these would be your first choice? Which would be your second choice?
Comment 5 Vibha Bamba 2013-04-15 20:16:58 UTC
Foremost: the point of Notifications is to increase engagement and editing on WIKIPEDIA. So if identity and context on Wikipedia are compromised for other projects, it will be a very shortsighted approach to the problem and will defeat some of our larger purposes.

First choice is 2 > 
Use the W as a default symbol. 
Other projects can over-ride the W 
as long as over-riding icons employ the right size.
ICON SIZE is critical here, else it will break the hierarchy of information.

Next Option is 3, which I assume is more work.

Option 1 is not an option. Informational messages can be really confusing in a notifications stack, why are they temporal. This solution also doesn't scale cognitively, Welcome is not just informational, its very much about brand and signup acknowledgement.
Comment 6 Matthew Flaschen 2013-04-26 22:53:14 UTC
*** Bug 47650 has been marked as a duplicate of this bug. ***
Comment 7 Matthew Flaschen 2013-04-27 02:47:17 UTC
(In reply to comment #5)
> Foremost: the point of Notifications is to increase engagement and editing on
> WIKIPEDIA. So if identity and context on Wikipedia are compromised for other
> projects, it will be a very shortsighted approach to the problem and will
> defeat some of our larger purposes.

No one is suggesting Wikipedia not be able to show their icon.  However, I don't think there's a reason to *only* allow Wikipedia to.

And people are already having issues with the default icon currently in use.  But any default site icon is probably not going to work for all sites.  And it looks like no one has changed wmf-config to put the Wikipedia icon there even on Wikipedia.  Hence, reopening.

Here's one way to do option 3:

1. Have a variable for the path a 30x30 site icon (like the favicon, but with the right dimensions).
2. Use that vaiable on all sites (including of course the Wikipedias).
3. Use img tags instead of a background-image for the icons (allows changing the URL without needing a new CSS ruleset).  This will help make this simpler, and also make it easier for other extensions to extend Echo.  See https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/GettingStarted.git;a=blob;f=resources/ext.gettingstarted.echo.css;h=187c55b3a8e7fc354aa8ee5bb2e58eb72c15a53e;hb=refs/heads/master .   If it uses an img tag, we can just pass that in.

I already played around with it.  A float: left and appropriate margin should do the trick.  I can help implement this if you want.

The only part that requires some care is coordinating deployment of any other extensions to Echo that use their own icon classes (e.g. GettingStarted above).
Comment 8 Ryan Kaldari 2013-04-27 06:44:41 UTC
Due to the very limited amount of time available and the low priority of this bug, I was planning on just implementing the solution described in bug 47662 (option 2). If you'd like to implement option 3 instead, I won't object :) I suppose you could have a reserved key for the icon parameter called 'site' that is handled differently than all the other icons. Just make sure it works in monobook or some people will not be happy.
Comment 9 Matthew Flaschen 2013-04-27 07:56:34 UTC
I can take it, as long as you're okay with me changing the icons to use img tags.
Comment 10 MZMcBride 2013-04-27 15:22:02 UTC
(In reply to comment #5)
> Foremost: the point of Notifications is to increase engagement and editing on
> WIKIPEDIA. So if identity and context on Wikipedia are compromised for other
> projects, it will be a very shortsighted approach to the problem and will
> defeat some of our larger purposes.

Hurrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr.
Comment 11 Gerrit Notification Bot 2013-04-29 03:44:05 UTC
Related URL: https://gerrit.wikimedia.org/r/61341 (Gerrit Change Ifc02b653d07de19229dfb2604305e32f3bd595fe)
Comment 12 Gerrit Notification Bot 2013-04-29 03:47:47 UTC
Related URL: https://gerrit.wikimedia.org/r/61342 (Gerrit Change I84c7a92917f7a14e865a6a4bc9aff643f7cfba77)
Comment 13 Gerrit Notification Bot 2013-04-29 04:49:43 UTC
Related URL: https://gerrit.wikimedia.org/r/61343 (Gerrit Change I2c8c086fb5f4a6c5618039908fed188522c864c5)
Comment 14 Gerrit Notification Bot 2013-04-29 04:54:22 UTC
Related URL: https://gerrit.wikimedia.org/r/61344 (Gerrit Change I0f15498ab1fba239bce141b178340a9d9984bedf)
Comment 15 Matthew Flaschen 2013-04-29 05:02:47 UTC
The first (61341) is the main change (everything else relies on that).  It basically makes the icons img tags (rather than background-images), which makes it easier to customize, both for other extensions and the site.

To customize it for a site, it's just:

$wgEchoNotificationIcons['site']['url'] = "some url";

This can be incorporated into the WMF's wiki-specific config as well, so every wiki can get its own icon.

It also lets other extensions add icons easily without changing CSS.  The icons are passed into the BeforeCreateEchoEvent hook in a new parameter.

None of the other two extensions I know of extending Echo (PageTriage and Thanks) define any new icons, so I just added the new hook parameter.

For a live example with the changes, see http://piramido.wmflabs.org/ .  If you sign up and confirm an email, you can see both a built-in icon and one defined by GettingStarted.
Comment 16 MZMcBride 2013-04-29 05:26:39 UTC
(In reply to comment #15)
> For a live example with the changes, see http://piramido.wmflabs.org/ .

Easier link: <http://piramido.wmflabs.org/wiki/Special:CreateAccount>.
Comment 17 Matthew Flaschen 2013-04-29 06:18:05 UTC
Main change, Thanks, and PageTriage merged.

I'll queue up the wmf-config change.
Comment 18 Gerrit Notification Bot 2013-04-29 06:39:46 UTC
Related URL: https://gerrit.wikimedia.org/r/61348 (Gerrit Change I4b14d22c624b6d63bfd97a3b09e7ef98d5a47bab)
Comment 19 Gerrit Notification Bot 2013-04-29 06:43:17 UTC
Related URL: https://gerrit.wikimedia.org/r/61349 (Gerrit Change Ic0e29cf8284efc87e2ce67434a5d7984ee760659)
Comment 20 Matthew Flaschen 2013-04-29 06:44:56 UTC
61348 is the wmf-config change (for when the Echo one is deployed).  It still needs a MW icon, since I was having trouble finding the right one to scale.

61349 removes the unused W.png (meant to do that in the main Echo commit).
Comment 21 Krinkle 2013-07-03 05:26:11 UTC
*** Bug 50638 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links