NOTE: banner will be split out by Olga into new task: T228516
[[ https://en.wikipedia.org/wiki/Special:RecentChanges | Special:RecentChanges ]] (as well as [[ https://en.wikipedia.org/wiki/Special:Watchlist | watchlist ]]) have an option to view "grouped" changes.
This option reformats the list and groups results by page.
This option is ill-suited for mobile because it uses a table-based layout (as well as hard-coded whitespace characters 🤨), which cannot be modified to fit on mobile devices.
**Therefore, the "group results by page" option should be disabled on mobile. **
But by disabling this option on mobile, we are also //overriding a user preference// 😱
To ensure users who have this option enabled (surely advanced editors) aren't surprised or think it's broken, **we should display a banner on the page informing users that grouped results have been disabled on mobile.**
== Developer notes
The "grouped" view is referred to as EnhancedChangesList.php in MediaWiki core. The [[ https://gerrit.wikimedia.org/g/mediawiki/core/+/4677b12af9bcef1561135cce562a6b35fb42af1c/includes/changes/ChangesList.php#90 | ChangesList.php ]] class in core provides a `FetchChangesList` hook on which we can use to override the instantiation of `EnhancedChangesList`. We should place this hook in mobileFrontend, and it should do two things: 1. `$list = new OldChangesList( $context)` 2. `return false`.
- [ ] The option to "group results by page" is removed from the Recent changes filters
- [ ] If a user has the "group changes by page" preference selected, we still show the "old" results on mobile
- [ ] If the url param `enhanced=1` is entered in the RecentChanges page, we still show the "old" results on mobile.
- [ ] In the above two cases, we also show a banner near the results informing the user that this option has been disabled on mobile.