Commit graph

3061 commits

Author SHA1 Message Date
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
Translation updater bot 96e9c555b1 Localisation updates from https://translatewiki.net.
Change-Id: I8713406a29877f5cf0984ffd7e82065d869b6f3c
2024-06-05 09:23:44 +02:00
WMDE-Fisch 1912475dae Remove most ReferencePreviews related i18n messages
The keys belong to the Cite extension where they are used already.

Bug: T363156
Depends-On: I788c16c5bddc0df7f00dbbc39625b9adaa5bf184
Change-Id: I1205af0539d6b2693f0e96d70393e7ecb005b7ba
2024-06-04 10:48:54 +02:00
Translation updater bot fd82c03179 Localisation updates from https://translatewiki.net.
Change-Id: I5f05eb09224769b144517cb970a8128edb13c5a4
2024-06-03 09:32:38 +02:00
Jon Robson aed5a78d6a Use strings rather than integers
Follow up to Iae454e4b4704a0289ca0a2b0794730562fda0dd1

Bug: T364347
Change-Id: I152af4bced8275fd9ae83d056550106e59f34815
2024-05-29 16:02:56 -07:00
Translation updater bot b53deb5bf6 Localisation updates from https://translatewiki.net.
Change-Id: If1014fcc7583f7d4b4ba4d325c5521d200b9f58c
2024-05-29 09:32:15 +02:00
Moh'd Khier Abualruz a75ddc4173 feature(Popups): Conditional User Defaults Implementation
Implement conditional defaults for user preferences in the Popups
component.
This patch aims to simplify the preference management system by
leveraging conditional logic directly within the component rather
than relying on multiple hooks

Changes:
- Updated `extension.json` to reflect the removal of outdated hooks.
- Updated `extension.json` to reflect the conditional user defaults.
- Removed unused user option `popupsreferencepreviews` from
 `extension.json`
- Modified `PopupsHooks` to streamline the preferences management,
 and depend on conditional user defaults, and removing `onUserGetDefaultOptions` and `onLocalUserCreated` hooks.
- Removed unneeded test cases in `PopupsHooksTest`.

Bug: T364347
Change-Id: Iae454e4b4704a0289ca0a2b0794730562fda0dd1
2024-05-28 21:05:57 +00:00
James D. Forrester f3f397e252 Upgrade browserslist-config-wikimedia from 0.6.1 to 0.7.0
Change-Id: Ic078cdb7d86f9e7b6ebc3624a76ae92da13c6010
2024-05-23 17:49:47 -04:00
Translation updater bot aa514c485d Localisation updates from https://translatewiki.net.
Change-Id: I538eec1cdbe03130f1e0a8ae107d45e6323210c1
2024-05-20 09:25:54 +02:00
Translation updater bot 15ac33cf99 Localisation updates from https://translatewiki.net.
Change-Id: I3d96bf4dd50c3cc331fbf9ea4ffc4b288e9aa083
2024-05-17 09:49:33 +02:00
Steph Toyofuku 39e322b6ab Fix gradient for night mode
Currently, the gradient is fading into #000 when what we want is #101418
(represented by @background-color-base).  Correct this and remove the
hardcoded rgba values as we don't need them and this gives us one less
place to update if the value changes in the future

Visual change (bug fix)

Bug: T360877
Change-Id: If330dd251dffb07f371c0c9222c6ef5f52120e25
2024-05-16 11:29:02 -07:00
Translation updater bot b6cd61cffa Localisation updates from https://translatewiki.net.
Change-Id: I7198efa965d8a928b2563639ba566519d678ccda
2024-05-02 09:20:04 +02:00
Raimond Spekking 44db19c642 Revert "Localisation updates from https://translatewiki.net."
This reverts commit 48dcb58cbc.

Reason for revert: due to wrong move on translatewiki.net by me

Change-Id: I62684b8d3c5a5631f5acec5b5f9155d77eaadcf1
2024-05-01 07:35:01 +00:00
Translation updater bot 48dcb58cbc Localisation updates from https://translatewiki.net.
Change-Id: I2f556ed1b4ec3ca63957313a7f5f27f0366dd15a
2024-05-01 09:22:37 +02:00
Ed Sanders 9b8b402cb1 Update jsdoc to 4 and use jsdoc-wmf-theme
Change-Id: Idb33efa5b714826550917397d4de1f2e5087f1bd
2024-04-29 19:17:17 +01:00
Translation updater bot 253399c3d1 Localisation updates from https://translatewiki.net.
Change-Id: Ifca868871bfa15ae4df0ba1191a6a05270b98a40
2024-04-29 09:23:59 +02:00
Ed Sanders b2904e36da Explicity disable popups on DiscussionTools' timestamp links
It currently doesn't trigger because the links lack a
title attribute, but if one were to be added the tool
would trigger as, although timestamp links are just hash
fragment links, we also include the canonical path
before the hash.

Change-Id: I156b1401f5173ba1727861adf1efa136b96d330f
2024-04-28 08:09:31 +01:00
Eric Gardner 5d00381b87 build: Remove references to theme-wikimedia-ui-legacy
Previous changes in Codex have eliminated all differences between the
"legacy" build of the design tokens and the standard one.

This patch removes all references to the legacy build in preparation for the
upcoming removal of the legacy assets from Codex upstream.

Bug: T360806
Change-Id: Ib381fc6ea77d5cde21e064df3900acf005f31c9e
2024-04-24 10:09:45 -07:00
thiemowmde 1e61af1798 Use more trivial HashConfig in tests
No need to mock this.

Change-Id: Ic312fd6045e4c6ea450114f3548596481f1fd2ee
2024-04-24 13:13:13 +02:00
Translation updater bot cc1bbeffd2 Localisation updates from https://translatewiki.net.
Change-Id: I34f5a8fa1151478a1e5951aa12ab8c055a42da50
2024-04-22 09:29:24 +02:00
Translation updater bot 70ccb79968 Localisation updates from https://translatewiki.net.
Change-Id: I3cae9e027af4379700e3f433ef03feac6fe37aac
2024-04-19 09:47:35 +02:00
James D. Forrester 03449d1af0 .nvmrc: Update version from 18.17.0 to 18.20.2
Change-Id: Ic751ea1bfe708f1728301c2fce7e16deee5fbfa4
2024-04-17 14:01:32 +00:00
jenkins-bot d8e4500700 Merge "Improve PHP code" 2024-04-16 16:23:40 +00:00
jenkins-bot 0d73ca0d80 Merge "Remove deprecated copy of referencePreviews module" 2024-04-16 09:45:12 +00:00