@MSchottlender-WMF had a great idea: we should build a demo page for notifications, similar to the OOUI widgets demo, based on the new widgets planned in T115419. This demo should exercise all the different options that the widgets provide for. Additionally (or separately), it would also be great to have a demo that shows examples of all notification types in existence; this might be tricky to generate automatically, but we could always hand-code the demo data to start with.
|mediawiki/extensions/Echo : master||Add a demo special page to Echo notifications|
Re-opening, I still think this would be useful to have.
(Either a page which demonstrates each variant,
or a way to trigger test notifications to myself so that I can easily see how variant-foo currently behaves. Simple is fine, even a userscript at betacluster would suffice!)
Hm. We could create a fake API response with a bunch of notifications - but it won't really reflect reality, since it's a fake API response and not a real one. That is, we will have to constantly update it whenever the API response changes in general, or it will start being inconsistent with the real reply.
And we can't really do a real API request, because that would requiring actually producing the notifications, which will pollute yours.
I am thinking if maybe we can have some fake user that we create notifications for, and then use that user's API output for some demo of how notifications are. Perhaps create some script that will periodically request that API response and update the demo with it.
I'm not sure what's the best way to do this is. The original idea of the demo was when we thought of supplying 2 versions of display (or something with beta features), so you cold look at your notifications with either version, but we're not offering that.