@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.
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Add a demo special page to Echo notifications | mediawiki/extensions/Echo | master | +1 K -0 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T115551 Create a notification demo page | |||
Resolved | Mooeypoo | T115419 OOUI widgets for new notification design |
Event Timeline
Change 247017 had a related patch set uploaded (by Mooeypoo):
[WIP^n] Create a notifications widget demo
Change 254612 had a related patch set uploaded (by Mooeypoo):
[wip] Add a demo special page to Echo notifications
Now that we have a proper Special:Notifications page with filters, this is no longer needed.
Change 254612 abandoned by Mooeypoo:
Add a demo special page to Echo notifications
Reason:
No longer relevant.
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.
Might that be ok at beta cluster? I'm happy with whatever solution requires the least development time!