Commit graph

3695 commits

Author SHA1 Message Date
Translation updater bot 26a02cbe88 Localisation updates from https://translatewiki.net.
Change-Id: I286766ad2703d6789f5076c461a24edc6ee6b27f
2023-08-30 08:47:50 +02:00
bwang 0e391a87e0 Update addPortletLink for Codex
For testing make sure to check the 3 variants:
```
mw.util.addPortletLink('page-actions', '#', 'text' );
mw.util.addPortletLink('p-interaction', '#', 'text' );
mw.util.addPortletLink('p-personal', '#', 'text' );
```

Bug: T344006
Change-Id: Iad3a8d5ed1237c1438d170f07c9c3fe3784182fe
2023-08-29 19:27:56 +00:00
Translation updater bot 47b528c0e2 Localisation updates from https://translatewiki.net.
Change-Id: I49af1ab1ce47512d4920b0a2f9d2e33b7bacd368
2023-08-29 08:30:45 +02:00
Translation updater bot ad5129b02f Localisation updates from https://translatewiki.net.
Change-Id: I44a1735e38c0964bedc11fb9a45eaa8d509a89e7
2023-08-28 09:33:21 +02:00
bwang 7bbb240db1 Make menuGroup.mustache use togglelist classes, ensuring ToggleList HTML is consistent. Remove duplicated CSS
Bug: T343920
Change-Id: I567d20171b0e511d00922adf250f97b9b8ed146b
2023-08-25 17:57:47 +00:00
bwang c188fac106 Clean up setIcon now that classes and icon types are removed
Bug: T319260
Change-Id: I354dafd6bea92ef61f6d25b5943ef9d933daa2a0
2023-08-24 21:37:40 +00:00
Jon Robson 952789bc17 Switch Minerva button template to use Codex and remove mw-ui-button
- Removes 'mw-ui-icon-with-label-desktop' as that is now the default behavior for icon only buttons in Minerva
- Removes icon flushing classes, use codex mixins instead

80 Visual changes relating to minor icon/button subpixel changes in the heading, edit section links, and page actions

Bug: T319260
Change-Id: I503b643d33e43196483af4b5f9dd312237322ac8
2023-08-24 15:57:01 -05:00
bwang b66ac786d1 Prepare addPortletLink handler for Codex switchover
Change-Id: I33e541ab7b816640a63541ce719e094bb8f5d78e
2023-08-24 12:07:28 -05:00
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
Translation updater bot ad3c5b9c41 Localisation updates from https://translatewiki.net.
Change-Id: Iaffcbfd9df0e0bc98379cdd3d2beb6c7f4aa5e1d
2023-08-24 09:56:05 +02:00
Translation updater bot c37f1672fe Localisation updates from https://translatewiki.net.
Change-Id: I7de35fb03d8eb691b73aec4c4b4e4a6cdc5e8e60
2023-08-23 08:42:50 +02:00
Umherirrender 5062970a5b build: Remove unneeded newline from one line condition
Improve readability

Change-Id: I4493126d97668ab3b4d24a6605ab1dabe7339e2e
2023-08-22 21:46:03 +02:00
Translation updater bot acfe9e7a1e Localisation updates from https://translatewiki.net.
Change-Id: I39c997957c8360041c777c3b6108b3b0e47089df
2023-08-22 09:03:28 +02:00
Translation updater bot 3f990b86a4 Localisation updates from https://translatewiki.net.
Change-Id: I6d0d037e5cb82fc4794341345c8a829d0a3f3f36
2023-08-21 08:50:50 +02:00
Umherirrender 4ce42dd5cb Use namespaced MediaWiki\Html\TemplateParser
Bug: T321681
Change-Id: I7cec363ce0f4a6d5797a3f176b5cb766930a84fe
2023-08-20 02:48:10 +02:00
gerritbot fd2fe83a0c Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I236a14b07bd78141f82e86d7ea872d24b6cd88eb
2023-08-19 19:36:46 +02:00
Translation updater bot b49965e48c Localisation updates from https://translatewiki.net.
Change-Id: Iea91f7b6c37c4e7c331e495593d9ab1b9a85d216
2023-08-18 09:13:40 +02:00
Translation updater bot cce91d404f Localisation updates from https://translatewiki.net.
Change-Id: Ia19ac8eaa53706b084500aaa014bfd4014bea4d1
2023-08-17 12:12:32 +02:00
jenkins-bot 7c59e349a9 Merge "Edit icon uses template parser" 2023-08-16 22:27:51 +00:00
Translation updater bot 4dcaa77195 Localisation updates from https://translatewiki.net.
Change-Id: I15419471ae82ba2435763611a147a2a6841ae5eb
2023-08-16 09:14:26 +02:00
Umherirrender 7701ce2641 Use HookHandlers for MobileFrontend hooks
The use of "HookHandlers" attribute in extension.json makes it possible
to inject services into hook handler classes in a future patch.

Bug: T315823
Change-Id: I9422f0cf7d5c14db544ea67c564d34e9eca3813b
2023-08-15 17:02:31 +02:00
Translation updater bot ce29be7f36 Localisation updates from https://translatewiki.net.
Change-Id: If6daa9b86acdc7bd3516cfa76a818373279cb666
2023-08-14 09:20:57 +02:00
Jon Robson b7b4e4b01f Remove icons from about and disclaimer link and minerva-icon class
Legacy icons shouldn't have the minerva-icon class as this is meant
to be reserved for Icon template (Codex icons)

Bug: T342908
Change-Id: I63556fe42c8650bc5f0d6e5a0c5328b3f29d75f3
2023-08-11 11:56:08 -07:00
Jon Robson f3c1b06ce6 Move button styles out of icons.less
Follow up to
I84407fb562c288bafe02e97ba7f3366de7f61611

Change-Id: I80c2b63077d38203fcef09d473c82f5566a92467
2023-08-11 17:54:59 +00:00
Jon Robson 12f3e033a7 Redo icon sizing
The current implementation enforces the size to be part of the
icon name. It would be preferable to have a specific class for
controlling size given we don't want to have to update all the
names of our icons.

Bug: T342908
Change-Id: I84407fb562c288bafe02e97ba7f3366de7f61611
2023-08-11 17:08:28 +00:00
jenkins-bot de9a9012b9 Merge "Revert "Use !important for removing after"" 2023-08-10 23:45:29 +00:00
Jdlrobson 9aa0e4139c Revert "Use !important for removing after"
This reverts commit 3474a0b90f.

Reason for revert: The after pseudo element appears to be needed
for the notification circle unfortunately. This is not a requirement
for this train so I suggest we tackle this later.

Change-Id: Id6d073435155bb1b0f9a2306c88de7fcf1f7ece5
2023-08-10 23:29:49 +00:00
Jon Robson 0c6ac2926d Edit icon uses template parser
Bug: T344007
Change-Id: I772f2c8be7e4f48e9d67a5d1d7d3ef9e6af17851
2023-08-10 22:04:11 +00:00
jenkins-bot 94b339d905 Merge "Remove user page from menu for temp users" 2023-08-10 21:45:47 +00:00
jenkins-bot e7e8e5f3c9 Merge "Prepare icon module selectors for Codex markup change" 2023-08-10 21:39:26 +00:00
jenkins-bot b665f5c8b1 Merge "Use !important for removing after" 2023-08-10 21:10:45 +00:00
jenkins-bot cc82b845dc Merge "Fix the height of cdx-button in header-overlay" 2023-08-10 20:40:47 +00:00
Jon Robson 3474a0b90f Use !important for removing after
Follow up to e86f197cfa
This apparently will become a problem when we switch to Codex

Bug: T343920
Change-Id: I796856a8c2c5e9d0677552d63a730834021bbeee
2023-08-10 20:38:13 +00:00
jenkins-bot 8a8bc0a404 Merge "Fix header overflow style causing header buttons from being cut off" 2023-08-10 20:21:00 +00:00
jenkins-bot f96bd6f311 Merge "[Icons] Use Button template in PageActionsMenu." 2023-08-10 19:57:14 +00:00
Jon Robson d342cb32ef [Icons] Use Button template in PageActionsMenu.
Use the Button.mustache partial in the
PageActionsMenu.mustache template.

This converts the page actions menu to use the Button
template in a way that doesn't change the existing HTML.
The mw-ui-icon-element and mw-ui-icon-with-label-desktop
classes are placed onto the Button.mustache markup.

Bug: T342908
Change-Id: Ib5dadd929eea2e72a24e061c4174348615890617
2023-08-10 19:27:44 +00:00
bwang 0648dbf29c Fix header overflow style causing header buttons from being cut off
Reverts the change to flushing for notification icons in
I55c18cf723a32f80b93a01dd0687e005162c4e93

Bug: T343908
Change-Id: I1c9b9969c822f90f8edeb90ce8b27d79d378cf64
2023-08-10 18:14:05 +00:00
bwang 97bec652bd Remove user page from menu for temp users
Bug: T340152
Depends-on: Ic99c9cf2c8e7ea9a6520b4c9b6e5b69d358cbd58
Change-Id: I01405d534672b0dc265610d3b35f55f96507ba8a
2023-08-10 17:01:06 +00:00
Ed Sanders 94d5779d21 Fix the height of cdx-button in header-overlay
Set to 3em high, like mw-ui-button.

Bug: T343995
Change-Id: Id3b75150a429585d30745ee606a782e926cbe9a7
2023-08-10 15:33:43 +00:00
jenkins-bot 5b87b66e46 Merge "Revert "Any header overflow should be hidden"" 2023-08-10 13:09:30 +00:00
Esanders 35dfdfceb9 Revert "Any header overflow should be hidden"
This reverts commit e78d6a5216.

Reason for revert: Completely truncates the user popup menu.

Bug: T343908
Change-Id: I320103bb7563c9265afb9956b9375d2a96b37172
2023-08-10 12:54:36 +00:00
Translation updater bot 8725cb214c Localisation updates from https://translatewiki.net.
Change-Id: I97c2b6591f2087044e4de9cf0440e314274248df
2023-08-10 09:45:02 +02:00
Jon Robson 963fcb23a9 Prepare icon module selectors for Codex markup change
Bug: T342908
Change-Id: Ic41c4602ce1ae584210d3d105e823a74c9d49e65
2023-08-09 23:44:36 +00:00
jenkins-bot f9c20d8238 Merge "Any header overflow should be hidden" 2023-08-09 19:17:18 +00:00
jenkins-bot 46d2fb49a9 Merge "Fixes: Echo circle notification appears as large red square" 2023-08-09 19:06:29 +00:00
Jon Robson 7a7e8e94bb Fixes: Echo circle notification appears as large red square
Fixes https://phabricator.wikimedia.org/F37380573

Bug: T342907
Change-Id: If6701f277e88bbfa3a1d0ee9cab4678d2f30b3a9
2023-08-09 18:49:31 +00:00
Ed Sanders 9121846bbc Remove left padding from header-cancel
The padding is outside the highlighted area of the button in codex.

Change-Id: I032ba224a49d891de582fe8c069c9bff28583806
2023-08-09 17:34:54 +00:00
Jon Robson e78d6a5216 Any header overflow should be hidden
One of the child elements are flushed right.

Bug: T343908
Change-Id: I227264ad50e7ce8dbaac260d607824ec47a81739
2023-08-09 10:10:59 -07:00
Translation updater bot 2d59a77307 Localisation updates from https://translatewiki.net.
Change-Id: I2dc5f42bbe1ca7bdcd05894dc762bf1a202c3714
2023-08-09 09:17:38 +02:00
bwang 1918698e72 Fix page issue icon
Bug: T343053
Change-Id: I80595e3b851cdb4b9d4bdafe6ce7526a2e33afbe
2023-08-08 20:37:15 +00:00