Last modified: 2013-07-18 10:18:12 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 T50502, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48502 - Add mw.hook for when notifications have been shown
Add mw.hook for when notifications have been shown
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Echo (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Matthew Flaschen
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-15 08:05 UTC by Matthew Flaschen
Modified: 2013-07-18 10:18 UTC (History)
4 users (show)

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


Attachments

Description Matthew Flaschen 2013-05-15 08:05:49 UTC
It would be nice if power users could modify their Echo notifications on the client side.  For example, the link notification does not link to either of the main pages in question, just Whatlinkshere.  Power users may want to add these links.

This is more complicated than a typical user script since the notifications are fetched from the server every time you show the overlay.

Adding a hook for after notifications are shown would provide a user script extensibility point.  This should fire after the overlay is built and after Special:Notifications is shown, so both can be tweaked the same way.

mw.hook (https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.hook) seems like a good tool for this.
Comment 1 Matthew Flaschen 2013-05-16 03:28:04 UTC
I added a hook for the overlay at https://gerrit.wikimedia.org/r/64015 .  Since the notifications on Special:Notifications actually have different formatting, that hook should probably be different.
Comment 2 Matthew Flaschen 2013-07-18 10:18:12 UTC
Merged.

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


Navigation
Links