Commit graph

4125 commits

Author SHA1 Message Date
jenkins-bot d73e1f5cf6 Merge "Drop mw.mobileFrontend references" 2023-11-01 15:45:31 +00:00
Translation updater bot 1e73dde94a Localisation updates from https://translatewiki.net.
Change-Id: Ic073da859b011e05ce4801031e832c08e4b4789b
2023-11-01 09:10:17 +01:00
Jon Robson 19ea6328b0 Drop mw.mobileFrontend references
Bug: T348807
Change-Id: Ib71b43005e5788d0e29917a165281faa84926414
2023-10-31 21:54:26 +00:00
jenkins-bot 12a54347be Merge "Don't turn text in .mw-editTools toolbar gray" 2023-10-31 13:56:56 +00:00
jenkins-bot af27a8fe7f Merge "Fixes read only mode." 2023-10-31 13:35:14 +00:00
Translation updater bot 9f16e2e21a Localisation updates from https://translatewiki.net.
Change-Id: I232acf7915ab3c027d182bc54a0298fb700ed3b7
2023-10-31 09:11:02 +01:00
Jon Robson e7ed36164f Increase specificity of some selectors
These elements were not hiding correctly.
Follow up to I5a4a2588da3d701be87690038c2c9b2bc1aa0365

Change-Id: I1798fa223d52625b9b16c98561f4b1cab39c5303
2023-10-31 05:02:02 +00:00
Jon Robson 5170e69d3c Fixes read only mode.
When $wgReadOnly = true; in LocalSettings.php the edit icons
appear locked and when clicked should show a warning.

This also addresses deprecation warnings in the code and
tidies up the ES6 code.

Note to reviewer: Please use git diff HEAD^ -w
when reviewing this diff. Mostly whitespace changes.

Change-Id: I3fa83cc1dc4da62260fd0ef50ac14805c3e1282b
2023-10-31 00:41:29 +00:00
Jon Robson db8e3b09af Document messages and add hours and minute units
Follow up to I5a4a2588da3d701be87690038c2c9b2bc1aa0365

Change-Id: I6ea2b98bd3d03e586cc58307d3f2f0f1119059e3
2023-10-30 23:37:12 +00:00
Translation updater bot 23259829af Localisation updates from https://translatewiki.net.
Change-Id: I77835f48ca322b99e95afa8d796934d7f23a222b
2023-10-30 18:01:27 +01:00
jenkins-bot 3a4b1f1082 Merge "Style the desktop diff and history page of Minerva to look like mobile pages" 2023-10-30 14:53:32 +00:00
thiemowmde 758333a972 Don't turn text in .mw-editTools toolbar gray
Please see T338261#9291438 for a longer explanation. The .mw-editTools
section is a multi-purpose field that can hold a lot of different
things, most notably a special characters toolbar. It's confusing if
the toolbar looks like it's disabled.

Bug: T338261
Change-Id: I6ad58dbdcc754c832e03184c2e69a7803c333c07
2023-10-30 15:23:50 +01:00
Translation updater bot 6255dbab1d Localisation updates from https://translatewiki.net.
Change-Id: I8ee94aec9eb940164ec664e0459e0b1be6526554
2023-10-30 13:53:49 +01:00
jenkins-bot 58a77bc10d Merge "Diffs: Explicitly set font size to 100%" 2023-10-28 11:16:09 +00:00
Ed Sanders 8369a0e859 Diffs: Explicitly set font size to 100%
This should result in no-change, but prevents a regression after I65b6a778d.

Change-Id: I0085124a8590ede25d818033b669aff18afc19d6
2023-10-26 17:38:36 +01:00
WMDE-Fisch 354e00a3b5 Always show search form on Special:Search
At least for wikis that have AdvancedSearch installed it does not
seem to make sense to hide the interface. It should be usefull in
any case. Also there's a huge gap that should be avoided I guess.

I'm not to sure for cases where AdvancedSearch is not installed.
There this patch will lead to a situation where there are two
search fields visible. The one at the top and the one in the main
content. - Although the latter has the advantage to show the
current search term.

IMO this is overall still an improvement and further streamlining
could be done in a follow up ( like hiding the header search field
generally on the Special:Search page ).

Bug: T308845
Change-Id: I477825e9d738e9934f6c6845a1ff8962f12987a9
2023-10-26 13:10:25 +02:00
Volker E 1dbd976eb9 styles: Bring headings line-height value in line with Codex
The line-height value for headings in MinervaNeue was 1.3,
while in Codex and Vector it changed to 1.375.
This patch brings the value in MinervaNeue in line with Codex and
the corresponding change in Vector a while ago.
This also makes future typographic changes more easily handlable.

Bug: T331403
Change-Id: I4320035708d6005388428dfbc90da2ef613841b5
2023-10-24 21:54:51 -07:00
jenkins-bot d0ae24d7dd Merge "Stop using mediawiki.ui mixin for history page" 2023-10-24 21:24:35 +00:00
Jon Robson b0aa45822c Stop using mediawiki.ui mixin for history page
Additional change:
* Remove unused import on mediawiki.special.changeslist module
* Increase touch area of undo link for mobile devices

Bug: T345768
Change-Id: I8ded245cf15ca58f91ca1b71beffd91da02cfd92
2023-10-24 18:58:46 +00:00
Translation updater bot 197e6b8cfa Localisation updates from https://translatewiki.net.
Change-Id: I55b969fabde628498e3b63a1ae2cfbf8b2233a2f
2023-10-24 09:40:55 +02:00
jenkins-bot 16eed12b1a Merge "Generate section edit links via SkinMustache" 2023-10-24 01:12:49 +00:00
Jon Robson 0c8caebfc6 Generate section edit links via SkinMustache
Bug: T346944
Depends-On: Ief6a6ee03ada8207fc5c60ea438412fa2d529022
Change-Id: I9f768706c0a0f14f14ee4b3812288218bef36018
2023-10-23 23:17:43 +00:00
jenkins-bot 47d023c767 Merge "Do not use data-mw=interface when watchstar is used as a CTA" 2023-10-23 21:14:54 +00:00
Translation updater bot 02480ed6df Localisation updates from https://translatewiki.net.
Change-Id: I66c9f1108b4badb1aa28bff7630a9eade6da887d
2023-10-23 09:53:39 +02:00
Martin Urbanec 8b04c45fb2 Do not use data-mw=interface when watchstar is used as a CTA
Why:
Minerva uses watchstar both as a client to action=watch
and as a CTA prompting users to create a new account.
To prevent error messages about permissions from being
displayed when logged in as a temp account (or not logged in
at all), the API requests should be only sent when users
actually has watchlist permissions.

This patch fixes that by only passing data-mw=interface when
the watchstar is actually used as part of MW watchlist interface,
ie. when user is logged in. That means the `mediawiki.page.watch.ajax`
module in core can avoid the watchstar element when it is not meant
as a watchstar, but as a "sign up" CTA button.

What:
* Make it possible to change (or omit) data-mw in SingleMenuEntry
  by a new constructor parameter.
* Make ToolbarBuilder::createWatchPageAction omit data-mw when
  user does not have watchlist permissions.

Notes: Based on coversation with Krinkle in
Ia0acdaf4dea5aa6788f89fdd73c5dba9af9f1ed7.

Bug: T344925
Change-Id: Id9d6d9e7394b52d11ac6ce0b7d33319b3a761789
2023-10-23 08:59:08 +02:00
Umherirrender dd5753c023 Replace empty() with falsy check
empty() should only be used to suppress errors
When the type of the variable is array,
a falsy check is the same (checks for null, false and empty array)
Found by a new phan plugin (T234237)

Change-Id: If24015795219f6ff4f155c0d667472dc52a04d43
2023-10-21 20:29:41 +02:00
Jon Robson a3f03245fd Style the desktop diff and history page of Minerva to look like mobile pages
Depends-On: Ie8ac1aab6d2fe5f4575a6891c36efe497458e093
Bug: T305113
Bug: T240624
Change-Id: I5a4a2588da3d701be87690038c2c9b2bc1aa0365
2023-10-20 18:35:10 +00:00
Ed Sanders a8aecda711 Udate jsdoc and use jsdoc-wmf-theme
Depends-On: Ic3861870c10f64d7f5414669a9d25b8ffb4c79a4
Change-Id: I6750e9bb6d5409e497b5605e3a4660734f5677ab
2023-10-20 13:42:19 +00:00
Translation updater bot 162aed289a Localisation updates from https://translatewiki.net.
Change-Id: If04a2b942ab0a7919c00ba7ce63e139206615eef
2023-10-19 08:46:32 +02:00
Translation updater bot 6fe0eb4c8b Localisation updates from https://translatewiki.net.
Change-Id: I69b2f1a2f1f48d7e1e75dc448fa2de442160cd73
2023-10-16 09:18:29 +02:00
Translation updater bot 17ec3a7b6c Localisation updates from https://translatewiki.net.
Change-Id: I85d60acce3e4be9d14513d80de4ab0951d5e6e7f
2023-10-13 09:00:04 +02:00
jenkins-bot 8e14b94635 Merge "Revert "icons: Register 'flag' in the wikimedia icons group"" 2023-10-10 22:56:41 +00:00
Jdlrobson a90cc7ba4c Revert "icons: Register 'flag' in the wikimedia icons group"
This reverts commit 2696ced732.

Reason for revert: Icons should be defined by the extension
providing them. The icon is already incorrectly defined in
that extension but can easily be corrected.

Depends-On: Iff3aa23604442011062a67a8e165fc4a1b5b2d47
Change-Id: I22a114d41e2cadb97d46c299709496cd04299cf6
2023-10-10 16:17:26 +00:00
jenkins-bot 7d5f700442 Merge "icons: Register 'flag' in the wikimedia icons group" 2023-10-10 11:09:20 +00:00
Translation updater bot 8c66507f25 Localisation updates from https://translatewiki.net.
Change-Id: I235dca316e692bc4aac2a01110791374f631cd50
2023-10-10 08:54:37 +02:00
jenkins-bot 57a61c82c9 Merge "Selenium tests: broaden the definition of the article page edit link" 2023-10-09 15:34:49 +00:00
Kosta Harlan 2696ced732
icons: Register 'flag' in the wikimedia icons group
Why:

- The recently-introduced "Report" menu item in Extension:ReportIncident
  needs a flag icon

What:

- Register the "flag" icon in the wikimedia icons group

Bug: T348455
Change-Id: I4caa3a84583349a19603a2ad86471d79671f4b6a
2023-10-09 17:19:39 +02:00
Translation updater bot d81009c1ec Localisation updates from https://translatewiki.net.
Change-Id: I3ea112150ef78f12466a95a419b360103441f41d
2023-10-09 09:00:13 +02:00
David Lynch dfccc816af Selenium tests: broaden the definition of the article page edit link
Bug: T348353
Change-Id: I92f7c2c5f4691bd511219432c53379ddd928eae2
2023-10-06 16:27:49 -05:00
Jon Robson 7d59aa1843 Restore watchstar for anonymous users
Minerva shows a watchstar for anonymous users.

Follow up to
I3c9d59f49f1b939981a7b2b450448db6736d5958

Bug: T348336
Change-Id: I36afb86f0c89c30dcb7695e1409f7c20d3dc31d1
2023-10-06 18:05:08 +00:00
Translation updater bot 93bccd3342 Localisation updates from https://translatewiki.net.
Change-Id: Ia5642af8be418baa8f219b4b82b5ea945c5a7c78
2023-10-05 09:14:22 +02:00
jenkins-bot 50563c1b23 Merge "Support extension of page actions via hook and addPortletLink" 2023-10-05 00:23:01 +00:00
Jon Robson 05231bb254 Support extension of page actions via hook and addPortletLink
This adds support for:
mw.util.addPortletLink('p-views', '#', 'text', 'fooz',null,
  null,'#page-actions-overflow' )

and adding multiple edit icons via hooks.

Depends-On: I655097769620301143140ded1cde4c7a16879ef4
Depends-On: I401805224c0f387ac85b52b50c1f298b83c03a91
Bug: T346944
Change-Id: I3c9d59f49f1b939981a7b2b450448db6736d5958
2023-10-04 22:15:47 +00:00
Translation updater bot 7c1761cb9f Localisation updates from https://translatewiki.net.
Change-Id: I21dddcd6f628611f67a97935958c346dba60035d
2023-10-04 09:12:06 +02:00
MusikAnimal 907e40d5c9 ToggleListItem: correct {{class}} to {{classes}}
This fixes the integration added with Ice909aab7f.

Bug: T242467
Change-Id: I8920e0878f676885a795fca8bfd2dc63ec1140cb
2023-10-03 16:42:29 -04:00
Translation updater bot a5f1c79678 Localisation updates from https://translatewiki.net.
Change-Id: I0e426d97ab27b6a073abaa67ed0ee4453843ddd2
2023-10-02 11:01:03 +02:00
Sergio Gimeno 2a9680f2a4 Apply content styles to mw teleport target
Bug: T347199
Follow-up: Ibd5d8c7cc7880678fae498a451cfd417f1f8e1b8
Change-Id: I50274180b62dec902fd7b9030313d4bcf13bd494
2023-09-28 11:29:30 +02:00
Translation updater bot f33ffcf850 Localisation updates from https://translatewiki.net.
Change-Id: I3f9991a3a2a34061e81422aa626ec86e370fb258
2023-09-27 09:25:14 +02:00
Translation updater bot ad2b7c0e9e Localisation updates from https://translatewiki.net.
Change-Id: Ib51f2e84fad86be73290b8ceac617e31f8000105
2023-09-26 08:46:45 +02:00
Jon Robson b51c6511ef Fixes history icon in green last modified bar
Currently the last modified bar icon appears black rather than
white. This is because the last modified icon shares icon CSS
with the page actions in AMC.

Untie these by giving the icon in this context a different selector,
taking care to support cached HTML.

Change-Id: I98443b0dcb88911a5314092216809387b4fb80dc
2023-09-25 20:40:55 +00:00