In Minerva, the settings don't appear in-context on an article page. The settings are a full page on their own. As a result, we need to give system feedback when a user visits a relevant page, and we don't need the explainer text in the settings themselves.
We should show a "toast" when a user visits a page where the night mode setting (T355705).
QA
As a logged in user
- On Special:MobileOptions select night mode and visit a page where night mode has been disabled
Expected: I see a notification.
- On Special:MobileOptions select automatic mode, and select night mode in your operating system settings and visit a page where night mode has been disabled
Expected: I see a notification.
- On Special:MobileOptions select automatic mode, and select day mode in your operating system settings and visit a page where night mode has been disabled
Expected: I see NO notification.
- On Special:MobileOptions select day mode and visit a page where night mode has been disabled
Expected: I see NO notification.
- With night mode enabled go to to https://patchdemo.wmflabs.org/wikis/81314f1b10/wiki/New_York
Expected: I see NO notification and theme is night mode.
Repeat the above for an anonymous user.
Developer notes
- Detect the page was disabled e.g. check HTML element for a class
- Call mw.notify when the class is detected.
QA Results - Beta (patchdemo)
AC | Status | Details |
---|---|---|
1 | ✅ | T356653#9552468 |
2 | ✅ | T356653#9552468 |
3 | ✅ | T356653#9552468 |
4 | ✅ | T356653#9552468 |
5 | ✅ | T356653#9552468 |
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ✅ | T356653#9573791 |
2 | ✅ | T356653#9573791 |
3 | ✅ | T356653#9573791 |
4 | ✅ | T356653#9573791 |
5 | ✅ | T356653#9573791 |