wikimedia / mediawiki-gadgets-RTRC

Mirror of https://gerrit.wikimedia.org/g/mediawiki/gadgets/RTRC.
https://meta.wikimedia.org/wiki/RTRC
MIT License
26 stars 11 forks source link

Send notification on new edits #26

Closed Krinkle closed 7 months ago

Krinkle commented 10 years ago

When monitoring a wiki in the background, it would be useful to notify the user in some fashion if the tab is in the background.

For example, we can add a symbol or number to the window title.

We could additionally make use of the HTML5 Notifications API and send notifications to the browser itself which are then replaced with successive edits (never showing more than 1). This provides a richer user experience than page titles (more visible, especially if you have lots of tabs open, the tab label is essentially just an icon, windows on other monitors, overlapping windows, ..).


Imported from meta.wikimedia.org:

The RTRC tool is really a masterpiece of JavaScript here. I have a minor suggestion: I've mostly got the tool in a new tab in my browser. Would it be able to change the tab title to a sort of notification like: "(1 pending changes) RTRC: simplewiki" whenever an edit arrives? That would be very useful.