Commit graph

4444 commits

Author SHA1 Message Date
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
Translation updater bot 6ee3f19041
Localisation updates from https://translatewiki.net.
Change-Id: I157346f2780866643f818369a205510eec29e9cf
2024-07-31 09:25:06 +02:00
Ebrahim Byagowi 6a6872264a Use CSS Logical instead to remove uses of mw-content-{ltr,rtl}
It keeps fallback definitions which will work for most of the
cases in older browser as the transformations provided by
CSS Janus.

Bug: T371265
Change-Id: I0df37ca675533cf72c5636747cd40bbb4fb7497a
2024-07-30 23:06:03 +03:30
Translation updater bot 88fcfcc017
Localisation updates from https://translatewiki.net.
Change-Id: Id04dd6d7a6fc68f1f84847d6b1be3d55d4de3a2c
2024-07-30 09:47:32 +02:00
Translation updater bot 5b4fadf4d4
Localisation updates from https://translatewiki.net.
Change-Id: I1ea41664d2419774e931fe6281dc76fb3b2ad875
2024-07-29 09:32:03 +02:00
jenkins-bot 24b17b8b00 Merge "Make dd, ol and ul spacing values direction aware" 2024-07-26 16:59:16 +00:00
Ebrahim Byagowi f6165152a2 Make dd, ol and ul spacing values direction aware
This is akin to I404710209d59241991716bb7180bcaabcafffcec which
was for the most of desktop skins but since Minerva doesn't have
any dependency to `elements` and `i18n-all-lists-margins` it
should have it's own implementation of the change.

Bug: T371082
Change-Id: I1b98ced874a1caf049e7e09dbb678105d4d9e4d4
2024-07-26 13:02:10 +03:30
Translation updater bot d910dd43bf
Localisation updates from https://translatewiki.net.
Change-Id: I37700a970071184043fe97b545773e1beac8a03e
2024-07-26 09:50:41 +02:00
Translation updater bot 4bcef23180
Localisation updates from https://translatewiki.net.
Change-Id: I7e6dbe21de77ef2dd3d80216dfb53f09fe12f034
2024-07-25 09:22:02 +02:00
jenkins-bot f3be86c820 Merge "Fix mobile diff author note on dark mode" 2024-07-25 00:57:49 +00:00
Translation updater bot 90fe9441f2
Localisation updates from https://translatewiki.net.
Change-Id: I6652723bcec64d8149394706eec02137511cba09
2024-07-24 09:25:14 +02:00
Taavi Väänänen a01e0042c3 Fix mobile diff author note on dark mode
Updates the styles for the author note shown at the bottom of the screen
on the diff page on narrow displays to use Codex design tokens so that
it will use dark colors when dark mode is enabled.

The color for the edit count is changed from #72777d (color-placeholder
/ color-disabled) to a darker color #54595d to use a more appropriate
token (color-subtle).

Bug: T370003
Change-Id: I3340e8794036a1c7cd8aa4cfebd2ecfb50d2cbcf
2024-07-23 21:57:13 +00:00
Translation updater bot a49d693a92
Localisation updates from https://translatewiki.net.
Change-Id: I1df1761f38a0c1d65717adb8be68acebfae69553
2024-07-22 09:28:39 +02:00
Translation updater bot ce0e06fb2c
Localisation updates from https://translatewiki.net.
Change-Id: I6a994e617ff8cf09bde5ce805114494cdebbaba8
2024-07-18 09:25:36 +02:00
Translation updater bot 5d4a15d405
Localisation updates from https://translatewiki.net.
Change-Id: I2b4cf0fe68a0ebe633090130f43c8ffd7a52b16f
2024-07-17 09:35:59 +02:00
Translation updater bot eb72587974
Localisation updates from https://translatewiki.net.
Change-Id: I3aec8fa8a037a72dff22e474316703e0ae3509b9
2024-07-16 09:44:27 +02:00
jenkins-bot 1a23709f42 Merge "selenium: Add date and bug ID to skipped tests" 2024-07-15 21:13:58 +00:00
Translation updater bot bff9f6abcd
Localisation updates from https://translatewiki.net.
Change-Id: Ib200a82048c55dc5d770677eedc648f860059d6c
2024-07-15 09:27:05 +02:00
shyblumer 46a0597a4f selenium: Add date and bug ID to skipped tests
- Include date and bug ID in skipped test comments
- Helps track and identify unfixed tests

Bug: T280652
Change-Id: I2e78385e3ed5f0cb073677d4b4d0bcb74454c66f
2024-07-14 22:53:20 -04:00
Translation updater bot dc357b41b9
Localisation updates from https://translatewiki.net.
Change-Id: Iaf9f7e3b10e438beb0852a8e2bb2f01ca1db0778
2024-07-12 09:45:17 +02:00
Translation updater bot eee8eedd98
Localisation updates from https://translatewiki.net.
Change-Id: I8349c18f0cee751c9d0dd555ce30073dde8a4b60
2024-07-11 09:34:26 +02:00
Translation updater bot 17f619bddc
Localisation updates from https://translatewiki.net.
Change-Id: I67497b19ab5725eacde942a72228608a3739424a
2024-07-10 09:22:03 +02:00
GergesShamon a5c5b42590 use text() instead of escaped() for msg recentchanges
Bug: T352626
Change-Id: I82762ba62eb65e44babc4d30a203c64ceb56b117
2024-07-09 15:37:27 +03:00
Translation updater bot 18a9a067eb
Localisation updates from https://translatewiki.net.
Change-Id: I17144ee5a3c243fdbc62e6c7fb66b415b9751a21
2024-07-09 09:48:17 +02:00
Translation updater bot bbb3fc9267
Localisation updates from https://translatewiki.net.
Change-Id: Ia090d9d1eba51407128848903913b0718f2c21cb
2024-07-08 09:36:15 +02:00
Translation updater bot 612c3cb935
Localisation updates from https://translatewiki.net.
Change-Id: Ie73e8cccd35251291357d31c6373cef542411c11
2024-07-05 09:50:57 +02:00