mediawiki-skins-MinervaNeue/includes/Skins
Martin Urbanec 0109b17483 watchlist: Don't assume only named users have watchlist access
In I1ccda3878a658d4251429ae65ebee04c09d81243, core decided
to technically allow temp. users to have watchlist access,
but have it disabled on permission level
(viewmywatchlist / editmywatchlist) instead of by isNamed() checks.

Minerva expects the watchlist permissions to be assigned to everyone,
but actual watchlist access to be available only to named user.
This is an incorrect assumption. Make a clear difference between
"page is watchable" concept (watch icon should show) and "user has
permission to watch" (if not, CTA to log in should show).

There is one additional step to fix, which is ensure
temp users receive the T330518 drawer. That is not a bug
in MinervaNeue, but in core -- mediawiki.page.watch.ajax.js uses
e.stopPropagating(), which means Minerva's CtaDrawer doesn't get
a say. Ideally, mediawiki.page.watch.ajax.js would know whether
the user has permissions to edit their watchlist. Alternatively,
it could have an interface to allow extensions to add their own
error handling. See T344925 for details.

Bug: T344870
Change-Id: Id1757fb4fb433fe39cf4d5c6e1e9c65ab5abae14
2023-08-24 14:12:43 +00:00
..
PageActionsMenu [Icons] Use Button template in PageActionsMenu. 2023-08-10 19:27:44 +00:00
ToggleList [Icons] Use Button template in PageActionsMenu. 2023-08-10 19:27:44 +00:00
banners.mustache Remove MinervaTemplate class 2021-11-12 11:39:58 -07:00
Button.mustache Echo uses Button template 2023-08-08 15:44:38 +00:00
footer.mustache Add languages to Minerva HTML 2023-03-17 20:37:32 +00:00
footerItemList.mustache Simplify footer and logo generation 2020-10-16 23:41:34 +00:00
Header.mustache Echo uses Button template 2023-08-08 15:44:38 +00:00
history.mustache [Icons] Convert history/next status bar icons to Codex 2023-07-28 16:56:24 -07:00
Icon.mustache Redo icon sizing 2023-08-11 17:08:28 +00:00
IconLegacy.mustache Remove icons from about and disclaimer link and minerva-icon class 2023-08-11 11:56:08 -07:00
LanguageSection.mustache Add languages to Minerva HTML 2023-03-17 20:37:32 +00:00
Logo.mustache Restore title to mobile skin without logo 2021-10-21 15:16:14 +00:00
menu.mustache Fix namespace of SkinUserPageHelper 2020-05-01 02:29:54 +01:00
menuGroup.mustache [Icons] Use Button template in PageActionsMenu. 2023-08-10 19:27:44 +00:00
PageActionsMenu.mustache Move components files up one level into Skins directory 2021-10-22 18:45:38 +00:00
SearchBox.mustache [Icons] Main menu, secondary actions and search icon are built via templates 2023-08-01 14:21:11 -07:00
skin.mustache [Icons] Main menu, secondary actions and search icon are built via templates 2023-08-01 14:21:11 -07:00
SkinMinerva.php watchlist: Don't assume only named users have watchlist access 2023-08-24 14:12:43 +00:00
SkinUserPageHelper.php build: Remove unneeded newline from one line condition 2023-08-22 21:46:03 +02:00
ToggleList.mustache Move components files up one level into Skins directory 2021-10-22 18:45:38 +00:00