Commit graph

3084 commits

Author SHA1 Message Date
Translation updater bot d6b589f50b
Localisation updates from https://translatewiki.net.
Change-Id: Ie0b6fc0bd826be0ed9ac5ec57307add227e7983e
2024-09-25 09:18:30 +02:00
bwang d9fff48280 Fix fade indicators when blockquotes are in popups
Bug: T375316
Change-Id: I738e07431de05564b1626c8950228c266713c642
2024-09-24 13:57:21 -05:00
Jon Robson fef3740fa5 Clean up preferences code
- Reference preview preferences should be defined inside Cite
- Don't use constants for seldom used strings to make the code
more readable.
- The lightweght ext.popups module is now always sent to the user
This was a micro-optimization and not necessary to do

Bug: T365538
Depends-On: Ic479c0a381ee16d1abcecfdd5ee48f0afccc1d3f
Change-Id: Ie8fa1672b9fdbb1c6b840dde5c9060a20a625adb
2024-09-20 19:06:38 +00:00
Translation updater bot 348697630e
Localisation updates from https://translatewiki.net.
Change-Id: Ia4356f0e4a168e586710a13af977fb35c7267cf3
2024-09-20 09:24:03 +02:00
Jon Robson 9b9a7ff739 Monitor bundle size of module added on page load
Bug: T360590
Change-Id: Icdd1e38fc6d4015a37a3adccdf6b18ee0c54b687
2024-09-17 20:51:33 +00:00
jenkins-bot e358e38591 Merge "Use UserFactory::newAnonymous instead of deprecated User::newFromId" 2024-09-09 20:36:59 +00:00
Umherirrender 67dc28dc73 build: Updating grunt-banana-checker to 0.13.0
Change-Id: I21f18ad0db53218e8719e701d6759c86672a083d
2024-09-09 21:29:05 +02:00
Fomafix fb573fdb2b Use UserFactory::newAnonymous instead of deprecated User::newFromId
Change-Id: I4ae99f1118ce23708a07b0dcc69ddba248dafb9f
2024-09-07 12:51:06 +00:00
Adam Wight 7a79602208 [cleanup] Remove unused configuration $wgPopupsReferencePreviews
This configuration is always enabled, so remaining conditions are dead
code.  Removing the flag in this code base simplifies moving the
remaining Reference Previews settings in a later patch.

Bug: T363162
Change-Id: I2b952f4203b6ffa040daad2aa288eb53d2ffd3b2
2024-09-05 20:26:31 +00:00
Translation updater bot 5868e55e1e
Localisation updates from https://translatewiki.net.
Change-Id: I173bd268f405f2d3d6d870968b1ad78422581ce5
2024-08-28 09:39:44 +02:00
James D. Forrester 6d643cd85a build: Update MediaWiki requirement to 1.43
All extensions in Wikimedia production are expected to track MediaWiki's release directly.

Change-Id: Ib2c344fe7beb7190f10ff3e1d2d5dcb22a2b2b62
2024-08-22 18:03:08 -04:00
Translation updater bot 28ed53768b
Localisation updates from https://translatewiki.net.
Change-Id: Iac01ff48324bf2bfaf61eae36f0087bb02dc279e
2024-08-19 09:24:33 +02:00
Translation updater bot 4617db582d
Localisation updates from https://translatewiki.net.
Change-Id: I849ccedbc958f21776f1c270106543e48d4d411a
2024-08-16 09:29:10 +02:00
Umherirrender 4f129f404f build: Updating composer dependencies
* mediawiki/mediawiki-codesniffer: 43.0.0 → 44.0.0
* mediawiki/minus-x: 1.1.1 → 1.1.3
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

Change-Id: I803e7be965ca8759873ed48553d1a5eb7d42fc44
2024-08-15 22:16:19 +02:00
Translation updater bot 37f52b7d8d
Localisation updates from https://translatewiki.net.
Change-Id: Ia78dfa0ca8ba840aefa9ba7199ff371aa42e3c0a
2024-08-14 09:23:27 +02:00
Translation updater bot 2d7cce789a
Localisation updates from https://translatewiki.net.
Change-Id: I1ce378eef68abd8ae01b31073224a2838969e624
2024-08-13 09:51:53 +02:00
jenkins-bot 712a4da62c Merge "Prevent dark-mode styles from affecting print media" 2024-08-12 11:45:25 +00:00
Translation updater bot 9d34949bd1
Localisation updates from https://translatewiki.net.
Change-Id: I397fff83194ddea78a63076024cf5fc77f6aa4be
2024-08-09 09:36:40 +02:00
Jdrewniak b7cbd0dd4f 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: Ide900a3e24a03d83f8e4ce51f89655cf5bb7e9b8
2024-08-08 17:24:33 -04:00
jenkins-bot 280e9fb6a7 Merge "Migrate bare division math to parens division" 2024-08-07 19:13:15 +00:00
Translation updater bot a9fc542699
Localisation updates from https://translatewiki.net.
Change-Id: I0a516f8bc7a2d066438796284e39492bb1bd18e0
2024-08-06 09:48:25 +02:00
bwang bfcb00583a Migrate bare division math to parens division
Bug: T369669
Change-Id: I69b4d9d13e5fef0c4030f27434ba2f60ba7e71ab
2024-08-05 11:17:32 -05:00
Translation updater bot 61d42c4e86
Localisation updates from https://translatewiki.net.
Change-Id: Idc7c4af0dd92dbe833064822a3aeedb6f7b602e6
2024-08-05 09:25:39 +02:00
Translation updater bot 13c328c6b0
Localisation updates from https://translatewiki.net.
Change-Id: I97b4e72b94adcc76c4e7ce7ff8909837fdf49b1e
2024-08-01 09:18:48 +02:00
Fomafix bdf44ea4f7 Use overrideConfigValue/overrideConfigValues instead of setMwGlobals
Also use MainConfigNames.

Change-Id: I8014b6ca5fdf79c98da05981967d98bbbbaeef98
2024-07-29 20:24:01 +00:00
Translation updater bot b99d4d3773
Localisation updates from https://translatewiki.net.
Change-Id: I46d4a7c1b5323bc9a577329955dc2fcc8e4949b4
2024-07-29 09:28:08 +02:00
Translation updater bot ebd3437fc6
Localisation updates from https://translatewiki.net.
Change-Id: If4573fed7625025b54a55e9a6ae9671fec8ef64d
2024-07-25 09:19:47 +02:00
jenkins-bot a5ab05be4e Merge "Directly access the properties with non-static functions" 2024-07-21 09:38:02 +00:00
jenkins-bot 319d1a14f7 Merge "instrumentation: Avoid user.sessionId() if possible, since it sets a cookie" 2024-07-18 13:47:53 +00:00
jenkins-bot 191fffbb5f Merge "actions: Remove unused sessionToken: user.sessionId()" 2024-07-18 13:47:50 +00:00
Translation updater bot 6b74af76c1
Localisation updates from https://translatewiki.net.
Change-Id: If0b6d8b537ebcd24adf6f2801fea1b172f0bc502
2024-07-15 09:24:38 +02:00
Bartosz Dziewoński 4ff08bd2fb instrumentation: Avoid user.sessionId() if possible, since it sets a cookie
Bug: T289780
Change-Id: I8d80f4e02c6b59087c88d42be671fa81b4d37ba8
2024-07-13 01:58:43 +02:00
Bartosz Dziewoński 0a3665e5f0 actions: Remove unused sessionToken: user.sessionId()
Follow-up to 8f5000f346.

Bug: T289780
Change-Id: Id01b1901428dada420296cd599058092834143a9
2024-07-13 01:36:07 +02:00
jenkins-bot d9fa26b4bc Merge "Use service 'GadgetsRepo' instead of deprecated GadgetRepo::singleton()" 2024-07-03 16:08:28 +00:00
jenkins-bot e4d39c1af9 Merge "PopupsContextTestWrapper: Remove null check for $gadgetsIntegration" 2024-07-03 16:08:27 +00:00
Fomafix 7e3a444a99 Use service 'GadgetsRepo' instead of deprecated GadgetRepo::singleton()
The service is optional to support with and without extension Gadgets.

Change-Id: I41d1516e185ceb5c49b38361360a3adad1a333de
2024-07-03 07:19:28 +00:00
WMDE-Fisch 8cfe50f8e1 Remove Qunit test leftovers from ReferencePreviews
I just found these while fixing tests in Cite. The lines were
added with the ReferencePreviews tests back in the days. Need to
be removed here.

See I2638611ba67b785338f7e98a1c4b08a5e829812d

Change-Id: I650317de4a1d8ec916c52c6c619b3a623a2f217b
2024-07-01 18:36:21 +02:00
jenkins-bot b413501ab3 Merge "jsdoc: Restrict Popups documentation to public facing APIs" 2024-07-01 15:52:17 +00:00
Fomafix c973491965 PopupsContextTestWrapper: Remove null check for $gadgetsIntegration
$gadgetsIntegration can never be null. This is ensured by the PHP type
check.

Change-Id: Ia70e8b8b329ba771dcb8a98d4a78220c2f0f5fbf
2024-06-29 20:41:43 +00:00
Fomafix 1413279c26 Directly access the properties with non-static functions
Change-Id: Id9dbb20f39695f5d75839a2ae14003c6dde9c21e
2024-06-29 19:20:27 +00:00
jenkins-bot 9b78974f77 Merge "build: Update jsdoc-wmf-theme to 1.1.0" 2024-06-28 19:14:42 +00:00
Jon Robson 9aed7b95ee jsdoc: Restrict Popups documentation to public facing APIs
Most of page previews is private, and developers should rely
on text editors to explore the codebase.

For public documentation we only surface what is a stable API
for page previews.

Change-Id: I8536de1de3038de43e5108f7d877df2ba3a2175b
2024-06-28 12:04:48 -07:00
Translation updater bot d8ed51c546
Localisation updates from https://translatewiki.net.
Change-Id: I7ae08cc5fe183080bf5f7dce9ea0224f8305bcc6
2024-06-28 09:42:23 +02:00
Ed Sanders 842e027586 build: Update jsdoc-wmf-theme to 1.1.0
Bug: T368081
Change-Id: I71fef6340d84b2c061b3c967ebed3bf3ebc88c3b
2024-06-26 12:25:15 +01:00
jenkins-bot 058c772d52 Merge "Restore the original behaviour of Reference Previews" 2024-06-24 07:07:44 +00:00
Jon Robson 79211c23ac Make generic preview icon display in night mode
Remove the ext.popups.images module, replacing it with
references to the SVG image.

- The footer image is the same in dark and light mode so use
background image
- Use mask image for sad face to make it work correctly in dark mode.
- Rely on CSS Janus for the ltr to rtl swap out

Change-Id: Idf041730549b834126d9631ac95611526ae5daa3
2024-06-14 00:55:53 +00:00
Jan Drewniak 39f09414c8 Modify drop-shadows for dark-mode
Changes drop-shadow color for Page Previews from
`rgba( 0, 0, 0, 0.05 )` to `@background-color-neutral`.

This is a slight visual change that maintains the tone of the
gray border, but removes it's opacity.

Bug: T365428
Change-Id: I065324e35eb28027d98e88d35b99b1d5266690d5
2024-06-13 09:50:46 -04:00
Translation updater bot 52f0a7a2c3 Localisation updates from https://translatewiki.net.
Change-Id: I8007131587d26fd89d90447f6532ec78780f7ca3
2024-06-10 09:55:57 +02:00
Umherirrender 12a86a9e49 Use namespaced classes
Change-Id: Iaa28a15e8bc1ea29e302aa2180dec0bf67f5817e
2024-06-09 19:14:49 +02:00
Func ff30b0bc2b Restore the original behaviour of Reference Previews
Commit a75ddc41 and 33f9e9d3 effectively changed the default user
option value of popups-reference-previews for users created before
2017/08/16 without any justification.

Please see the task description for full analysis.

This partially reverts commit a75ddc41.

Bug: T366419
Change-Id: I68d6114384af6d259dbc4541522d52ae9a289e49
2024-06-08 04:26:40 +08:00