Commit graph

4280 commits

Author SHA1 Message Date
Ed Sanders a5c9a506c9 ESLint: Remove unnecessary config no-var:error
This is the upstream default.

Change-Id: I09797b9e9243707f0b2a7942d34d27b1271d9eb4
2024-06-03 12:56:30 +01:00
Translation updater bot 1c210fc0f3 Localisation updates from https://translatewiki.net.
Change-Id: Ia81ae54a1aa0a2fcc80502c742762a94146ece29
2024-06-03 09:37:09 +02:00
Fomafix 5f47deaef0 Skip getContext() and use methods from ContextSource
Change-Id: Idd4805e8f49a1b896b9be83c843b59d12136abb9
2024-06-01 14:54:25 +00:00
Fomafix 8acf6771d8 Use $featuresManager instead of $featureManager
This is consistent to the service name 'MobileFrontend.FeaturesManager'.

Change-Id: I31897c60ad2f85c62202efb80db855f96693aee6
2024-05-31 18:18:48 +00:00
Bartosz Dziewoński 5b48e1665a Allow collapsible content in Minerva
Too many projects including notably English Wikipedia are now
enabling this code via gadget, which will make addressing this
problem more difficult in future, by providing an unpredictable
development/testing environment
it would be better if this reflected production, even with the fat
finger problem.

Bug: T323639
Bug: T111565
Change-Id: I81aa514a211710d0eec45329e3e3c7ee331da6ea
2024-05-30 12:49:14 -07:00
Translation updater bot 10eb430c6c Localisation updates from https://translatewiki.net.
Change-Id: I41f24c8c7d140aa703866fd7b8905d46ea253007
2024-05-30 09:39:14 +02:00
jenkins-bot e613fbf0b5 Merge "Fix color contrast on toast/drawers" 2024-05-29 23:06:21 +00:00
jenkins-bot c3db2589df Merge "Night mode: Reflect production settings" 2024-05-29 20:44:42 +00:00
Jon Robson 5846ff838c Night mode: Reflect production settings
In production, night mode is available to all AMC users. Update
default development configuration to match this (I just wasted
ten minutes wondering why night mode wasn't showing up locally
and don't wish the same on anyone else :-))

Change-Id: Ic7cd55fbe2566b083bd4ba3dd0983f88646aca6c
2024-05-29 12:53:45 -07:00
Translation updater bot ab77655a56 Localisation updates from https://translatewiki.net.
Change-Id: I5fcda991f6ec8ca8b18e4acc97db3f14564b51c4
2024-05-29 09:34:36 +02:00
bwang 179d48d4f8 Fix color contrast on toast/drawers
Bug: T364117
Change-Id: Ibdb5cd49f8d4fcd1f69bc1209789a936ba8067ec
2024-05-29 05:46:46 +00:00
jenkins-bot 6ff97b564c Merge "fix(minerva): Fix notification & menu shadows in night mode" 2024-05-28 13:39:39 +00:00
jenkins-bot 7ea9638f81 Merge "SECURITY: Prevent JavaScript injections by messages" 2024-05-28 13:22:05 +00:00
Translation updater bot 127d08104f Localisation updates from https://translatewiki.net.
Change-Id: I460c9b47492c1fbb04bf8963dd20a446b0d78b95
2024-05-28 09:33:23 +02:00
Translation updater bot 93ccb7c0d8 Localisation updates from https://translatewiki.net.
Change-Id: I339a0f76acf6002baa3cf812fdfe106e855448f6
2024-05-27 09:32:27 +02:00
Fomafix a16f637fdc SECURITY: Prevent JavaScript injections by messages
This change prevents the possibility to inject JavaScript by
skin-minerva-night-mode-launch messages introduced by change
I3cfa9517a387df636534a3940e09289e4d7a1e5b.

Change-Id: Ib43bcff1413e6b70cedb7db4fa2c68148c4f13f5
2024-05-25 10:48:43 +00:00
jenkins-bot 9be0279689 Merge "Update namespace of PHP classes" 2024-05-25 00:23:21 +00:00
jenkins-bot c3d07acc78 Merge "Remove margin reset on <pre> tags" 2024-05-24 22:11:57 +00:00
Moh'd Khier Abualruz 1cf4a9866d fix(minerva): Fix notification & menu shadows in night mode
Updates shadow colours to respect user's night mode preference by
using standardized design token.

Bug: T364425
Change-Id: Iebf756c7c9adfdf79d7fee203ee6f02168a636f7
2024-05-24 20:28:42 +00:00
jenkins-bot 565f89e376 Merge "Create dark-mode launch banner component" 2024-05-24 20:22:56 +00:00
Jan Drewniak 903fbda3b0 Create dark-mode launch banner component
Creates a launch banner component for dark-mode
using the CSS-only Codex Dialog component.

This banner is currently not loaded on any page,
but can be invoked using mw.loader:

    mw.loader.using( 'skins.minerva.DarkModeLaunchBanner', r => r( 'skins.minerva.DarkModeLaunchBanner')() );

Bug: T361047
Change-Id: I3cfa9517a387df636534a3940e09289e4d7a1e5b
2024-05-24 14:56:49 -04:00
Translation updater bot 6f9af185c8 Localisation updates from https://translatewiki.net.
Change-Id: I19719bf05d58e7f62954608a6c55785646eacc81
2024-05-24 09:47:15 +02:00
Translation updater bot 3daebc4d8e Localisation updates from https://translatewiki.net.
Change-Id: I1ac75116c76422032fc3ca0ef13d7f329b149f8e
2024-05-23 09:30:42 +02:00
Fomafix 342beaeb18 Update namespace of PHP classes
Change-Id: Ia8a8d643a8e96372ecc7e481c0e3d50a31ccd4e8
2024-05-21 15:08:47 +00:00
Translation updater bot ada7c229d8 Localisation updates from https://translatewiki.net.
Change-Id: Idabe9b1331e9bbd07d1cf816535bc5f922b35c95
2024-05-21 09:30:34 +02:00
Translation updater bot 4eaa83afd8 Localisation updates from https://translatewiki.net.
Change-Id: I3d9aaac4ec6683a838b17c3bb923b5a362578921
2024-05-20 09:28:41 +02:00
Jon Robson 508989ac45 [Config] Reflect production defaults for night mode
Night mode is currently enabled on AMC on all wikis so let's
match that locally for development.

Change-Id: I5d86d8ae27f4a7bccfdd6106ac20affba3e8e216
2024-05-17 16:11:53 -07:00
Steph Toyofuku de3f85bac7 Fix inverted text in (recently) last modified bar
Currently we are using the --color-inverted token, which is double
inverted in night mode, yielding insufficient color contrast with the
blue (progressive) background when the page has been recently modified.
Instead, use the @color-inverted-fixed token, which stays white in night
mode for backgrounds which are darker regardless of mode (additionally,
switch back to using LESS variables as this is the new recommendation)

Visual change due to bugfix

Bug: T364123
Change-Id: Ib284abffd6907272e580986fb08c2b8dee5a1a47
2024-05-17 14:15:39 -07:00
jenkins-bot eb5eac4c5e Merge "Temporarily define color-link-new in Minerva like in Vector" 2024-05-17 17:43:24 +00:00
Jon Robson 2adf0b3ed7 Temporarily define color-link-new in Minerva like in Vector
Since there is an open bug on Codex let's temporary set this
color as we do in Vector.

Bug: T363778
Change-Id: I1234825164e5cdcfd4e9c01de6971c64268af236
2024-05-17 16:54:28 +00:00
Jon Robson 5643b8c2b8 Drop responsive behaviour
This is not working as expected - when I view the watchlist
it looks misaligned.

At this stage it is not vital to keep this view identical
with the existing version.

Bug: T109277
Change-Id: I2768a83cdd015867c9d66ded63acfe369629cf52
2024-05-17 16:06:32 +00:00
jenkins-bot 4b37bf7016 Merge "Minerva should no longer support non-Codex message boxes" 2024-05-17 15:45:32 +00:00
Translation updater bot beb24ac473 Localisation updates from https://translatewiki.net.
Change-Id: I0d3caec0a611606c00239ded013ddbbfbe0e41ae
2024-05-17 09:52:50 +02:00
Umherirrender 90356bae05 i18n: Replace mw: interwiki with url to mediawiki.org
The interwiki table must not contains an interwiki link with prefix mw:

Change-Id: Ib5e9a80ae746dec281466dc6ed5552578a5ec2b9
2024-05-15 23:22:10 +02:00
Jon Robson 23e5dfbb84 Minerva should no longer support non-Codex message boxes
Bug: T360668
Depends-On: I79cb792cf74ac4c722a94d98948e46f0d2a9ea03
Change-Id: I1cefc5437e17a98221e04ed87d55db62f0e69e38
2024-05-15 20:52:53 +00:00
Func 1bac80cd59 styles: Stop using SkinModule in skins.minerva.mainPage.styles
Follow-up to commit 95c4454 and dd424cb.

This has become a plain style module since 95c4454 and doesn't need to
use SkinModule anymore.

Also, cleaned up the unused import of the less variables.
 * mainPage: apparently never used, dated back to 2cc9516
 * userpage: unused since 196fb20

Bug: T360988
Change-Id: I49304c64cd2bbc5f791164127a5169e60a43058a
2024-05-15 14:49:37 +00:00
Translation updater bot 51efcfcedc Localisation updates from https://translatewiki.net.
Change-Id: I9419da85bbe1be023abd49e4bca6579994fd05b6
2024-05-15 09:23:37 +02:00
jenkins-bot 8ce4672206 Merge "Add eslint-disable-next-line security/detect-non-literal-regexp" 2024-05-15 00:20:45 +00:00
jenkins-bot 837ca8b506 Merge "Use PHP types (2)" 2024-05-14 22:16:20 +00:00
Fomafix 7f4c7d2db2 Add eslint-disable-next-line security/detect-non-literal-regexp
Change-Id: Ie85cdab8d2407fd432ae420ae46970490c2f693d
2024-05-14 12:41:50 +00:00
Translation updater bot d1536d967c Localisation updates from https://translatewiki.net.
Change-Id: I2df9e128cf16a082e461ebd15a451830c3ffdcbc
2024-05-14 09:29:25 +02:00
Steph Toyofuku b7e54644b7 Make language selector disabled state accessible contrast
Remove the opacity filter and indicate a disabled state using the
disabled color for both text and the icon.  Add a new disabled icon
variant to accomplish this

Also fixes a small issue where the toast notification was unreadable in
night mode due to using --color-inverted.  Switch this to
--color-inverted-fixed, which was added for this purpose

Visual change for the language selector button, when there are no other
languages available

Bug: T361693
Change-Id: Id2f80028d967bf644673f651bb89718fa8723d22
2024-05-13 22:13:33 +00:00
Translation updater bot 7296692ab4 Localisation updates from https://translatewiki.net.
Change-Id: I061a5211af8ee17f7ebe516dc2a22c2e79264d67
2024-05-13 09:30:16 +02:00
Jon Robson 84408db01c skins.minerva.mainPage.styles should not load feature styles
This is pulling down unnecessary styles that apply to the page unexpectedly.
The only reason this needs to be a Minerva/SkinModule is to support the
@wgMinervaApplyKnownTemplateHacks config variable

Follow up to I32f3968b74bded987bb60e85a902e551727db545

Bug: T360988
Change-Id: I285d0d35f46e1519d33752300262e652003011a2
2024-05-12 14:41:17 +00:00
Jon Robson 8239b8bd9c Style Special:NewPage consistently with Special:RecentChanges
Bug: T360843
Change-Id: Id75c7036cdff7f0a597fd58857fb367b16fffc79
2024-05-10 14:51:17 +00:00
jenkins-bot 88d092021d Merge "Selenium: Drop dead code" 2024-05-10 13:57:31 +00:00
Translation updater bot 2ee94c4078 Localisation updates from https://translatewiki.net.
Change-Id: Iad6bb8c007e4d2a9b40029e494d5098f1af2a92c
2024-05-10 09:33:44 +02:00
jenkins-bot 534e482f02 Merge "Replace root extend solution for codex with .cdx-mode-reset()" 2024-05-08 20:33:59 +00:00
Fomafix ff00805c5f Use PHP types (2)
* Add type hints where possible.
* Add initialization values to properties where needed.
* Remove @var block if redundant to type declaration.
* Use single line /** @var type $var */ instead of multi line.

Change-Id: I35236c5c1a2abb49e8ea2da090df3d655206195f
2024-05-08 19:08:30 +00:00
bwang d0c5ac0674 Replace root extend solution for codex with .cdx-mode-reset()
Change-Id: I7a41d46398c27b97f74d0606bf1b3c9610dda80f
2024-05-08 13:31:20 -05:00