Commit graph

4419 commits

Author SHA1 Message Date
Jon Robson e89aab6b43 Cleanup: Remove dark mode banner code
this is not being utilized any more, tested or maintained so should
be removed.

Change-Id: Ib51bc5cb829f25b8a2ab864f7b9266578a4b1232
2024-09-06 09:31:03 -07:00
jenkins-bot 8c35813ba3 Merge "Revert "Fix missing wikibase link in Minerva sidebar"" 2024-09-05 15:19:57 +00:00
Joely Rooke WMDE 783ccd21df Revert "Fix missing wikibase link in Minerva sidebar"
This reverts commit e1b61ec3c5.

Reason for revert: On wmf.21 that caused: PHP Notice: Undefined index: id

Change-Id: I048d1fd3f192cf306839d71f189bd02f9c8e1ca9
2024-09-05 14:48:46 +00:00
jenkins-bot be2a7378a6 Merge "Fix missing wikibase link in Minerva sidebar" 2024-09-05 08:20:04 +00:00
Translation updater bot 3a231e1333
Localisation updates from https://translatewiki.net.
Change-Id: Ifcc1c39378289e885cd8104645ed71750c134e6c
2024-09-05 09:27:24 +02:00
jenkins-bot e4594a1b32 Merge "Fix eslint warnings in Selenium JavaScript code" 2024-09-05 01:38:35 +00:00
joelyrookewmde e1b61ec3c5 Fix missing wikibase link in Minerva sidebar
Bug: T66315
Change-Id: I51c394193ea37ade37c662edd69ac0df4171c1d9
2024-09-04 15:15:02 +02:00
Fomafix 93945857b8 Fix eslint warnings in Selenium JavaScript code
Change-Id: I02d2114e668d1ea9d2a28d2823dc6f9bfa032b8a
2024-09-04 08:33:13 +00:00
Translation updater bot 8e583b8880
Localisation updates from https://translatewiki.net.
Change-Id: Ic15f20a862e799cb70d465cd74e3743244de4d8e
2024-09-04 09:18:32 +02:00
Jon Robson 1d966ce00b Restore heading margin for Parsoid content
Bug: T373646
Change-Id: I3d20456695229cb203e6d1a125587f367fffe696
2024-09-03 20:48:25 +00:00
Translation updater bot a0021226ac
Localisation updates from https://translatewiki.net.
Change-Id: Ib8f073ccc3cbebf165710d8dca22f190eec814dc
2024-09-03 09:36:06 +02:00
Translation updater bot 90f9366ae7
Localisation updates from https://translatewiki.net.
Change-Id: If9d4c5944b3e0eaa3df16d5fac51d8246b21d71a
2024-09-02 09:23:43 +02:00
Translation updater bot e156deac94
Localisation updates from https://translatewiki.net.
Change-Id: I73e730c51ad8772f8072f1ecd40887461852a473
2024-08-30 09:22:40 +02:00
jenkins-bot 2b77c02639 Merge "tests: Adopt private require() for skins.minerva.scripts (take 2)" 2024-08-29 23:58:39 +00:00
Timo Tijhof 4ca4febd89 tests: Adopt private require() for skins.minerva.scripts (take 2)
Resubmission of Ib68f45d93a (548e94da98), which caused an error due
to `require('../../`)` not working outside the module base directory.
This is fixed with regression test in T373065.

Further confirmed in this repo by viewing
`/wiki/Special:CreateAccount?campaign=loginCTA&useskin=minerva`
with this patch applied. Without the T373065 fix, the console warns:
> Error: Cannot require undefined file …/ToggleList.js

-------

Support for private require() in tests is available since MW 1.41:
https://mediawiki.org/wiki/RL/PKG#Private_export_and_import
https://mediawiki.org/wiki/RL/PKG#Virtual_files_in_traditional_modules

This fixes a confusing assertion in page-issues/index.test.js,
where for "insertBannersOrNotice()" it was asserting that the HTML
contain "⧼skin-minerva-issue-learn-more⧽", where the ⧼ character
indicates the message is not found (i.e. an error).

The test had to be written this way in order to pass, because
the skins.minerva.scripts module was not actually loaded, and thus
its templates and messages are not present either. This lack was
filled in by index.js for mw.templates, but not mw.messages.

By adopting private require(), these workarounds can all be removed.

== Motivation ==

In change I3a4024ccf90e505581, I'm working on improving the testrunner
config to enforce uselang=qqx on all tests. This is passing except
for GrowthExperiments and Minerva, both of which have the above
workarounds in place that caused a message to be undefined, and then
kept in the assertion expectation. When using uselang=qqx, values are
returned as (key) instead of ⧼key⧽, which exposes these message
existence errors.

By removing this workaround, the test will simply import the module
in the test as normal, thus the messages will exist, and thus it
will expect (key), and thus it will continue to pass even after
enforcing uselang=qqx.

Bug: T373482
Depends-On: I777f2c12e845a738edeac00e19818d4c939a1ef1
Change-Id: I6348e5ae00776c2c01d91fa90a431b6ffe3da25d
2024-08-29 20:34:16 +00:00
jenkins-bot 105b6fc266 Merge "Add a tag to mw.notify" 2024-08-29 16:58:11 +00:00
Translation updater bot e04a660035
Localisation updates from https://translatewiki.net.
Change-Id: Ia2b838102653e3d1bfde9fe281e937d2c56b9d88
2024-08-29 09:20:12 +02:00
Translation updater bot a9fe1ac572
Localisation updates from https://translatewiki.net.
Change-Id: I2bf56eef16be25759192b0b9cffe7c3d2f9b9c65
2024-08-28 09:43:49 +02:00
jenkins-bot 48c0eb44fb Merge "Revert "tests: Adopt private require() for skins.minerva.scripts"" 2024-08-27 20:46:55 +00:00
Jdrewniak dbe79167e5 Revert "tests: Adopt private require() for skins.minerva.scripts"
This reverts commit 548e94da98.

Reason for revert: The patch was causing the following error on pageload

    Error: Cannot require undefined file includes/Skins/ToggleList/ToggleList.js
    require startup.js:1006

Bug: T373482
Change-Id: I22751109c124795af7d2e0ad6c4104745b2d6632
2024-08-27 20:06:24 +00:00
Fomafix 8a78d01763 Add a tag to mw.notify
This prevent multiple notifications for the same message.

Change-Id: I6487852350497a48e1710fb04d3af01fc5c18116
2024-08-27 13:03:10 +00:00
Translation updater bot a67cadbc91
Localisation updates from https://translatewiki.net.
Change-Id: I866d40f9916559d325df4c9e8eeebd2149073d32
2024-08-27 09:51:50 +02:00
jenkins-bot 60507c415b Merge "tests: Adopt private require() for skins.minerva.scripts" 2024-08-27 01:36:47 +00:00
Translation updater bot 87e756408a
Localisation updates from https://translatewiki.net.
Change-Id: I634b30d2b58fd8c30434c6a2a710fcff022bee79
2024-08-26 09:26:01 +02:00
libraryupgrader f9171886c1 build: Updating micromatch to 4.0.8
* https://github.com/advisories/GHSA-952p-6rrq-rcjv

Change-Id: I70b8da15c849967990a039d7de86b156ff04486c
2024-08-25 18:42:09 +00:00
Timo Tijhof 548e94da98 tests: Adopt private require() for skins.minerva.scripts
Added to MediaWiki core last year with I9fca9fdf9b7623b1.

This fixes a confusing assertion in page-issues/index.test.js,
where for "insertBannersOrNotice()" it was asserting that the HTML
contain "⧼skin-minerva-issue-learn-more⧽", where the ⧼ character
indicates the message is not found (i.e. an error).

The test had to be written this way in order to pass, because
the skins.minerva.scripts module was not actually loaded, and thus
its templates and messages are not present either. This lack was
filled in by index.js for mw.templates, but not mw.messages.

By adopting private require(), these workarounds can all be removed.

== Motivation ==

In change I3a4024ccf90e505581, I'm working on improving the testrunner
config to enforce uselang=qqx on all tests. This is passing except
for GrowthExperiments and Minerva, both of which have the above
workarounds in place that caused a message to be undefined, and then
kept in the assertion expectation. When using uselang=qqx, values are
returned as (key) instead of ⧼key⧽, which exposes these message
existence errors.

By removing this workaround, the test will simply import the module
in the test as normal, thus the messages will exist, and thus it
will expect (key), and thus it will continue to pass even after
enforcing uselang=qqx.

Change-Id: Ib68f45d93a7054ed8bd35fc5644e2852f2f90248
2024-08-23 19:04:36 +00:00
James D. Forrester ea5a646a10 build: Update MediaWiki requirement to 1.43
All skins in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I40e986b853a3aa24d2021de51d7487ca9a78b1fe
2024-08-22 19:16:47 -04:00
Translation updater bot 15f5e96a0a
Localisation updates from https://translatewiki.net.
Change-Id: I4ef8a6daa3260a05a75ceaa43b50e8e81a2d6e18
2024-08-22 09:25:04 +02:00
MusikAnimal 03948a7a04 Explicitly set font size in VisualEditor + CodeMirror 6
This only effects Minerva desktop users of VE + CodeMirror.

Bug: T357482
Change-Id: I2569517ba2ce67d3d6ac486ddbfb9a3ce99d8c8c
2024-08-20 17:30:30 -04:00
Translation updater bot 3a5ee3aaf9
Localisation updates from https://translatewiki.net.
Change-Id: I1681f0cf946a427f722421a9ee8d6023225df841
2024-08-19 09:29:05 +02:00
Dr4goniez 8a353c5421 Remove !important from special page heading styles
The !important-less version still overrides 8ce4955ada/resources/skins.minerva.base.styles/content/headings.less (73).

Bug: T296598
Change-Id: I894b2e816b4ca739b4ba7cea53cdef7a85b1b776
2024-08-16 21:52:01 +00:00
Translation updater bot cde114a8df
Localisation updates from https://translatewiki.net.
Change-Id: I2163941386542de40e7dd719daece4b5ebf79761
2024-08-16 09:33:45 +02:00
Translation updater bot 2bb541e5a0
Localisation updates from https://translatewiki.net.
Change-Id: I1669b10a373c92ae78ebbc90c1eb83733edba1eb
2024-08-15 09:22:40 +02:00
Translation updater bot 2db9a0cc90
Localisation updates from https://translatewiki.net.
Change-Id: I3cbce38c7db65ecc34d7e8dc305ec111031b569f
2024-08-14 09:25:51 +02:00
libraryupgrader 3977e66708 build: Updating mediawiki/mediawiki-codesniffer to 44.0.0
Change-Id: Ibc3026b6317114189deed1c4607b869b870f8f80
2024-08-14 05:44:25 +00:00
Translation updater bot 8ce4955ada
Localisation updates from https://translatewiki.net.
Change-Id: I50784a2ad2d33bc4c9995f8e87e39807ddbb3eee
2024-08-13 09:54:33 +02:00
Translation updater bot ad9f7b54ff
Localisation updates from https://translatewiki.net.
Change-Id: I29a294e71cbfaad518b6024f1a98b88ef1d6a68b
2024-08-12 09:25:29 +02:00
Translation updater bot b8507c5d3d
Localisation updates from https://translatewiki.net.
Change-Id: I8ba168b8318e59982133fa5fcf77fb01f4e98179
2024-08-09 09:40:34 +02:00
Jdrewniak 83e7a06a52 Prevent dark-mode styles from affecting print media
Prevents dark-mode styles from affecting print media
by adding `@media screen` to dark-mode related styles.

Bug: T371331
Change-Id: Ieeca30d086d8b8705aba96441a576e3d8e127838
2024-08-08 14:27:30 -04:00
Jon Robson 811e770e9c Dark mode: Images should have background
Bug: T370074
Change-Id: I694778f6458ab13266bee4b88622a914f21c6b50
2024-08-08 12:04:08 +00:00
Translation updater bot 98e1c9d4e2
Localisation updates from https://translatewiki.net.
Change-Id: I30baa933c8cc633d2b8bdbda6fdf443acd04c8a7
2024-08-08 09:22:39 +02:00
Translation updater bot 919ec68757
Localisation updates from https://translatewiki.net.
Change-Id: Icc9456d5af08eaace52cbd0cd3fc54feccf6b705
2024-08-07 09:26:18 +02:00
Translation updater bot 63358070fd
Localisation updates from https://translatewiki.net.
Change-Id: I111f8a40869ea04de59d48e456fa1f81057a429c
2024-08-06 09:51:48 +02:00
Translation updater bot f5f201b9c5
Localisation updates from https://translatewiki.net.
Change-Id: I2546c939e2889ff838a25805d24c901c5bb36c15
2024-08-05 09:28:02 +02:00
bwang a38fa06b5d Migrate bare division math to parens division
Bug: T369669
Change-Id: I37c84769edbae8bbb843e9be1846394753c126c8
2024-08-02 13:33:00 -05:00
jenkins-bot bb57b22eb3 Merge "Hooks: change wikipedia is made for you warning to a notice message" 2024-08-02 17:19:51 +00:00
Translation updater bot 4c368f82c8
Localisation updates from https://translatewiki.net.
Change-Id: I01299cc1b382c6635e61c6f896d6684349740c0b
2024-08-02 09:43:51 +02:00
libraryupgrader 842a91590a build: Updating npm dependencies
* eslint-config-wikimedia: 0.27.0 → 0.28.2
  The following rules are failing and were disabled:
  * tests/selenium:
    * implicit-arrow-linebreak
    * no-mixed-spaces-and-tabs
* grunt-banana-checker: 0.11.1 → 0.13.0
* stylelint-config-wikimedia: 0.16.1 → 0.17.2
  The following rules no longer exist and were removed:
  * stylistic/selector-list-comma-newline-after
* braces: 3.0.2 → 3.0.3
  * https://github.com/advisories/GHSA-grv7-fg5c-xmjg

Change-Id: Ia94454c1da778f241085714e1601a0233d547570
2024-08-01 15:27:33 +01:00
Sergio Gimeno 73fe281d50 Hooks: change wikipedia is made for you warning to a notice message
The message box is changed from warning to
notice for the following messages:
 - mobile-frontend-generic-login-new
 - mobile-frontend-watchlist-purpose
 - mobile-frontend-watchlist-signup-action

Bug: T366127
Depends-On: I358ee59a1a0b7a5bb94e66bca9a2437517f40141
Change-Id: Ifa4418cbecda38011a6ee4d09c03db3ded7a9eb9
2024-08-01 13:22:36 +02:00
jenkins-bot 73ce70c005 Merge "Use CSS Logical instead to remove uses of mw-content-{ltr,rtl}" 2024-07-31 22:46:14 +00:00