Commit graph

2451 commits

Author SHA1 Message Date
jenkins-bot 54a2663f9c Merge "Fix storybook IMG assets" 2021-01-06 17:17:47 +00:00
jdlrobson 1679eea477 Fix settings dialog display
Follow up to 23b6332a5b

Bug: T270650
Change-Id: Ic128e84eed69e4fdc7252bb6b315bd3f953eaf73
2021-01-05 12:20:06 -08:00
jdlrobson 9adf023eee Fix storybook IMG assets
When we changed the thumbnail size we changed the URIs to images
but didn't update the local storybook assets.

Bug: T266797
Change-Id: Iea4de1524a2f60cc759d59338882fe236e409bd2
2021-01-05 19:50:40 +00:00
Noam Rosenthal 7b0937c5a8 Use CSS clip-path instead of SVG when supported.
This reduces a lot of churn in creating the SVG
element and related helpers.

When IE11 is dropped, the SVG code-path can also be dropped.

Bug: T269336
Change-Id: I7f91192dedc2a78f1c7c84179cff1687593177c0
2021-01-05 19:26:24 +00:00
Translation updater bot 41fbfd890d Localisation updates from https://translatewiki.net.
Change-Id: Ie55089b8f07db30fbd54178d280adaf9a8a61c72
2021-01-04 08:44:25 +01:00
Translation updater bot 07489c7f36 Localisation updates from https://translatewiki.net.
Change-Id: I17ed0578f01a85b68d96f25a9aa5586d3e021b15
2020-12-30 10:14:43 +01:00
Umherirrender 153e604601 build: Updating mediawiki/mediawiki-phan-config to 0.10.6
Change-Id: Ib659ba0573b056b5686ba51a035a76444a7dd389
2020-12-30 06:20:11 +01:00
Kunal Mehta 8cee30c389 build: Remove maxWarnings: 0 from eslint configuration
This interferes with LibUp's ability to automatically downgrade newly failing
errors to warnings and is a deviation from the settings we typically use.

Bug: T263922
Change-Id: I77cede5ed5d0d3fee9676fc9a0f2a7872d97dd62
2020-12-28 21:56:11 -08:00
Translation updater bot f5f45b497f Localisation updates from https://translatewiki.net.
Change-Id: I66f9c72c1faea77f5f43dbec5b3df2e6a81fdc2a
2020-12-28 10:39:38 +01:00
Translation updater bot 07e25bbb56 Localisation updates from https://translatewiki.net.
Change-Id: I166ab0f6de94be8ae2da34b466a6ca75698551fd
2020-12-23 08:32:58 +01:00
Translation updater bot 33ba3b2a77 Localisation updates from https://translatewiki.net.
Change-Id: I0dbd0d35a0245665c6c3569711402b1a37d4a5ae
2020-12-22 08:32:23 +01:00
Translation updater bot 9b9709cbc6 Localisation updates from https://translatewiki.net.
Change-Id: If881dad24606eefc86215c2e82ef30ad32484bd2
2020-12-21 08:39:47 +01:00
WMDE-Fisch df7481af55 Adjust TODO comment to recent needs in the configuration setup
Change-Id: I9e565dddc6af8ca55613358c6d2eb0ceb58dbd0d
2020-12-14 11:52:06 +01:00
Translation updater bot dcc6ada593 Localisation updates from https://translatewiki.net.
Change-Id: I7574f27037694cfb991c74c4a269e9ffab373f9f
2020-12-14 08:42:58 +01:00
Umherirrender da8f2435c4 build: Updating mediawiki/mediawiki-phan-config to 0.10.5
Change-Id: Ia80b36938fc325c454d241662930c0d145f45ad0
2020-12-13 16:12:07 +01:00
Bartosz Dziewoński c8b8ba7f5f Revert "Remove title attributes at init"
This reverts commit 6bc2077ed5.

The change causes issues with various popular gadgets on Wikimedia
wikis. The 'title' attributes have been the easiest way to determine
the target pages of links, and many gadgets have come to rely on that.

Bug: T269297
Bug: T269873
Change-Id: I49d315a13c327a1c5af51d3de887c0c17642e9fe
2020-12-11 16:53:17 +00:00
Svantje Lilienthal cbd4e673d4 Add qunit test for conflict with popups
Bug: T267951
Change-Id: I47cc8e8565252dc78e39c00c94a07300b4e35593
2020-12-10 15:47:38 +01:00
Translation updater bot 4a66bd40ed Localisation updates from https://translatewiki.net.
Change-Id: I55bf325565089ba7c5b6634d0f0e2ac4562eb5c9
2020-12-10 08:35:32 +01:00
Translation updater bot 7faae3d885 Localisation updates from https://translatewiki.net.
Change-Id: I6f9007453f58464f77914cedd701cd808f5a70c1
2020-12-09 08:42:24 +01:00
Noam Rosenthal 497eb631d1 Parse template HTML only once, as HTML parsing is expensive
When creating a popup, clone the previously created DOM element
and populate the attributes and content.

Ideally this would be done with a template element, but since IE11
is still supported this is not possible.

Change-Id: I347615cf1f613d97d767d60627b13b6b3ff9c762
Bug: T269338
2020-12-07 23:01:26 +00:00
Vedmaka ff2ba9ebf5 Adds "$wgPopupsTextExtractsIntroOnly" option to control "intro" parameters for TextExtracts API request
Change-Id: I84f91ab0752bbd4a5b1ee159b7cbe1388f942f24
2020-12-07 15:00:29 -08:00
Translation updater bot d1d0b2a704 Localisation updates from https://translatewiki.net.
Change-Id: I1ab083b7b68634f26f06d0d84db2fbae66d2f18c
2020-12-07 08:46:40 +01:00
Umherirrender 0f49b4f2f5 build: Updating mediawiki/mediawiki-codesniffer to 34.0.0
Change-Id: I621f694eb7ae73cc985d9e6028fb10e70b02671d
2020-12-06 12:14:21 +01:00
Noam Rosenthal 4492b54a44 Performance optimization for popup rendering
Reduce layout/style thrashing by measuring all required geometries
at event handler, not waiting for delays/redux/style changes.

Use CSS bottom instead of top, to avoid having to measure the popup
before positioning it, if it's placed above the link ("flippedY").

Disable some test cases that relied on implementation detail of using
"top" CSS.

Change-Id: Id0cbf506009b824d0fb6af4d6fe220e2f69aaaad
2020-11-30 17:33:07 +02:00
jenkins-bot 64f5429d0c Merge "Remove title attributes at init" 2020-11-30 14:42:38 +00:00
Noam Rosenthal 6bc2077ed5 Remove title attributes at init
This is a performance optimization - removing
all the titles when initializing the popup extension
reduces DOM manipulation during hover, removing/reinstating the title
attribute.

When the popup extension is loaded, the default "title" behvior is unnecessary.

Change-Id: I1a85394b6b67eabee50a8d554bfd9b62de2a24d3
2020-11-30 15:39:36 +02:00
Translation updater bot 2f17877945 Localisation updates from https://translatewiki.net.
Change-Id: I2fe9e4a6a8a162b765ba12d75217fd7b29fbada8
2020-11-30 08:47:36 +01:00
Translation updater bot dd915ba9eb Localisation updates from https://translatewiki.net.
Change-Id: I70b7027f938cdca5d1c5ac198ea4a630cfed79bd
2020-11-27 08:30:59 +01:00
Translation updater bot 35e8bf2d3f Localisation updates from https://translatewiki.net.
Change-Id: I62bc0a80b35b6ddf3d5807218f857fcd1ed325bc
2020-11-26 08:28:20 +01:00
Translation updater bot 468b7b065e Localisation updates from https://translatewiki.net.
Change-Id: Ia428285fd5407083e59e5caf85cebdc6cd12cf77
2020-11-25 08:34:25 +01:00
Translation updater bot d70d4b7736 Localisation updates from https://translatewiki.net.
Change-Id: Ib15eb2488f7a521c12ea241991c50b23f0b0e0b4
2020-11-24 08:40:10 +01:00
Translation updater bot c082efa2d7 Localisation updates from https://translatewiki.net.
Change-Id: Id06d8713da94e15a7f3aef689eabfab4db561b2e
2020-11-23 08:39:57 +01:00
Umherirrender c85b6cd6ac build: Updating mediawiki/mediawiki-phan-config to 0.10.4
Change-Id: I0629382e1ff17f0eb4eee547aa78c7c8c7bbbc0d
2020-11-20 16:21:02 +01:00
WMDE-Fisch 22b0e54cf1 Use Util.waitForModuleState in browser tests
Change-Id: I09dbaa703818bf3df62c290e83ca6e36adf2f72a
2020-11-20 10:35:10 +01:00
jenkins-bot 7da453230d Merge "Fix and re-enable ReferencePreview browser tests" 2020-11-20 09:10:41 +00:00
Translation updater bot 3e16611e0b Localisation updates from https://translatewiki.net.
Change-Id: I84572c1644973d44c04fd55ccff27bace289e47b
2020-11-20 09:18:07 +01:00
Translation updater bot 22adc5ce73 Localisation updates from https://translatewiki.net.
Change-Id: If4e1d8a7389db413a4897807c5247a837d8f26b3
2020-11-19 09:10:33 +01:00
WMDE-Fisch 0cd94df686 Fix and re-enable ReferencePreview browser tests
The tests were skipped for some time already because the beta
feature mode is taken into account on the test systems. The tests
need to login and enable the beta feature mode to be executed. This
is fixed with that patch.

The patch also fixes broken tests due to changes that made one test
obsolete and another that needed adjustments.

There are also comments added to places where code can be removed or
altered if the feature gets out of beta status.

Bug: T268134
Change-Id: Ib96d23f3cb6c6130fd5880a78fafd252bf706475
2020-11-18 14:33:45 +01:00
Translation updater bot edd18801ca Localisation updates from https://translatewiki.net.
Change-Id: I79517c769a7c5d0420af42d04a90aaff8f8fcead
2020-11-18 08:56:50 +01:00
Umherirrender 05faae63a8 build: Updating mediawiki/mediawiki-codesniffer to 33.0.0
Change-Id: Ia2551ff625132f0acb5cbeed8d893809438583f0
2020-11-17 23:23:29 +01:00
jenkins-bot 46ece02214 Merge "Use a checkbox for the preference" 2020-11-17 12:31:32 +00:00
jenkins-bot b5c5b66074 Merge "hide reference previews when reference tooltip gadget is active" 2020-11-17 11:24:40 +00:00
Translation updater bot 7114dff1cd Localisation updates from https://translatewiki.net.
Change-Id: Ia8739a9eb9f64b74aac66ebb3723c178d1f295d3
2020-11-17 08:43:09 +01:00
Svantje Lilienthal 0b6c859a2b hide reference previews when reference tooltip gadget is active
Change-Id: I5f43270bfeba944c05dc09adf771ed07057237c7
2020-11-16 18:36:04 +01:00
Translation updater bot 43383c7418 Localisation updates from https://translatewiki.net.
Change-Id: If4992fea5fc89917c654c429c257eb58b93ada8c
2020-11-16 08:37:46 +01:00
jdlrobson 140b1e5828 Settings cog should come from icon pack
To avoid continuously updating this cog, use the icon pack directly.
Use mw-ui-icon-small to control the size rather than custom CSS - this
reduces the amount of CSS overrides that are needed.
Also use `opacity` instead of icon SVG fill for coloring the icon. This
enables simple transition in interaction states.

Storybook: The settings cog will now be tied to the production icon.
Note for now this will not appear at all, as this code must first
have ridden the train. For local testing feel free to point to
localhost to verify this change.

Bug: T256504
Change-Id: I2a28666dbd644bb599146fabb84d148ff0167ed3
2020-11-12 05:57:57 -08:00
Translation updater bot 1c47ddee01 Localisation updates from https://translatewiki.net.
Change-Id: I8360fae1f9dcbb2837eb1d27778300b3b7932a08
2020-11-12 08:22:32 +01:00
jenkins-bot d2018ebfe0 Merge "Resize popup to 403px" 2020-11-06 10:29:45 +00:00
Translation updater bot 9e958e0e38 Localisation updates from https://translatewiki.net.
Change-Id: I01bdb244ca88be8366bbb02a59c13618b752c201
2020-11-06 08:34:28 +01:00
Translation updater bot bf10d30e3a Localisation updates from https://translatewiki.net.
Change-Id: I442a79927dc79c9634e263677720b108811368f2
2020-11-04 08:33:52 +01:00